<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:45:53
         compiled from "../views/obgy/antenalvisit/newrowUS.html" */ ?>
<?php /*%%SmartyHeaderCode:99086952666cc95214fd850-97256696%%*/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 => 1593062884,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '99086952666cc95214fd850-97256696',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'type' => 0,
    'aUs' => 0,
    'itr' => 0,
    'ProgramesettingData' => 0,
    'allDrugcats' => 0,
    'cat' => 0,
    'gynaDrug' => 0,
    'drugs' => 0,
    'drug' => 0,
    'programSettingData' => 0,
    'allDrugTypes' => 0,
    'allDrugDoses' => 0,
    'dos' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc952158d644_75799126',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc952158d644_75799126')) {function content_66cc952158d644_75799126($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['type']->value=="usantenatal"){?>
<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;?>
</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: 18px;" <?php }else{ ?> style="color: maroon; font-weight : bolder; font-size: 18px;" <?php }?>><?php echo $_smarty_tpl->tpl_vars['aUs']->value->w;?>
</label>
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="N" data-colName="nga" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->nga;?>
">
    </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>
    <td>
        <input type="text" class="form-control updateElement" placeholder="FHR" data-colName="fhr" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->fhr;?>
">
    </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="Placenta" data-colName="placenta" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->placenta;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="AI" data-colName="ai" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->ai;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" placeholder="FWT" data-colName="fwt" data-id="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->id;?>
"  data-tableName="mainantenentalus" value="<?php echo $_smarty_tpl->tpl_vars['aUs']->value->fwt;?>
">
    </td>
    <td>
        <input type="text" class="form-control updateElement" 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>
<!----------------------------------------------------------------------------------------------------------------------------------------------------->
<?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'];?>
 <?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="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>

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