<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 12:15:00
         compiled from "../views/obgy/antenalvisit/newrowUS.html" */ ?>
<?php /*%%SmartyHeaderCode:115085433565fffd246e4027-12193367%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '01308fc06a619b76a328573e8ced39ef77c368e0' => 
    array (
      0 => '../views/obgy/antenalvisit/newrowUS.html',
      1 => 1688366286,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '115085433565fffd246e4027-12193367',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'type' => 0,
    'aUs' => 0,
    'ProgramesettingData' => 0,
    'itr' => 0,
    'antType' => 0,
    'no_soc' => 0,
    'row' => 0,
    'no_fetal' => 0,
    'fetal_pulse' => 0,
    'fet_no' => 0,
    'visibility' => 0,
    'ant_presentation' => 0,
    'ant_liquor' => 0,
    'allDrugcats' => 0,
    'cat' => 0,
    'gynaDrug' => 0,
    'drugs' => 0,
    'drug' => 0,
    'allDrugTypes' => 0,
    'allDrugDoses' => 0,
    'dos' => 0,
    'programSettingData' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fffd24863103_28594268',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fffd24863103_28594268')) {function content_65fffd24863103_28594268($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['type']->value=="usantenatal"){?>

<table class="table table-striped table-hover table-bordered" dir="ltr">
    <thead>
        <tr>
            <th class="wds1">
                <input type="checkbox" id="usPrintAll">
            </th>
            <th class="wds1"> #</th>
            <th class="wds9">  Date</th>
            <th class="wds7"> W </th>

            <?php if ($_smarty_tpl->tpl_vars['aUs']->value->netW>=4&&$_smarty_tpl->tpl_vars['aUs']->value->netW<14){?>
            <th class="wds11">  No. of soc</th>
            <th class="wds13">  No. of Fetal Pole</th>
            <th class="wds11">  Fetal Pulsation</th>
            <th class="wds10">  GS </th>
            <th class="wds10"> CRL</th>
            <?php }elseif($_smarty_tpl->tpl_vars['aUs']->value->netW>=14&&$_smarty_tpl->tpl_vars['aUs']->value->netW<=40){?>
            <th class="wds8">  No. </th>
            <th class="wds10">  Visibility </th>
            <th class="wds10">   Presentation </th>
            <th class="wds10">   Liquor</th>
            <th class="wds5">  BPD </th>
            <th class="wds5">  FL  </th>
            <th class="wds5"> AC </th>
            <th class="wds5"> EFW </th>
            <?php }?>

            <th>  Notes   </th>
            <th class="wds1">   </th>
            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
            <th class="wds1">   Doctor  </th>
            <?php }?>
        </tr>
    </thead>
    <tbody>

        <tr>
            <td>
                <input type="checkbox" class="usPrint" id="usPrint<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  name="pic[]"  
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"/>
            </td>
            <td><?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
  <input type="hidden" id="netWText" value="<?php echo $_smarty_tpl->tpl_vars['antType']->value;?>
"/> </td>
            <td>
                <input type="text" class="form-control datepicker updateElement usDate" readonly="" 
                       placeholder="Date" data-colName="date" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                       data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->date;?>
"/>
            </td>
            <td>
                <label id="usLabel<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" 
                       <?php if ($_smarty_tpl->tpl_vars['aUs']->value->dateFlag==1){?>style="color: red;font-size: 17px;" <?php }else{ ?> style="color: maroon; font-weight : bolder; font-size: 17px;" <?php }?>>
                    <?php echo $_smarty_tpl->tpl_vars['aUs']->value->w;?>
</label>
            </td>
            <?php if ($_smarty_tpl->tpl_vars['aUs']->value->netW>=4&&$_smarty_tpl->tpl_vars['aUs']->value->netW<14){?>
            <td>
                <select  class="form-control no_soc updateElement" name="no_soc"
                         data-colName="no_soc" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="no_soc<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['no_soc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->no_soc==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <select  class="form-control no_fetal updateElement" name="no_fetal"
                         data-colName="no_fetal" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="no_fetal<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['no_fetal']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->no_fetal==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <select  class="form-control fetal_pulse updateElement" name="fetal_pulse"
                         data-colName="fetal_pulse" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="fetal_pulse<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['fetal_pulse']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->fetal_pulse==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <input type="text" class="form-control updateElement" placeholder="GS" 
                       data-colName="gs" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" 
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->gs;?>
">
            </td>
            <td>
                <input type="text" class="form-control updateElement" placeholder="CRL" 
                       data-colName="crl" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" 
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->crl;?>
">
            </td>
            <?php }elseif($_smarty_tpl->tpl_vars['aUs']->value->netW>=14&&$_smarty_tpl->tpl_vars['aUs']->value->netW<=40){?>
            <td>
                <select  class="form-control fet_no updateElement" name="fet_no"
                         data-colName="fet_no" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="fet_no<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['fet_no']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->fet_no==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <select  class="form-control visibility updateElement" name="visibility"
                         data-colName="visibility" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="visibility<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['visibility']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->visibility==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <select  class="form-control ant_presentation updateElement" name="ant_presentation"
                         data-colName="ant_presentation" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="ant_presentation<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ant_presentation']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->ant_presentation==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <select  class="form-control ant_liquor updateElement" name="ant_liquor"
                         data-colName="ant_liquor" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  
                         data-tableName="mainantenentalus"   id="ant_liquor<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" >
                    <option value=""></option>
                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ant_liquor']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['aUs']->value->ant_liquor==$_smarty_tpl->tpl_vars['row']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['row']->value->name;?>
</option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </td>
            <td>
                <input type="text" class="form-control updateElement" placeholder="BPD" 
                       data-colName="bpd" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->bpd;?>
">
            </td>
            <td>
                <input type="text" class="form-control updateElement" placeholder="FL" 
                       data-colName="fl" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" 
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->fl;?>
">
            </td>
            <td>
                <input type="text" class="form-control updateElement" placeholder="AC" 
                       data-colName="ac" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" 
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->ac;?>
">
            </td>
            <td>
                <input type="text" class="form-control updateElement" placeholder="EFW" 
                       data-colName="efw" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" 
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->efw;?>
"> gm
            </td>
            <?php }?>

            <td>
                <input type="text" class="form-control updateElement amrpop" placeholder="Notes" 
                       data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" 
                       value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->notes;?>
">
            </td>
            <td>
                <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
" 
                   style=" float: left;" href="#" data-link="antenalvisit" data-fn="delantus">
                    <i class="fa fa-close"></i>
                </a>
            </td>
            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
            <td class="bold"> <?php echo $_smarty_tpl->tpl_vars['aUs']->value->doctorname;?>
 </td>
            <?php }?>
        </tr>
    </tbody>
</table>

<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?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="mainantenentaldrugs" 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'];?>
 </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="mainantenentaldrugs" 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="mainantenentaldrugs" 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>
    <?php if ($_smarty_tpl->tpl_vars['programSettingData']->value->presquantity==1){?>
    <td id="drugQuantity<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
">
        -                                                            
    </td>
    <?php }?>
    <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="antenalvisit" data-fn="addprescription">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>

<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?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 }} ?>