<?php /* Smarty version Smarty-3.1.11, created on 2024-08-28 06:14:12
         compiled from "../views/obgy/investigation/investigation.html" */ ?>
<?php /*%%SmartyHeaderCode:153964879866cf22a46c0a86-01105892%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'caedbb2dc77937c19b8aec52dbde282fec3912e5' => 
    array (
      0 => '../views/obgy/investigation/investigation.html',
      1 => 1629570300,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '153964879866cf22a46c0a86-01105892',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientid' => 0,
    'today' => 0,
    'doctorData' => 0,
    'ProgramesettingData' => 0,
    'semencount' => 0,
    'allsemen' => 0,
    'semen' => 0,
    'i' => 0,
    'hsgcount' => 0,
    'allhsg' => 0,
    'hsg' => 0,
    'ustvcount' => 0,
    'allustv' => 0,
    'ustv' => 0,
    'lapcount' => 0,
    'alllaparoscopy' => 0,
    'lap' => 0,
    'hystcount' => 0,
    'allhysteroscopy' => 0,
    'hyst' => 0,
    'mricount' => 0,
    'allmrict' => 0,
    'mri' => 0,
    'hormoncount' => 0,
    'allhormon' => 0,
    'hormon' => 0,
    'pathcount' => 0,
    'allpathology' => 0,
    'path' => 0,
    'allOthersCount' => 0,
    'otherInvests' => 0,
    'invest' => 0,
    'j' => 0,
    'other' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cf22a48e2911_93632331',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cf22a48e2911_93632331')) {function content_66cf22a48e2911_93632331($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick invz">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Investigations
                        </div>
                    </div>
                    <div class="portlet-body all">
                        <input type="hidden" id="investigationPage" value="1"/>
                        <input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
"/>
                        <input type="hidden" id="tdate" value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
">
                        <input type="hidden" id="controllName" value="investigation"/>
                        <input type="hidden" id="DocName" value="<?php echo $_smarty_tpl->tpl_vars['doctorData']->value['user_name'];?>
"/>
                        <input type="hidden" id="showDoc" value="<?php echo $_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname;?>
"/>
                        <input type="hidden" id="hosHormon" value="<?php echo $_smarty_tpl->tpl_vars['ProgramesettingData']->value->visitsform;?>
">

                        <div class="tabbable tabbable-custom tabbable-noborder">
                            <ul class="nav nav-tabs" id="rowTab">


                                <li class="aw_3d_list active"> <a href="#tab1" data-toggle="tab"> SEMEN </a> </li>
                                <li class="aw_3d_list"> <a href="#tab2" data-toggle="tab"> HSG </a> </li>
                                <li class="aw_3d_list"> <a href="#tab3" data-toggle="tab"> US/TVs </a> </li>
                                <li class="aw_3d_list"> <a href="#tab4" data-toggle="tab">LAPAROSCOPY</a> </li>
                                <li class="aw_3d_list"> <a href="#tab5" data-toggle="tab"> HYSTEROSCOPY H</a> </li>
                                <li class="aw_3d_list"> <a href="#tab6" data-toggle="tab"> MRI/CT </a> </li>
                                <li class="aw_3d_list"> <a href="#tab7" data-toggle="tab">HORMONES</a> </li>
                                <li class="aw_3d_list"> <a href="#tab8" data-toggle="tab"> PATHOLOGY </a> </li>
                                <li class="aw_3d_list"> <a href="#tab9" data-toggle="tab"> Other </a> </li>
                            </ul>

                            <div class="tab-content">
                                <!---======================================================== tab1============================================================================================ ----->
                                <div class="tab-pane active " id="tab1">

                                    <!--Begin Semen-->

                                    <div class="row">
                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Semen</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addSemen" data-table="semen"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>
                                        <div id="semenDiv">
                                            <div class="clearfix"></div>
                                            <input type="hidden" id="semenitr" value="<?php echo $_smarty_tpl->tpl_vars['semencount']->value;?>
">

                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['semen'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['semen']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allsemen']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['semen']->key => $_smarty_tpl->tpl_vars['semen']->value){
$_smarty_tpl->tpl_vars['semen']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['semen']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick">

                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker updateElement txtc" id="semendate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->sdate;?>
"/>
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="semencount<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="count" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->count;?>
"/>
                                                        <label for="form_control_1">Count</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="semenA<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="motilitya" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->motilitya;?>
"/>
                                                        <label for="form_control_1">MotilityA</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-2">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="semenAB<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="motilityab" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->motilityab;?>
"/>
                                                        <label for="form_control_1">MotilityA+B</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="semennormal<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="normal" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->normal;?>
"/>
                                                        <label for="form_control_1">Normal</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="semenpus<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="puscell" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->puscell;?>
"/>
                                                        <label for="form_control_1">Pus cells</label>
                                                    </div>
                                                </div>

                                                <div class="col-md-5 wds39">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['semen']->value->notes;?>
" id="semennote<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['semen']->value->notes;?>
" />
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['semen']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="Semen" data-content="<?php echo $_smarty_tpl->tpl_vars['semen']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->
                                                        <!---->
                                                    </div>
                                                </div>

                                                <div class="form-group form-md-line-input">
                                                    <div class="col-md-1"></div>
                                                    <div class="col-md-11">

                                                        <div class="md-checkbox-inline">
                                                            <div class="md-checkbox">
                                                                <input type="checkbox" class="md-check updateCheckbox" id="normaltype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="sementype1" data-tableName="semen" data-colName="normaltype" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['semen']->value->normaltype==1){?>checked<?php }?>/>
                                                                <label for="normaltype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Normal </label>
                                                            </div>
                                                            <div class="md-checkbox">
                                                                <input type="checkbox" class="md-check updateCheckbox" id="Oligotype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="sementype2" data-tableName="semen" data-colName="oligo" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['semen']->value->oligo==1){?>checked<?php }?>/>
                                                                <label for="Oligotype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Oligo sprerm</label>
                                                            </div>
                                                            <div class="md-checkbox">
                                                                <input type="checkbox" class="md-check updateCheckbox" id="asthenotype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="sementype3" data-tableName="semen" data-colName="astheno" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['semen']->value->astheno==1){?>checked<?php }?>/>
                                                                <label for="asthenotype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Astheno sperm </label>
                                                            </div>
                                                            <div class="md-checkbox">
                                                                <input type="checkbox" class="md-check updateCheckbox" id="Tetratotype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="sementype4" data-tableName="semen" data-colName="tetrato" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['semen']->value->tetrato==1){?>checked<?php }?>/>
                                                                <label for="Tetratotype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
">
                                                                    <span></span>
                                                                    <span class="check"></span>
                                                                    <span class="box"></span>
                                                                    Tetrato sperm </label>
                                                            </div>

                                                        </div>

                                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete2" id="delsemen<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="semen" data-id="<?php echo $_smarty_tpl->tpl_vars['semen']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>

                                            </div>

                                            <div class="clearfix"></div>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>

                                        </div>
                                    </div>

                                    <!--End Semen-->

                                </div>
                                <!---======================================================== tab2============================================================================================ ----->
                                <div class="tab-pane " id="tab2">

                                    <!--Begin HSG-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> HSG</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addHsg" data-table="hsg"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="hsgDiv">
                                            <input type="hidden" id="hsgitr" value="<?php echo $_smarty_tpl->tpl_vars['hsgcount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['hsg'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hsg']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allhsg']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hsg']->key => $_smarty_tpl->tpl_vars['hsg']->value){
$_smarty_tpl->tpl_vars['hsg']->_loop = true;
?>


                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['hsg']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>


                                            <div class="row clinick">
                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker txtc updateElement" id="hsg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="uterus<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-colName="uterus" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->uterus;?>
">
                                                        <label for="form_control_1">Uterus</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="rtube<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-colName="rtube" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->rtube;?>
">
                                                        <label for="form_control_1">R.tube</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="ltube<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-colName="ltube" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->ltube;?>
">
                                                        <label for="form_control_1">L.tube</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="smear<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-colName="smear" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->smear;?>
">
                                                        <label for="form_control_1">Smear</label>
                                                    </div>
                                                </div>

                                                <div class="col-md-7 wds56">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->notes;?>
" id="hnotes<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->notes;?>
">
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['hsg']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="HSG" data-content="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->
                                                    </div>
                                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="delhsg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hsg" data-id="<?php echo $_smarty_tpl->tpl_vars['hsg']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>

                                    <!--End HSG-->

                                </div>
                                <!---======================================================== tab3============================================================================================ ----->
                                <div class="tab-pane " id="tab3">

                                    <!--Begin US/TVS-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> US/TVS</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addUs" data-table="ustv"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="usDiv">

                                            <input type="hidden" id="ustvitr" value="<?php echo $_smarty_tpl->tpl_vars['ustvcount']->value;?>
">

                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['ustv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ustv']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allustv']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ustv']->key => $_smarty_tpl->tpl_vars['ustv']->value){
$_smarty_tpl->tpl_vars['ustv']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['ustv']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick">

                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker txtc updateElement" id="ustvdate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="uuterus<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-colName="uterus" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->uterus;?>
">
                                                        <label for="form_control_1">Uterus</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="uradnexa<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-colName="radnexa" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->radnexa;?>
">
                                                        <label for="form_control_1">R.adnexa</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="uladnexa<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-colName="ladnexa" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->ladnexa;?>
">
                                                        <label for="form_control_1">L.adnexa</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="upelvis<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-colName="pelvis" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->pelvis;?>
">
                                                        <label for="form_control_1">Pelvis</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-7 wds56">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->notes;?>
" id="unotes<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->notes;?>
">
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['ustv']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="US/TVS" data-content="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->

                                                    </div>
                                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="delustv<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="ustv" data-id="<?php echo $_smarty_tpl->tpl_vars['ustv']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                </div>
                                            </div>

                                            <div class="clearfix"></div>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>

                                    <!--End US/TVS-->

                                </div>
                                <!---======================================================== tab4============================================================================================ ----->
                                <div class="tab-pane " id="tab4">

                                    <!--Begin Laparoscopy-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Laparoscopy</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addLap" data-table="laparoscopy"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="lapDiv">
                                            <input type="hidden" id="lapitr" value="<?php echo $_smarty_tpl->tpl_vars['lapcount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['lap'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['lap']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alllaparoscopy']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['lap']->key => $_smarty_tpl->tpl_vars['lap']->value){
$_smarty_tpl->tpl_vars['lap']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['lap']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick">

                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker txtc updateElement" id="lsdate1" data-tableName="laparoscopy" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['lap']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="luterus1" data-tableName="laparoscopy" data-colName="uterus" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['lap']->value->uterus;?>
">
                                                        <label for="form_control_1">Uterus</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="lradnexa1" data-tableName="laparoscopy" data-colName="radnexa" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['lap']->value->radnexa;?>
">
                                                        <label for="form_control_1">R.adnexa</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="lladnexa1" data-tableName="laparoscopy" data-colName="ladnexa" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['lap']->value->ladnexa;?>
">
                                                        <label for="form_control_1">L.adnexa</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="lpelvis1" data-tableName="laparoscopy" data-colName="pelvis" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['lap']->value->pelvis;?>
">
                                                        <label for="form_control_1">Pelvis</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-7 wds56">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['lap']->value->notes;?>
" id="lnotes1" data-tableName="laparoscopy" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['lap']->value->notes;?>
">
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['lap']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="LAPAROSCOPY" data-content="<?php echo $_smarty_tpl->tpl_vars['lap']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->

                                                    </div>
                                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="dellap<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="laparoscopy" data-id="<?php echo $_smarty_tpl->tpl_vars['lap']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                </div>
                                            </div>
                                            <div class="clearfix"></div>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>

                                            <div class="clearfix"></div>
                                        </div>
                                    </div>

                                    <!--End Laparoscopy-->

                                </div>
                                <!---======================================================== tab5============================================================================================ ----->
                                <div class="tab-pane " id="tab5">

                                    <!--Begin Hysteroscopy-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Hysteroscopy</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addHyst" data-table="hysteroscopy"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="hystDiv">
                                            <input type="hidden" id="hystitr" value="<?php echo $_smarty_tpl->tpl_vars['hystcount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['hyst'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hyst']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allhysteroscopy']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hyst']->key => $_smarty_tpl->tpl_vars['hyst']->value){
$_smarty_tpl->tpl_vars['hyst']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['hyst']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick">

                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker txtc updateElement" id="hystdate1" data-tableName="hysteroscopy" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="hcervix1" data-tableName="hysteroscopy" data-colName="cervix" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->cervix;?>
">
                                                        <label for="form_control_1">Cervix</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="huterine1" data-tableName="hysteroscopy" data-colName="uterine" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->uterine;?>
">
                                                        <label for="form_control_1">Ut Cavity</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="hrostium1" data-tableName="hysteroscopy" data-colName="rostium" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->rostium;?>
">
                                                        <label for="form_control_1">R.Ostium</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="hlostium1" data-tableName="hysteroscopy" data-colName="lostium" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->lostium;?>
">
                                                        <label for="form_control_1">L.Ostium</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-7 wds56">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->notes;?>
" id="hystnotes1" data-tableName="hysteroscopy" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->notes;?>
">
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['hyst']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="HYSTEROSCOPY" data-content="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->

                                                    </div>
                                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="delhyst<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hysteroscopy" data-id="<?php echo $_smarty_tpl->tpl_vars['hyst']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                </div>

                                            </div>
                                            <div class="clearfix"></div>
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <!--End Hysteroscopy-->

                                </div>
                                <!---======================================================== tab6============================================================================================ ----->
                                <div class="tab-pane " id="tab6">

                                    <!--Begin MRI/CT-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> MRI/CT</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addMri" data-table="mrict"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="mriDiv">
                                            <input type="hidden" id="mriitr" value="<?php echo $_smarty_tpl->tpl_vars['mricount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['mri'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['mri']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allmrict']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['mri']->key => $_smarty_tpl->tpl_vars['mri']->value){
$_smarty_tpl->tpl_vars['mri']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['mri']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick">
                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker txtc updateElement" id="mridate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mri']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="muterus<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-colName="uterus"  data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mri']->value->uterus;?>
">
                                                        <label for="form_control_1">Uterus</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="mradnexa<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-colName="radnexa"  data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mri']->value->radnexa;?>
">
                                                        <label for="form_control_1">R.adnexa</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="mladnexa<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-colName="ladnexa"  data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mri']->value->ladnexa;?>
">
                                                        <label for="form_control_1">L.adnexa</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="mpelvis<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-colName="pelvis"  data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mri']->value->pelvis;?>
">
                                                        <label for="form_control_1">Pelvis</label>
                                                    </div>
                                                </div>
                                                <div class="col-md-7 wds56">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['mri']->value->notes;?>
" id="mnotes<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-colName="notes"  data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['mri']->value->notes;?>
">
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['mri']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="MRI/CT" data-content="<?php echo $_smarty_tpl->tpl_vars['mri']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->

                                                    </div>
                                                    <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="delmri<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="mrict" data-id="<?php echo $_smarty_tpl->tpl_vars['mri']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                </div>

                                            </div>

                                            <div class="clearfix"></div>

                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <!--End MRI/CT-->

                                </div>
                                <!---======================================================== tab7============================================================================================ ----->
                                <div class="tab-pane " id="tab7">

                                    <!--Begin Hormones-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Hormones</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addHormon" data-table="hormon"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="hormonDiv" class="hormonz">
                                            <input type="hidden" id="hormonitr" value="<?php echo $_smarty_tpl->tpl_vars['hormoncount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['hormon'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['hormon']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allhormon']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['hormon']->key => $_smarty_tpl->tpl_vars['hormon']->value){
$_smarty_tpl->tpl_vars['hormon']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['hormon']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick hormonz">

                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker  updateElement" id="hodate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->fsh){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="fsh<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="fsh" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->fsh;?>
">
                                                        <label for="form_control_1">FSH</label>
                                                        <span class="input-group-addon">mIU/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->lh){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="lh<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="lh" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->lh;?>
">
                                                        <label for="form_control_1">LH</label>
                                                        <span class="input-group-addon">mIU/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->prl){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="prl<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="prl" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->prl;?>
">
                                                        <label for="form_control_1">PRL</label>
                                                        <span class="input-group-addon">ng/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->etwo){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="etwo<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="etwo" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->etwo;?>
">
                                                        <label for="form_control_1">E2</label>
                                                        <span class="input-group-addon">pg/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->amh){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="amh<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="amh" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->amh;?>
">
                                                        <label for="form_control_1">AMH</label>
                                                        <span class="input-group-addon">ng/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->freet){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="freet<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="freet" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->freet;?>
">
                                                        <label for="form_control_1">FreeT</label>
                                                        <span class="input-group-addon">pg/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->totalt){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="totalt<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="totalt" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->totalt;?>
">
                                                        <label for="form_control_1">TotalT</label>
                                                        <span class="input-group-addon">ng/dl</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->pfour){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="pfour<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="pfour" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->pfour;?>
">
                                                        <label for="form_control_1">P4</label>
                                                        <span class="input-group-addon">ng/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->tsh){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="tsh<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="tsh" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->tsh;?>
">
                                                        <label for="form_control_1">TSH</label>
                                                        <span class="input-group-addon">uIU/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->tthree){?>

                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="tthree<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="tthree" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->tthree;?>
">
                                                        <label for="form_control_1">T3</label>
                                                        <span class="input-group-addon">ng/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->tfour){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="tfour<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="tfour" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->tfour;?>
">
                                                        <label for="form_control_1">T4</label>
                                                        <span class="input-group-addon">ug/dl</span>
                                                    </div>
                                                </div>
                                                <?php }?>

                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->dheas){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="dheas<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="dheas" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->dheas;?>
">
                                                        <label for="form_control_1">DHEAS</label>
                                                        <span class="input-group-addon">ug/dl</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->dht){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="dht<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="dht" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->dht;?>
">
                                                        <label for="form_control_1">DHT</label>
                                                        <span class="input-group-addon">ng/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->bhcg){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="bhcg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="bhcg" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->bhcg;?>
">
                                                        <label for="form_control_1">B-HCG</label>
                                                        <span class="input-group-addon">mIU/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->inhibinb){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="inhibinb<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="inhibinb" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->inhibinb;?>
">
                                                        <label for="form_control_1">InhibinB</label>
                                                        <span class="input-group-addon">pg/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->asd){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="asd<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="asd" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->asd;?>
">
                                                        <label for="form_control_1">ASD</label>
                                                        <span class="input-group-addon">ng/ml</span>
                                                    </div>
                                                </div>
                                                <?php }?>

                                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->visitsform==1){?>

                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->ca125||$_smarty_tpl->tpl_vars['hormon']->value->cea||$_smarty_tpl->tpl_vars['hormon']->value->calgg||$_smarty_tpl->tpl_vars['hormon']->value->ldh||$_smarty_tpl->tpl_vars['hormon']->value->tfehprotein){?>


                                                <div class="col-md-1" style="width: 12%;">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">

                                                        <label class="form-control" style="background-color: #999;font-weight: bold;">Tum.markers</label>
                                                        <label for="form_control_1"></label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>

                                                <?php }?>
                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->ca125){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="ca125<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="ca125" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->ca125;?>
">
                                                        <label for="form_control_1">CA125</label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>
                                                <?php }?>

                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->cea){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="cea<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="cea" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->cea;?>
">
                                                        <label for="form_control_1">CEA</label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>
                                                <?php }?>

                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->calgg){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="calgg<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="calgg" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->calgg;?>
">
                                                        <label for="form_control_1">CAlg-9</label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>
                                                <?php }?>

                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->ldh){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="ldh<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="ldh" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->ldh;?>
">
                                                        <label for="form_control_1">LDH</label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>
                                                <?php }?>

                                                <?php if ($_smarty_tpl->tpl_vars['hormon']->value->tfehprotein){?>
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="tfehprotein<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="tfehprotein" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->tfehprotein;?>
">
                                                        <label for="form_control_1">tfehprotein</label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>
                                                <?php }?>
                                                <?php }?>



                                                <?php if (!empty($_smarty_tpl->tpl_vars['hormon']->value->notes)){?>
                                                <div class="col-md-6 wds48">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->notes;?>
" id="honotes<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-colName="notes" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->notes;?>
">
                                                        <label for="form_control_1">Notes</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['hormon']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="HORMONES" data-content="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->notes;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->
                                                        <button type="button" class="axedelete2 btn btn-xs red fright removeMsg" style="margin-top: 25px;" id="delhormon<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="hormon" data-id="<?php echo $_smarty_tpl->tpl_vars['hormon']->value->id;?>
"><i class="fa fa-close"></i></button>

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


                                            </div>
                                            <div class="clearfix"></div>

                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <!--End Hormones-->

                                </div>
                                <!---======================================================== tab8============================================================================================ ----->
                                <div class="tab-pane " id="tab8">

                                    <!--Begin Pathology-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Pathology</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addPathology" data-table="pathology"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="pathDiv">
                                            <input type="hidden" id="pathitr" value="<?php echo $_smarty_tpl->tpl_vars['pathcount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['path'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['path']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allpathology']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['path']->key => $_smarty_tpl->tpl_vars['path']->value){
$_smarty_tpl->tpl_vars['path']->_loop = true;
?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row">
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['path']->value->docname;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row clinick">

                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control datepicker txtc updateElement" id="psdate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="pathology" data-colName="sdate" data-id="<?php echo $_smarty_tpl->tpl_vars['path']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['path']->value->sdate;?>
">
                                                        <!--<label for="form_control_1">Date</label>-->
                                                    </div>
                                                </div>
                                                <div class="col-md-5">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['path']->value->cytology;?>
" id="cytology<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="pathology" data-colName="cytology" data-id="<?php echo $_smarty_tpl->tpl_vars['path']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['path']->value->cytology;?>
">
                                                        <label for="form_control_1">Cytology</label>
                                                        <!--                                                        <span class="input-group-btn">
                                                                                                                    <a href="javascript:void(0)" class="btn blue shownotes" type="button" <?php if (!empty($_smarty_tpl->tpl_vars['path']->value->notes)){?> data-toggle="popover" <?php }?> data-trigger="focus" data-placement="top" title="PATHOLOGY" data-content="<?php echo $_smarty_tpl->tpl_vars['path']->value->cytology;?>
"><span class="glyphicon glyphicon-info-sign"></span></a>
                                                                                                                </span>-->

                                                    </div>
                                                </div>

                                                <div class="col-md-6 wds48">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['path']->value->histopathology;?>
" id="histopathology<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="pathology" data-colName="histopathology" data-id="<?php echo $_smarty_tpl->tpl_vars['path']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['path']->value->histopathology;?>
">
                                                        <label for="form_control_1">Histopathology</label>
                                                        <button type="button" class="btn btn-xs red fright removeMsg axedelete4 " id="delpath<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="pathology" data-id="<?php echo $_smarty_tpl->tpl_vars['path']->value->id;?>
"><i class="fa fa-close"></i></button>
                                                    </div>


                                                </div>


                                            </div>
                                            <div class="clearfix"></div>

                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <!--End Pathology-->

                                </div>

                                <!---======================================================== tab9============================================================================================ ----->
                                <div class="tab-pane " id="tab9">

                                    <!--Begin Hormones-->

                                    <div class="row">


                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Other</span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="addNewInv" ><i class="fa fa-plus"></i> Add Investigations</button>
                                                <button type="button" class="btn btn-xs blue fright" id="addOtherRow" ><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div id="otherDiv" >
                                            <input type="hidden" id="otheritr" value="<?php echo $_smarty_tpl->tpl_vars['allOthersCount']->value;?>
">
                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                            <?php  $_smarty_tpl->tpl_vars['invest'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['invest']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['otherInvests']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['invest']->key => $_smarty_tpl->tpl_vars['invest']->value){
$_smarty_tpl->tpl_vars['invest']->_loop = true;
?>

                                            <div class="col-md-1 wds10">
                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                    <input type="text" class="form-control datepicker txtc updateElement" id="otherdate<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="otherinvestigationsrows" data-colName="date" data-id="<?php echo $_smarty_tpl->tpl_vars['invest']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['invest']->value->date;?>
">
                                                    <!--<label for="form_control_1">Date</label>-->
                                                </div>
                                            </div>
                                            <div class="col-md-10">
                                                <?php $_smarty_tpl->tpl_vars["j"] = new Smarty_variable("1", null, 0);?>
                                                <?php  $_smarty_tpl->tpl_vars['other'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['other']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['invest']->value->invs; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['other']->key => $_smarty_tpl->tpl_vars['other']->value){
$_smarty_tpl->tpl_vars['other']->_loop = true;
?>
                                                
                                                <div class="<?php if ($_smarty_tpl->tpl_vars['j']->value==count($_smarty_tpl->tpl_vars['invest']->value->invs)){?>col-md-<?php echo $_smarty_tpl->tpl_vars['invest']->value->last;?>
<?php }else{ ?>col-md-<?php echo $_smarty_tpl->tpl_vars['invest']->value->td;?>
<?php }?>" style="width: <?php echo $_smarty_tpl->tpl_vars['invest']->value->invsWidth;?>
%;">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control updateElement" id="value<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-tableName="otherinvestigationsvalues" data-colName="value" data-id="<?php echo $_smarty_tpl->tpl_vars['other']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['other']->value->value;?>
">
                                                        <label for="form_control_1"><?php echo $_smarty_tpl->tpl_vars['other']->value->investName;?>
</label>
                                                        <span class="input-group-addon"></span>
                                                    </div>
                                                </div>
                                                
                                                <?php $_smarty_tpl->tpl_vars["j"] = new Smarty_variable($_smarty_tpl->tpl_vars['j']->value+1, null, 0);?>
                                                <?php } ?>
                                            </div>
                                            <div class="col-md-1" style="width: 1%;position: absolute;right: 17px;">
                                                <button type="button" class="axedelete2 btn btn-xs red fright removeMsgOther" style="margin-top: 25px;"  data-tableName="otherinvestigationsrows" data-id="<?php echo $_smarty_tpl->tpl_vars['invest']->value->id;?>
"><i class="fa fa-close"></i></button>
                                            </div>

                                            <div class="clearfix"></div>

                                            <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                            <?php } ?>
                                            <div class="clearfix"></div>
                                        </div>
                                    </div>
                                    <!--End Hormones-->

                                </div>

                            </div>
                        </div>


                        <div class="clearfix"></div>




                    </div>



                </div>
            </div>
        </div>
    </div>
</div>

<div id="othersi"></div><?php }} ?>