<?php /* Smarty version Smarty-3.1.11, created on 2025-06-21 18:49:26
         compiled from "../views/obgy/case_summary/pasthx.html" */ ?>
<?php /*%%SmartyHeaderCode:7338121716856d4865b50b3-86547363%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '19e540c671e7e85099cc9eef5759d155a6edd354' => 
    array (
      0 => '../views/obgy/case_summary/pasthx.html',
      1 => 1673860864,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7338121716856d4865b50b3-86547363',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'phpasthxcount' => 0,
    'phpasthx' => 0,
    'i' => 0,
    'data' => 0,
    'phpasthx_types' => 0,
    'value' => 0,
    'controllname' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6856d4865d08b1_54250720',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6856d4865d08b1_54250720')) {function content_6856d4865d08b1_54250720($_smarty_tpl) {?><input type="hidden" id="investigationPage" value="1"/>
<input type="hidden" id="phpasthxitr" value="<?php echo $_smarty_tpl->tpl_vars['phpasthxcount']->value;?>
">
<table>
    <caption>Past hx. Of testicular biobsy</caption>
    <tbody>
    <th class="wds15">Past hx 
        <button type="button" class="btn btn-xs blue"  id="addPhpasthx" data-table="phpasthx"  data-summary="1">
            <i class="fa fa-plus"></i> </button>
    </th>
    <td> 
        <table>
            <tr>
                <th class="wds45">Type </th>
                <th> Note</th>
                <th class="wds5"> </th>
            </tr>
        </table>
        <table  id="phpasthxDiv">
            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phpasthx']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
            <tr>
                <td class="wds45"> 
                    <select  class="form-control  pasthx_type updateElement allupdateselect" data-val="" id="pasthx_type<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" select-tableName="phpasthxtypes"  name="pasthx_type" data-colName="pasthx_type" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-tableName="phpasthx" >
                        <option value="">choose</option>
                        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phpasthx_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->pasthx_type;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1==$_tmp2){?> selected <?php }?>  ><?php echo $_smarty_tpl->tpl_vars['value']->value->name;?>
 </option>
                        <?php } ?>
                        <option value="-2" class="deleteoptincompo">Delete</option>
                    </select>
                </td>
                <td>
                    <input type="text" class="amrpop form-control updateElement" id="pasthxnote<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" 
                           placeholder="Note" name="pasthxnote" data-colName="pasthxnote" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->pasthxnote;?>
"   
                           data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-tableName="phpasthx"/>

                </td>
                <td class="wds5">
                    <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" 
                       data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
"  data-fn="del" data-tableName="phpasthx" 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><?php }} ?>