<?php /* Smarty version Smarty-3.1.11, created on 2025-06-21 18:49:26
         compiled from "../views/obgy/case_summary/family.html" */ ?>
<?php /*%%SmartyHeaderCode:1598415096856d48655af45-83417416%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd154a3b9a48adefb6378a64418074c814d5b2ca3' => 
    array (
      0 => '../views/obgy/case_summary/family.html',
      1 => 1674625826,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1598415096856d48655af45-83417416',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'phfamilycountx' => 0,
    'phfamily' => 0,
    'i' => 0,
    'myallphfamily' => 0,
    'allphfamilydisease' => 0,
    'myallphfamilydisease' => 0,
    'allphfamilyrelative' => 0,
    'myallphfamilyrelative' => 0,
    'controllname' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6856d486587990_95422380',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6856d486587990_95422380')) {function content_6856d486587990_95422380($_smarty_tpl) {?><div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Family History </div>
        <div class="actions"></div>
        <div class="tools">
            <a href="#" class="collapse" title="تصغير / تكبير"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="row">
            <div id="ultrasoundgynaDiv">
                <div class="row">
                    <div class="portlet-body form" >
                        <form>
                            <div class="form-body">
                                <input type="hidden" id="family_itr" value="<?php echo $_smarty_tpl->tpl_vars['phfamilycountx']->value;?>
"/>

                                <table>
                                    <tbody>
                                    <th class="wds15">Family
                                        <button type="button" class="btn btn-xs blue" id="family_btn" data-summary="1">
                                            <i class="fa fa-plus"></i> </button>
                                    </th>
                                    <td> 
                                        <table>
                                            <tr>
                                                <th class="wds35">Disease </th>
                                                <th class="wds25">Relative </th>
                                                <th> Note</th>
                                                <th class="wds10"> Husband</th>
                                                <th class="wds5"> </th>
                                            </tr>
                                        </table>
                                        <table  id="family_div">
                                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['myallphfamily'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamily']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phfamily']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamily']->key => $_smarty_tpl->tpl_vars['myallphfamily']->value){
$_smarty_tpl->tpl_vars['myallphfamily']->_loop = true;
?>
                                            <tr>
                                                <td class="wds35"> 
                                                    <select  class="form-control family_disease updateElement allupdateselect" id="family_disease<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_disease;?>
"  name="family_disease" data-colName="family_disease" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->id;?>
" select-tableName="phfamilydisease"  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 ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_disease;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->id;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1==$_tmp2){?> selected <?php }?>><?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" id="family_relative<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  name="family_relative" data-colName="family_relative" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_relative;?>
" select-tableName="phfamilyrelative"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->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 ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_relative;?>
<?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->id;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp3==$_tmp4){?> selected <?php }?>><?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['myallphfamily']->value->id;?>
" data-tableName="phfamily" 
                                                           value="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->familynote;?>
"/>
                                                </td>
                                                <td class="wds10"> 
                                                    <input type="checkbox"   id="for_husband" value="1" class="updateElementCheck" 
                                                           data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->id;?>
" data-tableName="phfamily" 
                                                           data-colName="for_husband"  
                                                           <?php if ($_smarty_tpl->tpl_vars['myallphfamily']->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['myallphfamily']->value->id;?>
" 
                                                       data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
"  data-fn="del" data-tableName="phfamily" data-colName="del">
                                                        <i class="fa fa-times"></i> </a>
                                                </td>
                                            </tr>
                                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                            <?php } ?>
                                        </table>
                                    </td>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<?php }} ?>