<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 11:55:48
         compiled from "../views/obgy/patienthistory/newPastMedicalRow.html" */ ?>
<?php /*%%SmartyHeaderCode:115510326465fff8a4406e97-79390254%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0dbfc98774657d5c32ddc35a2bbfc1a94068f973' => 
    array (
      0 => '../views/obgy/patienthistory/newPastMedicalRow.html',
      1 => 1673861674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '115510326465fff8a4406e97-79390254',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'case_summary' => 0,
    'itr' => 0,
    'phpastmedical_obj' => 0,
    'allphpastmedicaldisease' => 0,
    'myallphpastmedicaldisease' => 0,
    'ProgramesettingData' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fff8a449d8d2_86803499',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fff8a449d8d2_86803499')) {function content_65fff8a449d8d2_86803499($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['case_summary']->value==1){?>
<tr>
    <td class="wds45">
        <select  class="form-control  medicaldisease updateElement allupdateselect" id="medicaldisease<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
"  name="medicaldisease" data-colName="medicaldisease" select-tableName="phpastmedicaldisease" data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
" data-tableName="phpastmedical" >
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['myallphpastmedicaldisease'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastmedicaldisease']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->key => $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value){
$_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->name;?>
 </option>
            <?php } ?>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement"  name="medicalnote" 
               data-colName="medicalnote" placeholder="Note" data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
"  
               data-tableName="phpastmedical"/>
    </td>
    <td class="wds10">
        <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
               data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
" data-tableName="phpastmedical" 
               data-colName="for_husband"  
               <?php if ($_smarty_tpl->tpl_vars['phpastmedical_obj']->value->for_husband==1){?> checked <?php }?>>
    </td>
    <td class="wds5">
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
" 
           data-link="case_summary"  data-fn="del" data-tableName="phpastmedical" data-colName="del">
            <i class="fa fa-times"></i> </a>
    </td>
</tr>
<?php }else{ ?>
<div>
    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
    <div class="row ltr" >
        <div class="col-md-1">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['username']->value;?>
</label>
            </div>
        </div>
    </div>
    <?php }?>
    <div class="row ltr" >
        <div class="col-md-3">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Disease</label>-->
                <select  class="form-control  medicaldisease updateElement allupdateselect" id="medicaldisease<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
"  name="medicaldisease" data-colName="medicaldisease" select-tableName="phpastmedicaldisease" data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
" data-tableName="phpastmedical" >
                    <option value="">choose</option>
                    <?php  $_smarty_tpl->tpl_vars['myallphpastmedicaldisease'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastmedicaldisease']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->key => $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value){
$_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->name;?>
 </option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </div>
        </div>



        <div class="col-md-8">
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <div class="form-group form-md-line-input form-md-floating-label has-info">
                    <input type="text" class="amrpop form-control updateElement"  name="medicalnote" 
                           data-colName="medicalnote" placeholder="Note" data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
"  
                           data-tableName="phpastmedical"/>
                </div>
            </div>
        </div>

        <div class="col-md-1" style="padding-left: 3%;" >
            <div class="form-group form-md-line-input form-md-floating-label has-info">
                <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
                       data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
" data-tableName="phpastmedical" 
                       data-colName="for_husband"  
                       <?php if ($_smarty_tpl->tpl_vars['phpastmedical_obj']->value->for_husband==1){?> checked <?php }?>>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" 
                        data-id="<?php echo $_smarty_tpl->tpl_vars['phpastmedical_obj']->value->id;?>
" data-tableName="phpastmedical">
                    <i class="fa fa-close"></i></button>

            </div>
        </div>

    </div>
</div>

<?php }?><?php }} ?>