<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 11:54:59
         compiled from "../views/obgy/patienthistory/newFamilyRow.html" */ ?>
<?php /*%%SmartyHeaderCode:11478638065fff8734a0727-79773971%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '23dfe7e54562e9575547f288021dc2740283b368' => 
    array (
      0 => '../views/obgy/patienthistory/newFamilyRow.html',
      1 => 1673861674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11478638065fff8734a0727-79773971',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'case_summary' => 0,
    'itr' => 0,
    'phfamily_obj' => 0,
    'allphfamilydisease' => 0,
    'myallphfamilydisease' => 0,
    'allphfamilyrelative' => 0,
    'myallphfamilyrelative' => 0,
    'ProgramesettingData' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fff873598bb5_23689301',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fff873598bb5_23689301')) {function content_65fff873598bb5_23689301($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['case_summary']->value==1){?>
<tr>
    <td class="wds35"> 
        <select  class="form-control  family_disease updateElement allupdateselect" data-val="" id="family_disease<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" select-tableName="phfamilydisease"  name="family_disease" data-colName="family_disease" data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily" >
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['myallphfamilydisease'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamilydisease']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphfamilydisease']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamilydisease']->key => $_smarty_tpl->tpl_vars['myallphfamilydisease']->value){
$_smarty_tpl->tpl_vars['myallphfamilydisease']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->name;?>
 </option>
            <?php } ?>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td class="wds25">
        <select  class="form-control family_relative  updateElement allupdateselect" data-val="" id="family_relative<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" select-tableName="phfamilyrelative"  name="family_relative" data-colName="family_relative" data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily" >
            <option value="">choose</option>
            <?php  $_smarty_tpl->tpl_vars['myallphfamilyrelative'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamilyrelative']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphfamilyrelative']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamilyrelative']->key => $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value){
$_smarty_tpl->tpl_vars['myallphfamilyrelative']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->name;?>
 </option>
            <?php } ?>
            <option value="-2" class="deleteoptincompo">Delete</option>
        </select>
    </td>
    <td>
        <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="familynote" data-colName="familynote"   data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily"/>
    </td>
    <td class="wds10"> 
        <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
               data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily" 
               data-colName="for_husband"  
               <?php if ($_smarty_tpl->tpl_vars['phfamily_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['phfamily_obj']->value->id;?>
" 
           data-link="case_summary"  data-fn="del" data-tableName="phfamily" 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-4">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Disease</label>-->
                <select  class="form-control  family_disease updateElement allupdateselect" data-val="" id="family_disease<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" select-tableName="phfamilydisease"  name="family_disease" data-colName="family_disease" data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily" >
                    <option value="">choose</option>
                    <?php  $_smarty_tpl->tpl_vars['myallphfamilydisease'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamilydisease']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphfamilydisease']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamilydisease']->key => $_smarty_tpl->tpl_vars['myallphfamilydisease']->value){
$_smarty_tpl->tpl_vars['myallphfamilydisease']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->name;?>
 </option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-4">
            <div class="form-group">
                <!--<label class="control-label col-md-2 ls2">Relative</label>-->
                <select  class="form-control family_relative  updateElement allupdateselect" data-val="" id="family_relative<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" select-tableName="phfamilyrelative"  name="family_relative" data-colName="family_relative" data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily" >
                    <option value="">choose</option>
                    <?php  $_smarty_tpl->tpl_vars['myallphfamilyrelative'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamilyrelative']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphfamilyrelative']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamilyrelative']->key => $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value){
$_smarty_tpl->tpl_vars['myallphfamilyrelative']->_loop = true;
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->id;?>
" ><?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->name;?>
 </option>
                    <?php } ?>
                    <option value="-2" class="deleteoptincompo">Delete</option>
                </select>
            </div>
        </div>


        <div class="col-md-3">
            <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" placeholder="Note" name="familynote" data-colName="familynote"   data-id="<?php echo $_smarty_tpl->tpl_vars['phfamily_obj']->value->id;?>
" data-tableName="phfamily"/>
                </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['phfamily_obj']->value->id;?>
" data-tableName="phfamily" 
                       data-colName="for_husband"  
                       <?php if ($_smarty_tpl->tpl_vars['phfamily_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['phfamily_obj']->value->id;?>
" data-tableName="phfamily"><i class="fa fa-close"></i></button>
            </div>

        </div>
    </div>

</div>
<?php }?><?php }} ?>