<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:39:12
         compiled from "../views/obgy/gyna/newrowUS.html" */ ?>
<?php /*%%SmartyHeaderCode:155281834666cc9390b97921-05555422%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b044841ae288bdfe2f451f8ab288fde1087ceb47' => 
    array (
      0 => '../views/obgy/gyna/newrowUS.html',
      1 => 1585436136,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '155281834666cc9390b97921-05555422',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'type' => 0,
    'gUs' => 0,
    'itr' => 0,
    'programSettingData' => 0,
    'allDrugcats' => 0,
    'cat' => 0,
    'gynaDrug' => 0,
    'drugs' => 0,
    'drug' => 0,
    'allDrugTypes' => 0,
    'allDrugDoses' => 0,
    'dos' => 0,
    'status' => 0,
    'gynaUsId' => 0,
    'focils' => 0,
    'fo' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc9390d74945_63158328',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc9390d74945_63158328')) {function content_66cc9390d74945_63158328($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['type']->value=="ussimple"){?>
<tr>
    <td>
        <input type="checkbox" class="usPrint" id="usPrint<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  name="pic[]"  value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"/>
    </td>
    <!--    <td>
            <?php echo $_smarty_tpl->tpl_vars['itr']->value;?>

        </td>-->
    <td>
        <input type="text" class="form-control datepicker updateElement" readonly="" placeholder="Date" data-colName="date" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->date;?>
"/>
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Day" data-colName="day" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->day;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="R.No" data-colName="ovraylno" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovraylno;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="R.size" data-colName="ovraylsize" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovraylsize;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="L.No" data-colName="ovrayrno" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovrayrno;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="L.size" data-colName="ovrayrsize" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovrayrsize;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Endo" data-colName="endo" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->endo;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Notes" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->notes;?>
">
    </td>

    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
" style=" float: left;" href="#" data-link="gyna" data-fn="delgynaus">
            <i class="fa fa-close"></i>
        </a>
    </td>
    <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->displaydoctorname==1){?>
    <td class="bold">
        <?php echo $_smarty_tpl->tpl_vars['gUs']->value->doctorname;?>

    </td>
    <?php }?>
</tr>
<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?php }elseif($_smarty_tpl->tpl_vars['type']->value=="uscomplete"){?>

<tr>
    <td>
        <input type="checkbox" class="usPrint" id="usPrint<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  name="pic[]"  value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"/>
    </td>
    <td>
        <?php echo $_smarty_tpl->tpl_vars['itr']->value;?>

    </td>
    <td>
        <input type="text" class="form-control datepicker updateElement" readonly="" placeholder="Date" data-colName="date" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->date;?>
"/>
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Day" data-colName="day" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->day;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Endo" data-colName="endo" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->endo;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="L" data-colName="uterusl" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->uterusl;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="W" data-colName="uterusw" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->uterusw;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="V" data-colName="uterusv" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->uterusv;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="L" data-colName="cervixl" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->cervixl;?>
">
    </td>

    <td>
        <input type="text" class="form-control updateElement" placeholder="W" data-colName="cervixw" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->cervixw;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="V" data-colName="cervixv" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->cervixv;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="L" data-colName="ovrayll" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovrayll;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="W" data-colName="ovraylw" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovraylw;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="V" data-colName="ovraylv" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovraylv;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="L" data-colName="ovrayrl" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovrayrl;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="W" data-colName="ovrayrw" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovrayrw;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="V" data-colName="ovrayrv" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"  data-tableName="gynaus" value="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->ovrayrv;?>
">
    </td>
    <td>
        <a href="#"  class="btn green btn-block btn-xs addLTovary" data-type="add" id="addLTovary<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"> ADD </a>
    </td>
    <td>
        <a href="#"  class="btn green btn-block btn-xs addRtovary" data-type="add" id="addRtovary<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
"> ADD </a>
    </td>
    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['gUs']->value->id;?>
" style=" float: left;" href="#" data-link="gyna" data-fn="delgynaus">
            <i class="fa fa-close"></i>
        </a>
    </td>
    <td class="bold">
        <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->displaydoctorname==1){?><?php echo $_smarty_tpl->tpl_vars['gUs']->value->doctorname;?>
<?php }?>
    </td>
</tr>
<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?php }elseif($_smarty_tpl->tpl_vars['type']->value=="usantenatal"){?>
<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?php }elseif($_smarty_tpl->tpl_vars['type']->value=="drug"){?>
<tr>
    <td>
        <select class="form-control xx dcat " id="dcat<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" name="dcat<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
"  data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
"  data-placeholder="Select..."  >
            <option value="">Choose Category</option>
            <?php  $_smarty_tpl->tpl_vars['cat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['cat']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allDrugcats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['cat']->key => $_smarty_tpl->tpl_vars['cat']->value){
$_smarty_tpl->tpl_vars['cat']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['cat']->value['drugcat'];?>
"><?php echo $_smarty_tpl->tpl_vars['cat']->value['drugcat'];?>
</option>
            <?php } ?>
        </select>
    </td>
    <td>
        <select class="form-control xx dname updateElement" id="dname<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-createNew="0" data-id="<?php echo $_smarty_tpl->tpl_vars['gynaDrug']->value->id;?>
" data-colName="drugid" data-tableName="gynadrugs" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-placeholder="Select..."  >
            <option value="">Choose Drug</option>
            <?php  $_smarty_tpl->tpl_vars['drug'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['drug']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['drugs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['drug']->key => $_smarty_tpl->tpl_vars['drug']->value){
$_smarty_tpl->tpl_vars['drug']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['drug']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['drug']->value['drugname'];?>
 <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->visitsform==3){?>(left <?php echo $_smarty_tpl->tpl_vars['drug']->value['currentbalance'];?>
)<?php }?></option>
            <?php } ?>
        </select>
    </td>
    <td>
        <select class="form-control xx dtype updateElement" id="dtype<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['gynaDrug']->value->id;?>
" data-colName="drugtype" data-tableName="gynadrugs" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-placeholder="Select..."  >
            <option value="">Choose Form</option>
            <?php  $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['type']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allDrugTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value){
$_smarty_tpl->tpl_vars['type']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['type']->value['drugtype'];?>
"><?php echo $_smarty_tpl->tpl_vars['type']->value['drugtype'];?>
</option>
            <?php } ?>
        </select>
    </td>
    <td>
        <select class="form-control xx ddos updateElement" id="ddos<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['gynaDrug']->value->id;?>
" data-colName="drugdos" data-tableName="gynadrugs" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-placeholder="Select..."  >
            <option value="">choose dose </option>
            <?php  $_smarty_tpl->tpl_vars['dos'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dos']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allDrugDoses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dos']->key => $_smarty_tpl->tpl_vars['dos']->value){
$_smarty_tpl->tpl_vars['dos']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['dos']->value['drugdos'];?>
"><?php echo $_smarty_tpl->tpl_vars['dos']->value['drugdos'];?>
</option>
            <?php } ?>
        </select>
    </td>

    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['gynaDrug']->value->id;?>
" style=" float: left;" href="#" data-link="gyna" data-fn="addprescription">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>
<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?php }elseif($_smarty_tpl->tpl_vars['type']->value=="ltovary"||$_smarty_tpl->tpl_vars['type']->value=="rtovary"){?>

<?php if ($_smarty_tpl->tpl_vars['status']->value=="add"){?>
<input type="hidden" class="form-control" id="gynaUsId" value="<?php echo $_smarty_tpl->tpl_vars['gynaUsId']->value;?>
" >

<?php }elseif($_smarty_tpl->tpl_vars['status']->value=="show"){?>
<?php  $_smarty_tpl->tpl_vars['fo'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['fo']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['focils']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['fo']->key => $_smarty_tpl->tpl_vars['fo']->value){
$_smarty_tpl->tpl_vars['fo']->_loop = true;
?>
<tr>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Name" data-colName="name" data-id="<?php echo $_smarty_tpl->tpl_vars['fo']->value->id;?>
"  data-tableName="gynausficils" value="<?php echo $_smarty_tpl->tpl_vars['fo']->value->name;?>
">
    </td>

    <td>
        <input type="text" class="form-control updateElement" placeholder="Length" data-colName="length" data-id="<?php echo $_smarty_tpl->tpl_vars['fo']->value->id;?>
"  data-tableName="gynausficils" value="<?php echo $_smarty_tpl->tpl_vars['fo']->value->length;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Width" data-colName="width" data-id="<?php echo $_smarty_tpl->tpl_vars['fo']->value->id;?>
"  data-tableName="gynausficils" value="<?php echo $_smarty_tpl->tpl_vars['fo']->value->width;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="Volume" data-colName="volume" data-id="<?php echo $_smarty_tpl->tpl_vars['fo']->value->id;?>
"  data-tableName="gynausficils" value="<?php echo $_smarty_tpl->tpl_vars['fo']->value->volume;?>
">
    </td>
</tr>
<?php } ?>

<?php }?>

<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?php }?>






<script type="text/javascript" >
    var itr = $('#drugItr').val();
    if ($().select2)
    {
        $('#dcat' + itr).select2({placeholder: "Select", allowClear: true});
        $('#dname' + itr).select2({placeholder: "Select", allowClear: true});
        $('#dtype' + itr).select2({placeholder: "Select", allowClear: true});
        $('#ddos' + itr).select2({placeholder: "Select", allowClear: true});
    }

    $('.datepickertoday').datepicker('setDate', '+0');
    $(".datepicker").datepicker({
        todayBtn: "linked",
        autoclose: true,
        todayHighlight: true,
        format: 'yy-mm-dd',
        isRTL: true
    });
</script>

<?php }} ?>