<?php /* Smarty version Smarty-3.1.11, created on 2024-03-24 11:58:18
         compiled from "../views/obgy/patienthistory/newsexualrow.html" */ ?>
<?php /*%%SmartyHeaderCode:18343142965fff93a662720-18355345%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7df234b585e231f4dfe098dd0d826b936e6b8c27' => 
    array (
      0 => '../views/obgy/patienthistory/newsexualrow.html',
      1 => 1673861674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '18343142965fff93a662720-18355345',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'case_summary' => 0,
    'itr' => 0,
    'phsexual_obj' => 0,
    'sexual_types' => 0,
    'data' => 0,
    'ProgramesettingData' => 0,
    'username' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_65fff93a708cb1_75006659',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_65fff93a708cb1_75006659')) {function content_65fff93a708cb1_75006659($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['case_summary']->value==1){?>
<tr>
    <td class="wds45"> 
        <select  class="form-control  sexual_type updateElement allupdateselect" data-val="" id="sexual_type<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" select-tableName="phsexualtypes"  name="sexual_type" data-colName="sexual_type" data-id="<?php echo $_smarty_tpl->tpl_vars['phsexual_obj']->value->id;?>
" 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 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['phsexual_obj']->value->id;?>
" data-tableName="phsexual"/>
    </td>
    <td class="wds5"> 
        <a class="btn grey-cascade btn-xs deletemsgEX2" data-id="<?php echo $_smarty_tpl->tpl_vars['phsexual_obj']->value->id;?>
" 
           data-link="case_summary"  data-fn="del" data-tableName="phsexual" 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  sexual_type updateElement allupdateselect" data-val="" id="sexual_type<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['itr']->value;?>
" select-tableName="phsexualtypes"  name="sexual_type" data-colName="sexual_type" data-id="<?php echo $_smarty_tpl->tpl_vars['phsexual_obj']->value->id;?>
" 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 echo $_smarty_tpl->tpl_vars['data']->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" placeholder="Note" name="sexualnote" data-colName="sexualnote"   data-id="<?php echo $_smarty_tpl->tpl_vars['phsexual_obj']->value->id;?>
" data-tableName="phsexual"/>
                </div>
                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['phsexual_obj']->value->id;?>
" data-tableName="phsexual"><i class="fa fa-close"></i></button>
            </div>
        </div>

    </div>
</div>

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