<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:43:01
         compiled from "../views/obgy/antenalvisit/newrow.html" */ ?>
<?php /*%%SmartyHeaderCode:77683210966cc94750fbf26-33790256%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2306f83c7d8f1b96f3d0834eeae714d3b3b956fa' => 
    array (
      0 => '../views/obgy/antenalvisit/newrow.html',
      1 => 1577561736,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '77683210966cc94750fbf26-33790256',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'myObject' => 0,
    'ProgramesettingData' => 0,
    'allcomplaint' => 0,
    'comp' => 0,
    'alldiagnosis' => 0,
    'mydiagnosis' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc94751663f8_68758826',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc94751663f8_68758826')) {function content_66cc94751663f8_68758826($_smarty_tpl) {?><tr>
    <td>
        <input type="text" class="form-control datepicker vdate" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="antenaldate" data-tableName="antenalvisit" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->antenaldate;?>
" readonly/>
    </td>

    <td>
        <label data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['myObject']->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['myObject']->value->w;?>
</label>
    </td>

    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->diagnosshow==0){?>
    <td>
        <!--     -->
        <!--select2me complaint-->
        <input type="hidden" id="currentid" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
"/>
        <select multiple="" size="1" class="form-control select2me complaintant updateDiagnosis" id="complaint<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="complaintid" data-tableName="antenalvisit">
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['comp'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['comp']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allcomplaint']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['comp']->key => $_smarty_tpl->tpl_vars['comp']->value){
$_smarty_tpl->tpl_vars['comp']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['comp']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['comp']->value->name;?>
</option>
            <?php } ?>
            <option value="-1" class="addDiagnosis">Add</option>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <!--     -->
        <!--select2me diagnosis-->
        <select multiple="" class="form-control select2me diagnosisant updateDiagnosis" id="diagnosis<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="diagnosisid" data-tableName="antenalvisit">
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['mydiagnosis'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mydiagnosis']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldiagnosis']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mydiagnosis']->key => $_smarty_tpl->tpl_vars['mydiagnosis']->value){
$_smarty_tpl->tpl_vars['mydiagnosis']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['mydiagnosis']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['mydiagnosis']->value->name;?>
</option>
            <?php } ?>
            <option value="-1" class="addDiagnosis">Add</option>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <?php }else{ ?>
    <td>
        <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="complaint" data-tableName="antenalvisit" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->complaint;?>
"/>
    </td>
    <?php }?>
    <td>
        <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="wt" data-tableName="antenalvisit" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->wt;?>
"/>
    </td>
    <td>
        <input type="text" class="form-control bp_mask updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="bp" data-tableName="antenalvisit" value="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->bp;?>
"/>
    </td>

    <td>
        <textarea class="form-control txtc updateElement" rows="1" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" data-colName="notes" data-tableName="antenalvisit" placeholder="Enter more text"><?php echo $_smarty_tpl->tpl_vars['myObject']->value->notes;?>
</textarea>
    </td>
    <td>
        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['myObject']->value->id;?>
" style=" float: left;" href="#" data-link="antenalvisit" data-fn="del">
            <i class="fa fa-close"></i>
        </a>
    </td>
</tr>


<script type="text/javascript" >
    $(".bp_mask").inputmask("999/999", {autoUnmask: true});
    $('.datepickertoday').datepicker('setDate', '+0');
    $('.datepicker').datepicker();
    var diagnosis_itr = $('#currentid').val();
    $('#currentid').remove();
    $('#diagnosis' + diagnosis_itr).select2({width: '270px', allowClear: true,
        formatNoMatches: function (term)
        {
            //return "<input class='form-control' id='newregTerm' value='" + term + "'><a href='#' id='addregnew' data-id=" + diagnosis_itr + " class='btn btn-default'>Add</a>"
        }});
    $('#complaint' + diagnosis_itr).select2({
        width: '270px',
        allowClear: true,
        formatNoMatches: function (term) {
            //return "<input class='form-control' id='newregTerm' value='" + term + "'><a href='#' id='addregnew' data-id=" + diagnosis_itr + " class='btn btn-default'>Add</a>"
        }
    });

</script>
<?php }} ?>