<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 12:16:38
         compiled from "../views/obgy/sonar/sonar.html" */ ?>
<?php /*%%SmartyHeaderCode:136736869765fffd86b1e052-54147167%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e9677cda76594f7d45a342d50a04b3a055288e16' => 
    array (
      0 => '../views/obgy/sonar/sonar.html',
      1 => 1650260574,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '136736869765fffd86b1e052-54147167',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientid' => 0,
    'today' => 0,
    'allsonar' => 0,
    'newImgId' => 0,
    'sonarcount' => 0,
    'i' => 0,
    'sonar' => 0,
    'hosturl' => 0,
    'editElement' => 0,
    'allsonarvid' => 0,
    'sonarVidcount' => 0,
    'j' => 0,
    'pdfs' => 0,
    'pdfCount' => 0,
    'pdf' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fffd86c14778_15295411',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fffd86c14778_15295411')) {function content_65fffd86c14778_15295411($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Pictures and Videos
                        </div>
                    </div>

                    <div class="portlet-body" id="justfordrugs" >

                        <input type="hidden" id="sonarpage" value="1"/>
                        <input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
"/>
                        <input type="hidden" id="tdate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
">
                        <input type="hidden" id="controllName" value="sonar"/>

                        <form class="" role="form" action="" method="post" id="sonardata" enctype="multipart/form-data">
                            <div class="tabbable tabbable-custom tabbable-noborder">
                                <ul class="nav nav-tabs" id="rowTab">


                                    <li class="aw_3d_list active"> <a href="#tab_0_0" data-toggle="tab"> Pictures </a> </li>
                                    <li class="aw_3d_list"> <a href="#tab_1_1" data-toggle="tab"> Videos </a> </li>
                                    <li class="aw_3d_list"> <a href="#tab_1_2" data-toggle="tab"> PDF </a> </li>

                                </ul>
                                <div class="tab-content">

                                    <!---======================================================== tab1============================================================================================ ----->
                                    <div class="tab-pane active" id="tab_0_0">

                                        <!-- BEGIN PAGE CONTENT-->
                                        <div class="row" id="pic_div">

                                            <div class="portlet-title tbox">
                                                <div class="caption font-green-haze col-md-1">
                                                    <span class="caption-subject bold uppercase"> Pictures </span>
                                                </div>
                                                <div class="actions col-md-11">
                                                    <button type="button" class="btn btn-xs blue fright" id="addPic"><i class="fa fa-plus"></i> Add</button>
                                                    <button type="button" class="btn btn-xs blue fright" id="printPic"><i class="fa fa-plus"></i> print</button>
                                                    <label class="bold">
                                                        <input type="checkbox" id="imagePrintAll" checked="checked">
                                                        Select All</label>

                                                </div>

                                            </div>
                                            <div id="sonarFileM1Parent">
                                                <?php if (empty($_smarty_tpl->tpl_vars['allsonar']->value)){?>
                                                <div id="sonarFileM1One">
                                                    <input type="hidden" id="sonaritr" name="sonaritr" value="1">
                                                    <input type="hidden" id="emptyImage" name="emptyImage" value="0">
                                                    <div class="col-md-3">
                                                        <div class="row clinick ltr" >


                                                            <div class="col-md-12">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <input type="text" class="form-control datepicker txtc" id="sonardateM1" data-tableName="sonar" data-colName="sonardate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                                                    <label for="form_control_1">Date</label>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row clinick ltr" >
                                                            <div class="col-md-12">
                                                                <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                    <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 250px; height: 170px;"> </div>
                                                                    <div> <span class="btn default btn-file"> <span class="fileinput-new"> Select image </span> <span class="fileinput-exists"> Change </span>
                                                                            <input type="file" name="sonarimg1[]" multiple id="sonarFileM1" accept="image/*"   class=" form-control">
                                                                        </span>  </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row clinick ltr" >

                                                            <div class="col-md-12">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <input type="text" class="form-control" id="notesM1" data-tableName="sonar" data-colName="notes"  name="notes"/>
                                                                    <label for="form_control_1">Notes</label>
                                                                </div>
                                                            </div>


                                                        </div>
                                                        <div class="row clinick ltr" >
                                                            <div class="col-md-6">
                                                                <!--<button type="button" class="btn btn-xs red fright removesonar" id="delsonar1" data-tableName="sonar" data-id="<?php echo $_smarty_tpl->tpl_vars['newImgId']->value;?>
"><i class="fa fa-close"></i></button>-->

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php }else{ ?>
                                                <input type="hidden" id="sonaritr" name="sonaritr" value="<?php echo $_smarty_tpl->tpl_vars['sonarcount']->value;?>
">
                                                <input type="hidden" id="emptyImage" name="emptyImage" value="1">
                                                <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                                <?php  $_smarty_tpl->tpl_vars['sonar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sonar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allsonar']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sonar']->key => $_smarty_tpl->tpl_vars['sonar']->value){
$_smarty_tpl->tpl_vars['sonar']->_loop = true;
?>
                                                <div class="col-md-3">
                                                    <div class="row clinick ltr" >
                                                        <div class="col-md-12">
                                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                <input type="text" class="form-control datepicker updateElement txtc" id="sonardate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="sonar" data-colName="sonardate" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['sonardate'];?>
"/>
                                                                <label for="form_control_1">Date</label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row clinick ltr" >

                                                        <div class="col-md-12">
                                                            <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 250px; height: 170px;"> 
                                                                    <img <?php if ($_smarty_tpl->tpl_vars['sonar']->value['imagename']){?> src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/sonar/<?php echo $_smarty_tpl->tpl_vars['sonar']->value['imagename'];?>
"<?php }?>/></div>
                                                                <!--<input type="hidden" id="imageurl" name="imageurl" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->photos;?>
" />-->
                                                                <div> 
                                                                    <span class="btn default btn-file col-md-6 " style="    padding: 6px 12px;"> 
                                                                        <span class="fileinput-new"> Select image </span> 
                                                                        <span class="fileinput-exists"> Change </span>
                                                                        <input type="file" name="sonarimg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" id="sonarimg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="sonar" accept="image/*" data-colName="imagename" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
" class=" form-control sonarFile">
                                                                    </span>  
                                                                    <a  class="input-group-addon btn  showFile"  <?php if (!$_smarty_tpl->tpl_vars['sonar']->value['imagename']){?>style="display: none;" <?php }?> data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"> Show </a> 
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>




                                                    <div class="row clinick ltr" >
                                                        <div class="col-md-12">
                                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                <input type="text" class="form-control updateElement" id="notes<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="sonar" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['notes'];?>
"/>
                                                                <label for="form_control_1">Notes</label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row clinick ltr" >
                                                        <div class="col-md-6">

                                                            <button type="button" class="btn btn-xs red fright removesonar" id="delsonar<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="sonar" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
"><i class="fa fa-close"></i></button>
                                                            <input type="checkbox" class="imagePrint" id="imagePrint<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
" checked="checked" name="pic[]"  value="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
"/> 

                                                        </div>
                                                    </div>

                                                </div>
                                                <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                                <?php } ?>

                                                <?php }?>
                                            </div>
                                        </div>

                                    </div>

                                    <!-- END SAMPLE FORM PORTLET-->

                                    <!---- =================================================================tab 2 =======================================================================================------>
                                    <div class="tab-pane " id="tab_1_1">


                                        <!-- BEGIN PAGE CONTENT-->
                                        <div class="row" id="vid_div">

                                            <div class="portlet-title tbox">
                                                <div class="caption font-green-haze col-md-6">
                                                    <span class="caption-subject bold uppercase">Videos</span>
                                                </div>
                                                <div class="actions col-md-6">
                                                    <button type="button" class="btn btn-xs blue fright" id="addvid"><i class="fa fa-plus"></i> Add</button>
                                                </div>
                                            </div>

                                            <?php if (empty($_smarty_tpl->tpl_vars['allsonarvid']->value)){?>
                                            <input type="hidden" id="sonarviditr" name="sonarviditr" value="1">
                                            <input type="hidden" id="emptyVideo" name="emptyVideo" value="0">

                                            <div class="clearfix"></div>
                                            <div class="col-md-3 vid-sonar">
                                                <div class="row clinick ltr" >

                                                    <div class="col-md-12">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="form-control datepicker txtc" id="sonardatevM1"  
                                                                   value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                                            <label for="form_control_1">Date</label>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="row clinick ltr" >
                                                    <div class="col-md-12">
                                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                                            <div>
                                                                <span class="input-group-addon btn default btn-file" style="right: 0px; top: 3px;">  
                                                                    <span class="fileinput-new"> Select file </span> 
                                                                    <span class="fileinput-exists"> Change </span>
                                                                    <input type="file" name="vediourl1" multiple  id="sonarvidM1" data-itr="1" accept="video/mp4" class="form-control">
                                                                </span>  
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="row clinick ltr" >
                                                    <div class="col-md-6">       </div>
                                                </div>




                                                <!-- END SAMPLE FORM PORTLET-->

                                            </div>
                                            <?php }else{ ?>
                                            <input type="hidden" id="sonarviditr" name="sonarviditr" value="<?php echo $_smarty_tpl->tpl_vars['sonarVidcount']->value;?>
">
                                            <input type="hidden" id="emptyVideo" name="emptyVideo" value="1">
                                            <?php $_smarty_tpl->tpl_vars["j"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['sonar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sonar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allsonarvid']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sonar']->key => $_smarty_tpl->tpl_vars['sonar']->value){
$_smarty_tpl->tpl_vars['sonar']->_loop = true;
?>
                                            <div class="col-md-3 vid-sonar">
                                                <div class="row clinick ltr" >

                                                    <div class="col-md-12">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="form-control datepicker updateElement txtc" id="sonardatev<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" data-tableName="sonar" data-colName="sonardate" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['sonardate'];?>
"/>
                                                            <label for="sonardate<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
">Date</label>
                                                        </div>
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="form-control updateElement txtl edited" id="originalname<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" data-tableName="sonar" data-colName="originalname" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['originalname'];?>
"/>
                                                            <label for="originalname<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
">Video Name</label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row clinick ltr" >
                                                    <div class="col-md-12">
                                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                                            <div>
                                                                <span class="input-group-addon btn default btn-file" style="right: 0px; top: 0px;"> 
                                                                    <span class="fileinput-new" <?php if ($_smarty_tpl->tpl_vars['sonar']->value['vediourl']){?>style="display: none;" <?php }?>> Select file </span> 
                                                                    <span class="fileinput-exists" <?php if ($_smarty_tpl->tpl_vars['sonar']->value['vediourl']){?> style="display: block;" <?php }?>> Change </span>
                                                                    <input type="file" name="vediourl<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" id="vediourl<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" accept="video/mp4" class="updateElement form-control sonarvid"  data-tableName="sonar" data-colName="vediourl" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
">

                                                                </span> 
                                                                <a  class="input-group-addon btn vid-show" id="show<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php if (!$_smarty_tpl->tpl_vars['sonar']->value['vediourl']){?>style="display: none;" <?php }?> data-file="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['vediourl'];?>
"> Show </a> 
                                                                <a  class="input-group-addon btn vid-download" id="download<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" 
                                                                    <?php if (!$_smarty_tpl->tpl_vars['sonar']->value['vediourl']){?>style="display: none;" <?php }?>  
                                                                    href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/sonar.php?ac=downloadfile&id=<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
&type=1" > Download </a> 

                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="row clinick ltr" >
                                                    <div class="col-md-6">
                                                        <button type="button" class="btn btn-xs red fright removesonar" id="delsonar<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" data-tableName="sonar" data-id="<?php echo $_smarty_tpl->tpl_vars['sonar']->value['id'];?>
"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>



                                                <!-- END SAMPLE FORM PORTLET-->

                                            </div>
                                            <?php $_smarty_tpl->tpl_vars["j"] = new Smarty_variable($_smarty_tpl->tpl_vars['j']->value+1, null, 0);?>
                                            <?php } ?>

                                            <?php }?>
                                        </div>
                                        <div class="clearfix"></div>

                                    </div>

                                    <!---- =================================================================tab 3  =======================================================================================------>
                                    <div class="tab-pane " id="tab_1_2">


                                        <!-- BEGIN PAGE CONTENT-->
                                        <div class="row" id="pdf_div">

                                            <div class="portlet-title tbox">
                                                <div class="caption font-green-haze col-md-6">
                                                    <span class="caption-subject bold uppercase">PDF</span>
                                                </div>
                                                <div class="actions col-md-6">
                                                    <button type="button" class="btn btn-xs blue fright" id="addPdf">
                                                        <i class="fa fa-plus"></i> Add</button>
                                                </div>
                                            </div>





                                            <?php if (empty($_smarty_tpl->tpl_vars['pdfs']->value)){?>
                                            <input type="hidden" id="pdfItr" name="pdfItr" value="1">
                                            <input type="hidden" id="emptyPdf" name="emptyPdf" value="0">
                                            <div class="col-md-3 vid-sonar">
                                                <div class="row clinick ltr" >
                                                    <div class="col-md-12">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="form-control datepicker txtc" id="pdfDate"  value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
"/>
                                                            <label for="pdfDate">Date</label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row clinick ltr" >
                                                    <div class="col-md-12">
                                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                                            <div>
                                                                <span class="input-group-addon btn default btn-file" style="right: 0px; top: 0px;"> 
                                                                    <span class="fileinput-new" > Select file </span> 
                                                                    <span class="fileinput-exists"> Change </span>
                                                                    <input type="file" name="pdfurl"  id="pdfurl" accept="application/pdf" 
                                                                           class="form-control sonarPdfMulti"  multiple  >
                                                                </span> 
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }else{ ?>
                                            <input type="hidden" id="pdfItr" name="pdfItr" value="<?php echo $_smarty_tpl->tpl_vars['pdfCount']->value;?>
">
                                            <input type="hidden" id="emptyPdf" name="emptyPdf" value="1">
                                            <?php $_smarty_tpl->tpl_vars["j"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['pdf'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pdf']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pdfs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['pdf']->key => $_smarty_tpl->tpl_vars['pdf']->value){
$_smarty_tpl->tpl_vars['pdf']->_loop = true;
?>
                                            <div class="col-md-3 vid-sonar">
                                                <div class="row clinick ltr" >
                                                    <div class="col-md-12">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="form-control datepicker updateElement txtc" id="pdfDate<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" 
                                                                   data-tableName="sonar" data-colName="sonardate" data-id="<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" 
                                                                   value="<?php echo $_smarty_tpl->tpl_vars['pdf']->value['sonardate'];?>
"/>
                                                            <label for="pdfDate<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
">Date</label>
                                                        </div>
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="form-control updateElement txtl edited" id="originalPdsName<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" 
                                                                   data-tableName="sonar" data-colName="originalname" data-id="<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" 
                                                                   value="<?php echo $_smarty_tpl->tpl_vars['pdf']->value['originalname'];?>
"/>
                                                            <label for="originalPdsName<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
">File Name</label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row clinick ltr" >
                                                    <div class="col-md-12">
                                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                                            <div>
                                                                <span class="input-group-addon btn default btn-file" style="right: 0px; top: 0px;"> 
                                                                    <span class="fileinput-new" <?php if ($_smarty_tpl->tpl_vars['pdf']->value['vediourl']){?>style="display: none;" <?php }?>> Select file </span> 
                                                                    <span class="fileinput-exists" <?php if ($_smarty_tpl->tpl_vars['pdf']->value['vediourl']){?> style="display: block;" <?php }?>> Change </span>
                                                                    <input type="file" name="pdfurl<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
"  id="pdfurl<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" accept="application/pdf" 
                                                                           class="form-control sonarPdf"  data-tableName="sonar"  data-colName="vediourl" data-id="<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
">

                                                                </span> 
                                                                <a  class="input-group-addon btn vid-download" id="downloadPdf<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" 
                                                                    <?php if (!$_smarty_tpl->tpl_vars['pdf']->value['vediourl']){?>style="display: none;" <?php }?>     target="_blank"
                                                                    href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/sonarpdf/1/<?php echo $_smarty_tpl->tpl_vars['pdf']->value['vediourl'];?>
" > Show </a> 

                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="row clinick ltr" >
                                                    <div class="col-md-6">
                                                        <button type="button" class="btn btn-xs red fright removesonar" id="delsonar<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
" 
                                                                data-tableName="sonar" data-id="<?php echo $_smarty_tpl->tpl_vars['pdf']->value['id'];?>
"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>



                                                <!-- END SAMPLE FORM PORTLET-->

                                            </div>
                                            <?php $_smarty_tpl->tpl_vars["j"] = new Smarty_variable($_smarty_tpl->tpl_vars['j']->value+1, null, 0);?>
                                            <?php } ?>

                                            <?php }?>
                                        </div>
                                        <div class="clearfix"></div>

                                    </div>

                                    <!-- END PAGE CONTENT-->

                                </div>


                            </div>
                        </form>
                    </div>
                </div>
            </div>

        </div>

    </div>
</div>			
<div id="talks-loading" style="z-index: 3000;position: absolute;top: 10%;right: 2%;left: 6%;display:none; height: 65%; background-color: rgba(0, 0, 0,0.27); padding-top: 10%;" align="center">
    <img src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/upload/loading.gif">
</div>



<div class="all">
    <!---------------------------------------------------------------------------add Drugs Model-------------------------------------------------------------------------------------->
    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="showVideo" style="min-width:1000px;">
        <div class="modal-dialog  modal-lg wds90">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title">  </h4>
                </div>
                <div class="modal-body">
                    <div class="portlet-body">

                        <div class="row">
                            <div class="col-md-12">
                                <video style="width: 100%;"    id="video_vediourl" controls>
                                    <source src="" type="video/mp4" id="source_vediourl">
                                    Your browser does not support HTML5 video.
                                </video>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="pImg"></div>


    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="showFileM" style="min-width:1000px;">
        <div class="modal-dialog  modal-lg wds65">
            <div class="modal-content" style="">
                <div class="modal-body" style="background: rgba(0,0,0,.5);">
                    <div class="portlet-body">
                        <button type="button" class="close"
                                style="margin-right: 5px; margin-top: 10px; width: 20px; height: 20px;"
                                data-dismiss="modal" aria-hidden="true"></button>
                        <div class="row">
                            <div class="col-md-12" style="text-align: center;"  id="scrollImgDiv">



                            </div>
                        </div>
                    </div>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                </div>
            </div>
        </div>
    </div>

</div>



<?php }} ?>