<?php /* Smarty version Smarty-3.1.11, created on 2025-06-21 18:49:26
         compiled from "../views/obgy/case_summary/sexual.html" */ ?>
<?php /*%%SmartyHeaderCode:631484126856d4865907b0-45854601%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9c7b3eb375c022c6aaeb54b1b5c7203c10aa8ae5' => 
    array (
      0 => '../views/obgy/case_summary/sexual.html',
      1 => 1674625826,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '631484126856d4865907b0-45854601',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'phsexualcount' => 0,
    'phsexual' => 0,
    'i' => 0,
    'myallphsexual' => 0,
    'sexual_types' => 0,
    'data' => 0,
    'controllname' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6856d4865abac6_15349482',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6856d4865abac6_15349482')) {function content_6856d4865abac6_15349482($_smarty_tpl) {?><div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Sexual 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="sexual_itr" value="<?php echo $_smarty_tpl->tpl_vars['phsexualcount']->value;?>
"/>
                                <table>
                                    <tbody>
                                    <th class="wds15">Sexual 
                                        <button type="button" class="btn btn-xs blue" id="sexual_btn" 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="sexual_div">
                                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['myallphsexual'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphsexual']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phsexual']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphsexual']->key => $_smarty_tpl->tpl_vars['myallphsexual']->value){
$_smarty_tpl->tpl_vars['myallphsexual']->_loop = true;
?>
                                            <tr>
                                                <td class="wds45"> 
                                                    <select  class="form-control sexual_type updateElement allupdateselect" id="sexual_type<?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['myallphsexual']->value->sexual_type;?>
"  name="sexual_type" data-colName="sexual_type" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphsexual']->value->id;?>
" select-tableName="phsexualtypes"  data-tableName="phsexual" >
                                                        <option value="">choose</option>
                                                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['sexual_types']->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;
?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphsexual']->value->sexual_type;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1==$_tmp2){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->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="sexualnote" 
                                                           data-colName="sexualnote" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphsexual']->value->id;?>
" data-tableName="phsexual"
                                                           value="<?php echo $_smarty_tpl->tpl_vars['myallphsexual']->value->sexualnote;?>
"/>
                                                </td>
                                                <td class="wds5">
                                                    <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphsexual']->value->id;?>
" 
                                                       data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
"  data-fn="del" data-tableName="phsexual" 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 }} ?>