<?php /* Smarty version Smarty-3.1.11, created on 2025-02-12 00:02:33
         compiled from "../views/obgy/patienthistory/add.html" */ ?>
<?php /*%%SmartyHeaderCode:197597643767ac55991ed378-53868389%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '72953947847dbc1593a9eece43eb5cf2eda98faf' => 
    array (
      0 => '../views/obgy/patienthistory/add.html',
      1 => 1647248454,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '197597643767ac55991ed378-53868389',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'ProgramesettingData' => 0,
    'active' => 0,
    'patientId' => 0,
    'tabactive' => 0,
    'allphmenstrualcount' => 0,
    'allphmenstrual' => 0,
    'myallphmenstrual' => 0,
    'i' => 0,
    'allphregualrity' => 0,
    'myallphregualrity' => 0,
    'allphamount' => 0,
    'myallphamount' => 0,
    'allphdysmenorrhoea' => 0,
    'myallphdysmenorrhoea' => 0,
    'allcontractcount' => 0,
    'allcontract' => 0,
    'myallcontract' => 0,
    'allphcontracttype' => 0,
    'myallphcontracttype' => 0,
    'allobstericcount' => 0,
    'allobsteric' => 0,
    'myallobsteric' => 0,
    'allphobstericterminate' => 0,
    'myallphobstericterminate' => 0,
    'allphobstericterplace' => 0,
    'myallphobstericterplace' => 0,
    'xactive' => 0,
    'xtabactive' => 0,
    'phpastmedicalcount' => 0,
    'mypastmedical' => 0,
    'myallphpastmedical' => 0,
    'allphpastmedicaldisease' => 0,
    'myallphpastmedicaldisease' => 0,
    'pastsurgicalcount' => 0,
    'pastsurgical' => 0,
    'myallpastsurgical' => 0,
    'allphpastsurgicaloperation' => 0,
    'myallphpastsurgicaloperation' => 0,
    'phpastgynecologicalcount' => 0,
    'phpastgynecological' => 0,
    'myallpastgynecological' => 0,
    'allphpastgynecologicaloperation' => 0,
    'myallphpastgynecologicaloperation' => 0,
    'artactive' => 0,
    'arttabactive' => 0,
    'phpastartcount' => 0,
    'phpastart' => 0,
    'myallphpastart' => 0,
    'allphpastarttype' => 0,
    'myallphpastarttype' => 0,
    'allphpastartcenter' => 0,
    'myallphpastartcenter' => 0,
    'monitorSheets' => 0,
    'data' => 0,
    'hosturl' => 0,
    'patientid' => 0,
    'phfamilycountx' => 0,
    'phfamily' => 0,
    'myallphfamily' => 0,
    'allphfamilydisease' => 0,
    'myallphfamilydisease' => 0,
    'allphfamilyrelative' => 0,
    'myallphfamilyrelative' => 0,
    'patientwholedata' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_67ac5599733368_28547425',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_67ac5599733368_28547425')) {function content_67ac5599733368_28547425($_smarty_tpl) {?><div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height:5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Patient History
                        </div>
                    </div>
                    <div class="portlet-body clinick " >
                        <div class="tabbable tabbable-custom tabbable-noborder">
                            <ul class="nav nav-tabs" id="rowTab">
                                <?php $_smarty_tpl->tpl_vars['active'] = new Smarty_variable(0, null, 0);?>

                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->menstrual==1){?>
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'active', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['active']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                <li class="aw_3d_list active"> <a href="#tab_0_0" data-toggle="tab"> Menstrual H </a> </li>
                                <?php }?>

                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->contraception==1){?>
                                <li class="aw_3d_list  <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> active <?php }?>"  > <a href="#tab_1_6" data-toggle="tab"> Contraception H </a> </li>
                                <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> 
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'active', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['active']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                <?php }?> 
                                <?php }?>

                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->obstetric==1){?>
                                <li class="aw_3d_list  <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> active <?php }?>"> <a href="#tab_2_6" data-toggle="tab"> Obstetric H</a> </li>
                                <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> 
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'active', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['active']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                <?php }?> 
                                <?php }?>

                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->past==1){?>
                                <li class="aw_3d_list  <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> active <?php }?> "> <a href="#tab_55_6" data-toggle="tab"> Past H </a> </li>
                                <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> 
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'active', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['active']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                <?php }?> 
                                <?php }?>

                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->family==1){?>
                                <li class="aw_3d_list  <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> active <?php }?> "> <a href="#tab_4_6" data-toggle="tab"> Family H</a> </li>
                                <?php if ($_smarty_tpl->tpl_vars['active']->value<1){?> 
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'active', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['active']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                <?php }?> 
                                <?php }?>

                            </ul>
                            <div class="tab-content">

                                <input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
"/>
                                <input type="hidden" id="controllName" value="patienthistory"/>
                                <input type="hidden" id="phscrt" value="1"/>

                                <?php $_smarty_tpl->tpl_vars['tabactive'] = new Smarty_variable(0, null, 0);?>
                                <!---======================================================== tab1============================================================================================ ----->
                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->menstrual==1){?>
                                <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> active <?php }?> " id="tab_0_0">

                                    <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> 
                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'tabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['tabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                    <?php }?> 

                                    <!-- BEGIN PAGE CONTENT-->
                                    <div class="row all nolabel">

                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Menstrual H </span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="btn_menstrual"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>
                                        <input type="hidden" id="menstrual_itr"  value="<?php echo $_smarty_tpl->tpl_vars['allphmenstrualcount']->value;?>
"  />
                                        <div class="clearfix"></div>
                                        <div class="col-md-1 labelaz">
                                            Menarche
                                        </div>
                                        <div class="col-md-1 labelaz">
                                            Duration
                                        </div>
                                        <div class="col-md-1 labelaz">
                                            Length
                                        </div>
                                        <div class="col-md-2 labelaz">
                                            Regularity
                                        </div>
                                        <div class="col-md-3 labelaz">
                                            Amount
                                        </div>
                                        <div class="col-md-3 wds23 labelaz">
                                            Dysmenorrhoea
                                        </div>
                                        <div class="col-md-1 wds10  labelaz">
                                            LMP
                                        </div>
                                        <div id="menstrual_div"></div>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['myallphmenstrual'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphmenstrual']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphmenstrual']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphmenstrual']->key => $_smarty_tpl->tpl_vars['myallphmenstrual']->value){
$_smarty_tpl->tpl_vars['myallphmenstrual']->_loop = true;
?>
                                        <div>
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row ltr" >
                                                <div class="">
                                                    <div class="">
                                                        <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->username;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>
                                            <div class="row ltr" >


                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" placeholder="Menarche" class="form-control updateElement"  name="menarche" data-colName="menarche"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual" value="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->menarche;?>
"/>
                                                        <!--<label for="menarche1">Menarche</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" placeholder="Duration" class="form-control updateElement"  name="duration" data-colName="duration" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual" value="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->duration;?>
" />
                                                        <!--<label for="duration1">Duration</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" placeholder="Length" class="form-control updateElement"  name="length" data-colName="length"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual" value="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->length;?>
" />
                                                        <!--<label for="length1">Length</label>-->
                                                    </div>
                                                </div>

                                                <div class="col-md-2">
                                                    <div class="form-group">
                                                        <!--<label class="control-label col-md-2 ls2">Regularity</label>-->
                                                        <div class="phregularity_div">
                                                            <select class="form-control  updateElement phregularity allupdateselect" id="phregularity<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phregularity;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="phregularity" select-tableName="phregularity" data-colName="phregularity"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual"  >
                                                                <option value="">choose</option>
                                                                <?php  $_smarty_tpl->tpl_vars['myallphregualrity'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphregualrity']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphregualrity']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphregualrity']->key => $_smarty_tpl->tpl_vars['myallphregualrity']->value){
$_smarty_tpl->tpl_vars['myallphregualrity']->_loop = true;
?>
                                                                <option value="<?php echo $_smarty_tpl->tpl_vars['myallphregualrity']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphregualrity']->value->id;?>
<?php $_tmp1=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phregularity;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp1==$_tmp2){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphregualrity']->value->name;?>
 </option>
                                                                <?php } ?>

                                                                <option value="-2" class="deleteoptincompo">Delete</option>

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



                                                <div class="col-md-3">
                                                    <div class="form-group">
                                                        <!--<label class="control-label col-md-2 ls2">Amount</label>-->

                                                        <select class="form-control  updateElement phamount allupdateselect" id="phamount<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phamount;?>
"  name="phamount" data-colName="phamount" select-tableName="phamount"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphamount'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphamount']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphamount']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphamount']->key => $_smarty_tpl->tpl_vars['myallphamount']->value){
$_smarty_tpl->tpl_vars['myallphamount']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphamount']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphamount']->value->id;?>
<?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phamount;?>
<?php $_tmp4=ob_get_clean();?><?php if ($_tmp3==$_tmp4){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphamount']->value->name;?>
 </option>
                                                            <?php } ?>

                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>

                                                    </div>
                                                </div>

                                                <div class="col-md-3 wds23">
                                                    <div class="form-group">
                                                        <!--<label class="control-label col-md-2 ls2">Dysmenorrhoea</label>-->
                                                        <select class="form-control  updateElement phdysmenorrhoea allupdateselect" id="phdysmenorrhoea<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phdysmenorrhoea;?>
" name="phdysmenorrhoea" select-tableName="phdysmenorrhoea" data-colName="phdysmenorrhoea"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphdysmenorrhoea'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphdysmenorrhoea']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->key => $_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->value){
$_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->value->id;?>
<?php $_tmp5=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phdysmenorrhoea;?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp5==$_tmp6){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphdysmenorrhoea']->value->name;?>
 </option>
                                                            <?php } ?>

                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>

                                                    </div>
                                                </div>




                                                <div class="col-md-1 wds10">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" placeholder="LMP" class="form-control updateElement datepicker" name="phlMP" data-colName="phlMP"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual" value="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->phlMP;?>
"/>
                                                        <!--<label for="lMP1">LMP</label>-->

                                                        <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphmenstrual']->value->id;?>
" data-tableName="phmenstrual"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>


                                            </div>
                                        </div>
                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                        <?php } ?>
                                    </div>

                                    <div class="clearfix"></div>
                                    <!-- END SAMPLE FORM PORTLET-->
                                </div>
                                <?php }?>
                                <!---- =================================================================tab 2 =======================================================================================------>
                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->contraception==1){?>
                                <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> active <?php }?> " id="tab_1_6">

                                    <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> 
                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'tabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['tabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                    <?php }?> 

                                    <!-- BEGIN PAGE CONTENT-->
                                    <div class="row all nolabel" id="">

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

                                        <div class="clearfix"></div>
                                        <div class="col-md-2 labelaz">
                                            Type
                                        </div>
                                        <div class="col-md-2 labelaz">
                                            Duration
                                        </div>
                                        <div class="col-md-2 labelaz">
                                            Stopped
                                        </div>
                                        <div class="col-md-6 labelaz">
                                            Note
                                        </div>
                                        <input type="hidden" id="contract_itr" value="<?php echo $_smarty_tpl->tpl_vars['allcontractcount']->value;?>
" />
                                        <div id="contraception_div"></div>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['myallcontract'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallcontract']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allcontract']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallcontract']->key => $_smarty_tpl->tpl_vars['myallcontract']->value){
$_smarty_tpl->tpl_vars['myallcontract']->_loop = true;
?>
                                        <div>
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row ltr" >
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->username;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>
                                            <div class="row ltr" >
                                                <div class="col-md-2">
                                                    <div class="form-group">
                                                        <!--<label class="control-label col-md-2 ls2">Type</label>-->
                                                        <select  class="form-control contype updateElement allupdateselect" id="contype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->contype;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="contype" data-colName="contype" select-tableName="phcontracttype"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->id;?>
"  data-tableName="phcontraception" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphcontracttype'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphcontracttype']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphcontracttype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphcontracttype']->key => $_smarty_tpl->tpl_vars['myallphcontracttype']->value){
$_smarty_tpl->tpl_vars['myallphcontracttype']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->contype;?>
<?php $_tmp7=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->id;?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp7==$_tmp8){?> selected <?php }?> ><?php echo $_smarty_tpl->tpl_vars['myallphcontracttype']->value->name;?>
 </option>
                                                            <?php } ?>

                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                    </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" placeholder="Duration" name="contduration" data-colName="contduration"  value="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->contduration;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->id;?>
" data-tableName="phcontraception" />
                                                        <!--                                                        <label for="form_control_1">Duration</label>-->
                                                        <span class="input-group-addon">Y</span>
                                                    </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" placeholder="Stopped" name="contstopped" data-colName="contstopped"  value="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->contstopped;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->id;?>
" data-tableName="phcontraception" />
                                                        <!--                                                        <label for="contstopped">Stopped</label>-->
                                                        <span class="input-group-addon">Y</span>


                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="contranote" data-colName="contranote"  value="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->contranote;?>
"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->id;?>
" data-tableName="phcontraception"/>
                                                        </div>


                                                        <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallcontract']->value->id;?>
" data-tableName="phcontraception"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>


                                                <!-- END SAMPLE FORM PORTLET-->

                                            </div>
                                        </div>
                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                        <?php } ?>
                                    </div>
                                    <!-- END PAGE CONTENT-->

                                </div>
                                <?php }?>
                                <!---- =================================================================tab 3 =======================================================================================------>
                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->obstetric==1){?>
                                <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> active <?php }?> " id="tab_2_6">

                                    <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> 
                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'tabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['tabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                    <?php }?> 


                                    <div class="row all nolabel">

                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase">  Obstetric H </span>
                                            </div>
                                            <div class="actions col-md-6">

                                                <button type="button" class="btn btn-xs blue fright" id="obstertic_btn" ><i class="fa fa-plus"></i> Add</button>
                                                <a href="#directvaluemodal" class="btn btn-xs blue fright" style=" margin: 0px 5px; " data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-toggle="modal" >Direct Values</a>


                                            </div>

                                        </div>

                                        <div class="clearfix"></div>
                                        <div class="col-md-1 labelaz" style="width: 62px;">
                                            Duration
                                        </div>
                                        <div class="col-md-2 labelaz" style="width: 100px;">
                                            Termination
                                        </div>
                                        <div class="col-md-1 labelaz" style="width: 140px;">
                                            Place
                                        </div>
                                        <div class="col-md-1 wds10 labelaz">
                                            Date
                                        </div>
                                        <div class="col-md-2 labelaz">
                                            Out Come
                                        </div>
                                        <div class="col-md-1 labelaz txtl">
                                            GM
                                        </div>
                                        <div class="col-md-1 labelaz txtl">
                                            Name
                                        </div>
                                        <div class="col-md-3 labelaz">
                                            Note
                                        </div>
                                        <input type="hidden" id="obsteric_itr" value="<?php echo $_smarty_tpl->tpl_vars['allobstericcount']->value;?>
" />
                                        <div id="obstertic_div"></div>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['myallobsteric'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallobsteric']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allobsteric']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallobsteric']->key => $_smarty_tpl->tpl_vars['myallobsteric']->value){
$_smarty_tpl->tpl_vars['myallobsteric']->_loop = true;
?>
                                        <div>
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row ltr" >
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->username;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>
                                            <div class="row ltr" >
                                                <div class="col-md-1" style="width: 62px;">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <input type="text" class="form-control  updateElement"  name="obstrduration" data-colName="obstrduration"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstrduration;?>
" data-tableName="phobstetric" />
                                                        <!--                                                        <label for="contduration">Duration</label>-->
                                                        <span class="input-group-addon">W</span>
                                                    </div>
                                                </div>




                                                <div class="col-md-2" style="width: 100px;">
                                                    <div class="form-group">
                                                        <!--<label class="control-label col-md-2 ls2">Termination</label>-->
                                                        <select  class="form-control obstermination updateElement allupdateselect "  id="obstermination<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" name="obstermination" data-colName="obstermination"  select-tableName="phobstericterminate"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  data-tableName="phobstetric" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphobstericterminate'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphobstericterminate']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphobstericterminate']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphobstericterminate']->key => $_smarty_tpl->tpl_vars['myallphobstericterminate']->value){
$_smarty_tpl->tpl_vars['myallphobstericterminate']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphobstericterminate']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp9=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphobstericterminate']->value->id;?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp9==$_tmp10){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphobstericterminate']->value->name;?>
 </option>
                                                            <?php } ?>

                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                    </div>
                                                </div>




                                                <div class="col-md-1" style="width: 140px;">
                                                    <div class="form-group">
                                                        <!--                                                        <label class="control-label col-md-2 ls2">Place</label>-->
                                                        <select  class="form-control obsplace updateElement allupdateselect" id="obsplace<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obsplace;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  name="obsplace" data-colName="obsplace" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
" select-tableName="phobstericterplace"  data-tableName="phobstetric" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphobstericterplace'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphobstericterplace']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphobstericterplace']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphobstericterplace']->key => $_smarty_tpl->tpl_vars['myallphobstericterplace']->value){
$_smarty_tpl->tpl_vars['myallphobstericterplace']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphobstericterplace']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obsplace;?>
<?php $_tmp11=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphobstericterplace']->value->id;?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp11==$_tmp12){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphobstericterplace']->value->name;?>
 </option>
                                                            <?php } ?>

                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                    </div>
                                                </div>



                                                <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 updateElement datepicker"  name="obsdate" data-colName="obsdate" placeholder="Date" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obsdate;?>
" data-tableName="phobstetric"/>
                                                        <!--                                                        <label for="obsdate">Date</label>-->
                                                    </div>
                                                </div>











                                                <div class="col-md-4" id="allbabydivs<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp13=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp14=ob_get_clean();?><?php if ($_tmp13==1||$_tmp14==2){?> style="display:block" <?php }else{ ?> style="display:none" <?php }?>>
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">


                                                        <div class="row" id="baby_div<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
">

                                                            <div class="col-md-3">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">Type</label>-->
                                                                    <select  class="form-control  updateElement outcomeid" id="outcomeid<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"   name="outcomeid" data-colName="outcomeid" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid;?>
<?php $_tmp15=ob_get_clean();?><?php if ($_tmp15==0){?>selected <?php }?>>Male</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid;?>
<?php $_tmp16=ob_get_clean();?><?php if ($_tmp16==1){?>selected <?php }?>>Female</option>
                                                                        <option value="2" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid;?>
<?php $_tmp17=ob_get_clean();?><?php if ($_tmp17==2){?>selected <?php }?>>Twins</option>
                                                                        <option value="3" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid;?>
<?php $_tmp18=ob_get_clean();?><?php if ($_tmp18==3){?>selected <?php }?>>Triplets</option>
                                                                    </select>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">OutCome</label>-->
                                                                    <select  class="form-control  updateElement "    name="babytype" data-colName="babytype"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"   data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babytype;?>
<?php $_tmp19=ob_get_clean();?><?php if ($_tmp19==0){?>selected <?php }?>>Living</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babytype;?>
<?php $_tmp20=ob_get_clean();?><?php if ($_tmp20==1){?>selected <?php }?>>Dead</option>
                                                                    </select>
                                                                </div>
                                                            </div>



                                                            <div class="col-md-2" id="genderdiv<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid==0||$_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid==1){?>style="display:none;"<?php }?>>
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">Gender</label>-->
                                                                    <select  class="form-control  updateElement " id="babygendernew"    name="babygendernew" data-colName="babygendernew" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babygendernew;?>
<?php $_tmp21=ob_get_clean();?><?php if ($_tmp21==0){?>selected <?php }?>>M</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babygendernew;?>
<?php $_tmp22=ob_get_clean();?><?php if ($_tmp22==1){?>selected <?php }?>>F</option>
                                                                    </select>
                                                                </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 txtl updateElement" name="babyweight" data-colName="babyweight" placeholder="Weight" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babyweight;?>
" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">gm</label>-->
                                                                    <!--span class="input-group-addon">GM</span-->
                                                                </div>
                                                            </div>

                                                            <div class="col-md-2 babydivcol" id="babyidcolnew<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <input type="text" class="form-control updateElement" name="babyname" data-colName="babyname" placeholder="Name" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babyname;?>
" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">Baby Name</label>-->
                                                                </div>
                                                            </div>


                                                        </div>





                                                    </div>
                                                </div>













                                                <div class="col-md-4" id="nooutdata<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp23=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp24=ob_get_clean();?><?php if ($_tmp23==1||$_tmp24==2){?> style="display:none" <?php }else{ ?> style="display:block" <?php }?>> <center>no out come </center></div>















                                                <div class="col-md-3 wds23">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="amrpop form-control updateElement" name="obsnote" data-colName="obsnote" placeholder="Note" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obsnote;?>
" data-tableName="phobstetric"/>
                                                        </div>
                                                        <button type="button" class="btn delbtnsml btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
" data-tableName="phobstetric"><i class="fa fa-close"></i></button>
                                                    </div>

                                                </div>


                                                <div class="row" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp25=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->obstermination;?>
<?php $_tmp26=ob_get_clean();?><?php if ($_tmp25==1||$_tmp26==2){?> style="display:block" <?php }else{ ?> style="display:none" <?php }?> >
                                                    <!-- END SAMPLE FORM PORTLET-->

                                                    <div class="row" id="baby_div1<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid;?>
<?php $_tmp27=ob_get_clean();?><?php if ($_tmp27>1){?> style="display:block" <?php }else{ ?> style="display:none" <?php }?>>


                                                        <div class="col-md-5" style="margin-right: 30px;">
                                                            <div class="form-group">

                                                            </div>
                                                        </div>



                                                        <div class="col-md-4">

                                                            <div class="col-md-3">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">OutCome</label>-->
                                                                    <select  class="form-control  updateElement "   name="babytype1" data-colName="babytype1" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babytype1;?>
<?php $_tmp28=ob_get_clean();?><?php if ($_tmp28==0){?>selected <?php }?>>Living</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babytype1;?>
<?php $_tmp29=ob_get_clean();?><?php if ($_tmp29==1){?>selected <?php }?>>Dead</option>
                                                                    </select>
                                                                </div>
                                                            </div>



                                                            <div class="col-md-2">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">Gender</label>-->
                                                                    <select  class="form-control  updateElement "    name="babygendernew1" data-colName="babygendernew1" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"   data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babygendernew1;?>
<?php $_tmp30=ob_get_clean();?><?php if ($_tmp30==0){?>selected <?php }?>>M</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babygendernew1;?>
<?php $_tmp31=ob_get_clean();?><?php if ($_tmp31==1){?>selected <?php }?>>F</option>
                                                                    </select>
                                                                </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" name="babyweight1" data-colName="babyweight1" placeholder="Weight" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babyweight1;?>
" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">gm</label>-->
                                                                    <!--span class="input-group-addon">GM</span-->
                                                                </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" name="babyname1" data-colName="babyname1" placeholder="Name" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babyname1;?>
" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">Baby Name</label>-->
                                                                </div>
                                                            </div>


                                                        </div>
                                                    </div>



                                                    <div class="row" id="baby_div2<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->outcomeid;?>
<?php $_tmp32=ob_get_clean();?><?php if ($_tmp32==3){?> style="display:block" <?php }else{ ?> style="display:none" <?php }?>>

                                                        <div class="col-md-5" style="margin-right: 30px;">
                                                            <div class="form-group">

                                                            </div>
                                                        </div>
                                                        <div class="col-md-4">

                                                            <div class="col-md-3">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">OutCome</label>-->
                                                                    <select  class="form-control  updateElement "   name="babytype2" data-colName="babytype2" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"   data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babytype2;?>
<?php $_tmp33=ob_get_clean();?><?php if ($_tmp33==0){?>selected <?php }?>>Living</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babytype2;?>
<?php $_tmp34=ob_get_clean();?><?php if ($_tmp34==1){?>selected <?php }?>>Dead</option>
                                                                    </select>
                                                                </div>
                                                            </div>



                                                            <div class="col-md-2">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">Gender</label>-->
                                                                    <select  class="form-control  updateElement "   name="babygendernew2" data-colName="babygendernew2" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"   data-tableName="phobstetric" >
                                                                        <option value="0" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babygendernew2;?>
<?php $_tmp35=ob_get_clean();?><?php if ($_tmp35==0){?>selected <?php }?>>M</option>
                                                                        <option value="1" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babygendernew2;?>
<?php $_tmp36=ob_get_clean();?><?php if ($_tmp36==1){?>selected <?php }?>>F</option>
                                                                    </select>
                                                                </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" name="babyweight2" data-colName="babyweight2" placeholder="Weight" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babyweight2;?>
" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">gm</label>-->
                                                                    <!--span class="input-group-addon">GM</span-->
                                                                </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" name="babyname2" data-colName="babyname2" placeholder="Name" data-id="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->id;?>
"  value="<?php echo $_smarty_tpl->tpl_vars['myallobsteric']->value->babyname2;?>
" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">Baby Name</label>-->
                                                                </div>
                                                            </div>

                                                        </div>

                                                    </div>
                                                </div>






                                            </div>





                                        </div>

                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                        <?php } ?>
                                    </div>

                                </div>
                                <?php }?>
                                <!---- =================================================================tab 4 =======================================================================================------>
                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->past==1){?>
                                <!-- BEGIN CONTENT -->
                                <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> active <?php }?> " id="tab_55_6">

                                    <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> 
                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'tabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['tabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                    <?php }?> 


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

                                            <?php $_smarty_tpl->tpl_vars['xactive'] = new Smarty_variable(0, null, 0);?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->medical==1){?>
                                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                            <li class="aw_3d_list active" > <a href="#tab_00_00" data-toggle="tab"> Medical </a> </li>
                                            <?php }?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->surgical==1){?>
                                            <li class="aw_3d_list <?php if ($_smarty_tpl->tpl_vars['xactive']->value<1){?> active <?php }?>  ">  <a href="#tab_10_6" data-toggle="tab"> Surgical </a> </li>
                                            <?php if ($_smarty_tpl->tpl_vars['xactive']->value<1){?> 
                                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                            <?php }?> 
                                            <?php }?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->gynecological==1){?>
                                            <li class="aw_3d_list <?php if ($_smarty_tpl->tpl_vars['xactive']->value<1){?> active <?php }?>  ">  <a href="#tab_20_6" data-toggle="tab"> Gynecological </a> </li>
                                            <?php if ($_smarty_tpl->tpl_vars['xactive']->value<1){?> 
                                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                            <?php }?> 
                                            <?php }?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->art==1){?>
                                            <li class="aw_3d_list <?php if ($_smarty_tpl->tpl_vars['xactive']->value<1){?> active <?php }?>  ">  <a href="#tab_30_6" data-toggle="tab"> ART </a> </li>
                                            <?php if ($_smarty_tpl->tpl_vars['xactive']->value<1){?> 
                                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                            <?php }?> 
                                            <?php }?>

                                        </ul>
                                        <div class="tab-content">

                                            <?php $_smarty_tpl->tpl_vars['xtabactive'] = new Smarty_variable(0, null, 0);?>

                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->medical==1){?>
                                            <!--tab_1_1-->
                                            <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> active <?php }?>" id="tab_00_00">

                                                <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> 
                                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xtabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xtabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                <?php }?> 


                                                <div class="row all nolabel" id="">

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

                                                    <div class="clearfix"></div>
                                                    <div class="col-md-3 labelaz">
                                                        Disease
                                                    </div>
                                                    <div class="col-md-9 labelaz">
                                                        Note
                                                    </div>
                                                    <input type="hidden" id="pastmedical_itr" value="<?php echo $_smarty_tpl->tpl_vars['phpastmedicalcount']->value;?>
" />
                                                    <div id="pastmedical_div"></div>
                                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                                    <?php  $_smarty_tpl->tpl_vars['myallphpastmedical'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastmedical']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['mypastmedical']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastmedical']->key => $_smarty_tpl->tpl_vars['myallphpastmedical']->value){
$_smarty_tpl->tpl_vars['myallphpastmedical']->_loop = true;
?>
                                                    <div>
                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                                        <div class="row ltr" >
                                                            <div class="col-md-1">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->username;?>
</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php }?>
                                                        <div class="row ltr" >
                                                            <div class="col-md-3">
                                                                <div class="form-group">
                                                                    <!--                                                                    <label class="control-label col-md-2 ls2">Disease</label>-->
                                                                    <select  class="form-control medicaldisease updateElement allupdateselect" id="medicaldisease<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->medicaldisease;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  name="medicaldisease" data-colName="medicaldisease" select-tableName="phpastmedicaldisease" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->id;?>
" data-tableName="phpastmedical" >
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['myallphpastmedicaldisease'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastmedicaldisease']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->key => $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value){
$_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->medicaldisease;?>
<?php $_tmp37=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->id;?>
<?php $_tmp38=ob_get_clean();?><?php if ($_tmp37==$_tmp38){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphpastmedicaldisease']->value->name;?>
 </option>
                                                                        <?php } ?>
                                                                        <option value="-2" class="deleteoptincompo">Delete</option>
                                                                    </select>
                                                                </div>
                                                            </div>



                                                            <div class="col-md-9">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                        <input type="text" class="amrpop form-control updateElement"  name="medicalnote" data-colName="medicalnote" placeholder="Note" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->medicalnote;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->id;?>
" data-tableName="phpastmedical"/>
                                                                    </div>
                                                                    <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastmedical']->value->id;?>
" data-tableName="phpastmedical"><i class="fa fa-close"></i></button>
                                                                </div>
                                                            </div>


                                                        </div>
                                                    </div>
                                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                    <?php } ?>
                                                </div>

                                            </div>
                                            <?php }?>
                                            <!--===========================tab_1_6=========================================================================-->
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->surgical==1){?>

                                            <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> active <?php }?>" id="tab_10_6">

                                                <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> 
                                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xtabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xtabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                <?php }?> 


                                                <div class="row all nolabel" id="">

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

                                                    <input type="hidden" id="pastsurgical_itr" value="<?php echo $_smarty_tpl->tpl_vars['pastsurgicalcount']->value;?>
"/>
                                                    <div class="clearfix"></div>
                                                    <div class="col-md-4 labelaz">
                                                        Operation
                                                    </div>
                                                    <div class="col-md-2 labelaz">
                                                        Year
                                                    </div>
                                                    <div class="col-md-2 labelaz">
                                                        Surgeon
                                                    </div>
                                                    <div class="col-md-4 labelaz">
                                                        Note
                                                    </div>
                                                    <div id="pastsurgical_div"></div>
                                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                                    <?php  $_smarty_tpl->tpl_vars['myallpastsurgical'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallpastsurgical']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pastsurgical']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallpastsurgical']->key => $_smarty_tpl->tpl_vars['myallpastsurgical']->value){
$_smarty_tpl->tpl_vars['myallpastsurgical']->_loop = true;
?>
                                                    <div>
                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                                        <div class="row ltr" >
                                                            <div class="col-md-1">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->username;?>
</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php }?>
                                                        <div class="row ltr" >
                                                            <div class="col-md-4">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">Operation</label>-->
                                                                    <select  class="form-control surgicaloperation updateElement allupdateselect" id="surgicaloperation<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->surgicaloperation;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  name="surgicaloperation" select-tableName="phpastsurgicaloperation" data-colName="surgicaloperation" data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->id;?>
" data-tableName="phpastsurgical" >
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastsurgicaloperation']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->key => $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->value){
$_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->surgicaloperation;?>
<?php $_tmp39=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->value->id;?>
<?php $_tmp40=ob_get_clean();?><?php if ($_tmp39==$_tmp40){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphpastsurgicaloperation']->value->name;?>
 </option>
                                                                        <?php } ?>
                                                                        <option value="-2" class="deleteoptincompo">Delete</option>
                                                                    </select>
                                                                </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" placeholder="Year" name="phsurgicalyear" data-colName="phsurgicalyear"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->id;?>
" data-tableName="phpastsurgical" value="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->phsurgicalyear;?>
" />
                                                                    <!--<label for="Year">Year</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" placeholder="Surgeon" name="phsurgicalsurgeon" data-colName="phsurgicalsurgeon"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->id;?>
" data-tableName="phpastsurgical" value="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->phsurgicalsurgeon;?>
" />
                                                                    <!--<label for="surgeon">Surgeon</label>-->
                                                                </div>
                                                            </div>

                                                            <div class="col-md-4">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                        <input type="text" class="amrpop form-control updateElement" name="surgicalnote" data-colName="surgicalnote" placeholder="Note" data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->id;?>
" data-tableName="phpastsurgical" value="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->surgicalnote;?>
"/>
                                                                    </div>
                                                                    <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastsurgical']->value->id;?>
" data-tableName="phpastsurgical"><i class="fa fa-close"></i></button>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                    <?php } ?>

                                                </div>
                                                <!-- END SAMPLE FORM PORTLET-->

                                                <!-- END PAGE CONTENT-->
                                            </div>
                                            <?php }?>
                                            <!--==============================================================tab_2_6===================================================-->
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->gynecological==1){?>

                                            <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> active <?php }?>" id="tab_20_6">

                                                <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> 
                                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xtabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xtabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                <?php }?> 


                                                <div class="row all nolabel" id="">
                                                    <div class="portlet-title tbox">
                                                        <div class="caption font-green-haze col-md-6">
                                                            <span class="caption-subject bold uppercase"> Gynecological </span>
                                                        </div>
                                                        <div class="actions col-md-6">
                                                            <button type="button" class="btn btn-xs blue fright" id="gynecological_btn"><i class="fa fa-plus"></i> Add</button>
                                                        </div>
                                                    </div>

                                                    <input type="hidden" id="gynecological_itr" value="<?php echo $_smarty_tpl->tpl_vars['phpastgynecologicalcount']->value;?>
"/>
                                                    <div class="clearfix"></div>
                                                    <div class="col-md-4 labelaz">
                                                        Operation
                                                    </div>
                                                    <div class="col-md-2 labelaz">
                                                        Year
                                                    </div>
                                                    <div class="col-md-2 labelaz">
                                                        Surgeon
                                                    </div>
                                                    <div class="col-md-4 labelaz">
                                                        Note
                                                    </div>
                                                    <div id="gynecological_div"></div>
                                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                                    <?php  $_smarty_tpl->tpl_vars['myallpastgynecological'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallpastgynecological']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phpastgynecological']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallpastgynecological']->key => $_smarty_tpl->tpl_vars['myallpastgynecological']->value){
$_smarty_tpl->tpl_vars['myallpastgynecological']->_loop = true;
?>
                                                    <div>
                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                                        <div class="row ltr" >
                                                            <div class="col-md-1">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->username;?>
</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <?php }?>
                                                        <div class="row ltr" >
                                                            <div class="col-md-4">
                                                                <div class="form-group">
                                                                    <!--<label class="control-label col-md-2 ls2">Operation</label>-->
                                                                    <select  class="form-control gynecologicaloperation  updateElement allupdateselect" id="gynecologicaloperation<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->gynecologicaloperation;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  name="gynecologicaloperation" data-colName="gynecologicaloperation" select-tableName="phpastgynecologicaloperation" data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->id;?>
" data-tableName="phpastgynecological" >
                                                                        <option value="">choose</option>
                                                                        <?php  $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastgynecologicaloperation']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->key => $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->value){
$_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->_loop = true;
?>
                                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->gynecologicaloperation;?>
<?php $_tmp41=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->value->id;?>
<?php $_tmp42=ob_get_clean();?><?php if ($_tmp41==$_tmp42){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphpastgynecologicaloperation']->value->name;?>
 </option>
                                                                        <?php } ?>
                                                                        <option value="-2" class="deleteoptincompo">Delete</option>
                                                                    </select>
                                                                </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" placeholder="Year" name="gynecologicalyear" data-colName="gynecologicalyear"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->id;?>
" data-tableName="phpastgynecological" value="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->gynecologicalyear;?>
" />
                                                                    <!--<label for="Year">Year</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"  name="gynecologicalsurgeon" data-colName="gynecologicalsurgeon" placeholder="Surgeon"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->id;?>
" data-tableName="phpastgynecological" value="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->gynecologicalsurgeon;?>
" />
                                                                    <!--<label for="surgeon">Surgeon</label>-->
                                                                </div>
                                                            </div>

                                                            <div class="col-md-4">
                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                        <input type="text" class="amrpop form-control updateElement" name="gynecologicalnote" data-colName="gynecologicalnote" placeholder="Note" data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->id;?>
" data-tableName="phpastgynecological" value="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->gynecologicalnote;?>
"/>
                                                                    </div>
                                                                    <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallpastgynecological']->value->id;?>
" data-tableName="phpastgynecological"><i class="fa fa-close"></i></button>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                    <?php } ?>
                                                </div>

                                            </div>
                                            <?php }?>
                                            <!--=============================================================================tab_3_6==================================================================================-->
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->art==1){?>

                                            <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> active <?php }?>" id="tab_30_6">

                                                <?php if ($_smarty_tpl->tpl_vars['xtabactive']->value<1){?> 
                                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'xtabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['xtabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                <?php }?> 

                                                <div class="tabbable tabbable-custom tabbable-noborder ">

                                                    <ul class="nav nav-tabs" id="rowTab3">

                                                        <?php $_smarty_tpl->tpl_vars['artactive'] = new Smarty_variable(0, null, 0);?>

                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->art_external==1){?>
                                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'artactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['artactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                        <li class="aw_3d_list active" > <a href="#tab_art_1" data-toggle="tab"> Art External </a> </li>
                                                        <?php }?>

                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->art_internal==1){?>
                                                        <li class="aw_3d_list <?php if ($_smarty_tpl->tpl_vars['artactive']->value<1){?> active <?php }?>  ">  <a href="#tab_art_2" data-toggle="tab"> Art Internal </a> </li>
                                                        <?php if ($_smarty_tpl->tpl_vars['artactive']->value<1){?> 
                                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'artactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['artactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                        <?php }?> 
                                                        <?php }?>
                                                    </ul>


                                                    <div class="tab-content">
                                                        <?php $_smarty_tpl->tpl_vars['arttabactive'] = new Smarty_variable(0, null, 0);?>

                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->art_external==1){?>
                                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'arttabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['arttabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                        <div class="tab-pane active " id="tab_art_1">
                                                            <div class="row all nolabel" >
                                                                <div class="portlet-title tbox">
                                                                    <div class="caption font-green-haze col-md-6">
                                                                        <span class="caption-subject bold uppercase">External  ART </span>
                                                                    </div>
                                                                    <div class="actions col-md-6">
                                                                        <button type="button" class="btn btn-xs blue fright" id="pastart_btn"><i class="fa fa-plus"></i> Add</button>
                                                                    </div>
                                                                </div>

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

                                                                <div class="clearfix"></div>
                                                                <div class="col-md-2 labelaz">
                                                                    Type
                                                                </div>
                                                                <div class="col-md-2 labelaz">
                                                                    Center
                                                                </div>
                                                                <div class="col-md-2 labelaz">
                                                                    Year
                                                                </div>
                                                                <div class="col-md-6 labelaz">
                                                                    Note
                                                                </div>
                                                                <div id="pastart_div"></div>
                                                                <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                                                <?php  $_smarty_tpl->tpl_vars['myallphpastart'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastart']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phpastart']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastart']->key => $_smarty_tpl->tpl_vars['myallphpastart']->value){
$_smarty_tpl->tpl_vars['myallphpastart']->_loop = true;
?>
                                                                <div style=" margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #aaa; ">
                                                                    <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                                                    <div class="row ltr" >
                                                                        <div class="col-md-1">
                                                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                                <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->username;?>
</label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <?php }?>

                                                                    <div class="row ltr" >

                                                                        <div class="col-md-2">
                                                                            <div class="form-group">
                                                                                <!--                                                                    <label class="control-label col-md-2 ls2">Type</label>-->
                                                                                <select  class="form-control arttype arttypeExtra updateElement allupdateselect" id="arttype<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->arttype;?>
"  name="arttype" data-colName="arttype" select-tableName="phpastarttype" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" >
                                                                                    <option value="">choose</option>
                                                                                    <?php  $_smarty_tpl->tpl_vars['myallphpastarttype'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastarttype']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastarttype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastarttype']->key => $_smarty_tpl->tpl_vars['myallphpastarttype']->value){
$_smarty_tpl->tpl_vars['myallphpastarttype']->_loop = true;
?>
                                                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastarttype']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->arttype;?>
<?php $_tmp43=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastarttype']->value->id;?>
<?php $_tmp44=ob_get_clean();?><?php if ($_tmp43==$_tmp44){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphpastarttype']->value->name;?>
 </option>
                                                                                    <?php } ?>
                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>
                                                                            </div>
                                                                        </div>


                                                                        <div class="col-md-2">
                                                                            <div class="form-group">
                                                                                <!--                                                                    <label class="control-label col-md-2 ls2">Center</label>-->
                                                                                <select  class="form-control artcenter updateElement allupdateselect" id="artcenter<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->artcenter;?>
" name="artcenter" data-colName="artcenter" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" select-tableName="phpastartcenter" data-tableName="phpastart" >
                                                                                    <option value="">choose</option>
                                                                                    <?php  $_smarty_tpl->tpl_vars['myallphpastartcenter'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphpastartcenter']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphpastartcenter']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphpastartcenter']->key => $_smarty_tpl->tpl_vars['myallphpastartcenter']->value){
$_smarty_tpl->tpl_vars['myallphpastartcenter']->_loop = true;
?>
                                                                                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallphpastartcenter']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->artcenter;?>
<?php $_tmp45=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphpastartcenter']->value->id;?>
<?php $_tmp46=ob_get_clean();?><?php if ($_tmp45==$_tmp46){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphpastartcenter']->value->name;?>
 </option>
                                                                                    <?php } ?>
                                                                                    <option value="-2" class="deleteoptincompo">Delete</option>
                                                                                </select>
                                                                            </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" placeholder="Year" name="artyear" data-colName="artyear"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->artyear;?>
" />
                                                                                <!--                                                                    <label for="surgeon">Year</label>-->
                                                                            </div>
                                                                        </div>

                                                                        <div class="col-md-6">
                                                                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                                <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                                                    <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="artnote" data-colName="artnote"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->artnote;?>
"/>
                                                                                </div>
                                                                                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart"><i class="fa fa-close"></i></button>
                                                                            </div>
                                                                        </div>

                                                                    </div>


                                                                    <div id="extraArt<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['myallphpastart']->value->arttype==0){?> <?php }else{ ?> style="display: none;"<?php }?>>
                                                                        <div class="row ltr" >
                                                                            <table class="table table-bordered table-hover nopdngtbl" >
                                                                                <!--                                                                    <thead>
                                                                                                                                                        <tr>
                                                                                                                                                            <td class="col-md-2"></td>
                                                                                                                                                            <th class="col-md-2"></th>
                                                                                                                                                            <th>Oocytes</th>
                                                                                                                                                            <th>Fertilized</th>
                                                                                                                                                            <th>Embryos</th>
                                                                                                                                                        </tr>
                                                                                                                                                    </thead>-->
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <th class="col-md-2"> Ovum Pick Up</th>
                                                                                        <td class="col-md-2"><input type="text" class="form-control updateElement datepicker" placeholder="ovdate" name="ovdate" data-colName="ovdate"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->ovdate;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="oocytes" name="oocytes" data-colName="oocytes"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->oocytes;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="fertilized" name="fertilized" data-colName="fertilized"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->fertilized;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="ovembryos" name="ovembryos" data-colName="ovembryos"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->ovembryos;?>
" /></td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                        <div class="row ltr" >
                                                                            <table class="table table-bordered table-hover nopdngtbl" >
                                                                                <!--                                                                    <thead>
                                                                                                                                                        <tr>
                                                                                                                                                            <td class="col-md-2"></td>
                                                                                                                                                            <th class="col-md-2">Date</th>
                                                                                                                                                            <th>Embryos</th>
                                                                                                                                                            <th>Pregnancy Test</th>
                                                                                                                                                            <th>U/S</th>
                                                                                                                                                        </tr>
                                                                                                                                                    </thead>-->
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <th class="col-md-2"> Embryo transfer</th>
                                                                                        <td class="col-md-2"><input type="text" class="form-control updateElement datepicker" placeholder="emdate" name="emdate" data-colName="emdate"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->emdate;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="emembryos" name="emembryos" data-colName="emembryos"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->emembryos;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="pregrest" name="pregrest" data-colName="pregrest"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->pregrest;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="us" name="us" data-colName="us"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->us;?>
" /></td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                        <div class="row ltr" >
                                                                            <table class="table table-bordered table-hover nopdngtbl" >
                                                                                <!--                                                                    <thead>
                                                                                                                                                        <tr>
                                                                                                                                                            <td class="col-md-2"></td>
                                                                                                                                                            <th class="col-md-2">Date</th>
                                                                                                                                                            <th>Straw 1</th>
                                                                                                                                                            <th>Straw 2</th>
                                                                                                                                                            <th>Straw 3</th>
                                                                                                                                                        </tr>
                                                                                                                                                    </thead>-->
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <th class="col-md-2"> Freezing</th>
                                                                                        <td class="col-md-2"><input type="text" class="form-control updateElement datepicker" placeholder="freezdate" name="freezdate" data-colName="freezdate"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->freezdate;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="straw 1" name="straw1" data-colName="straw1"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->straw1;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="straw 2" name="straw2" data-colName="straw2"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->straw2;?>
" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="straw 3" name="straw3" data-colName="straw3"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpastart" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->straw3;?>
" /></td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </div>

                                                                    <div id="extraArtother<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  <?php if ($_smarty_tpl->tpl_vars['myallphpastart']->value->arttype==3||$_smarty_tpl->tpl_vars['myallphpastart']->value->arttype==2){?> <?php }else{ ?> style="display: none;"<?php }?>>
                                                                        <div class="row ltr" >
                                                                            <table class="table table-bordered table-hover nopdngtbl" >
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td class="col-md-2" style="padding: 0px !important;"><input type="text" class="form-control updatemyElement date-picker" placeholder="OPU" name="opu" data-colName="opu"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
" data-tableName="phpasticsi"  value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiopu;?>
"/></td>
                                                                                        <td class="row" style="padding: 0px !important;">
                                                                                            <input type="text" class="col-md-4 updatemyElement" placeholder="MII" name="gii" data-colName="gii"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi"  value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsigii;?>
"/>
                                                                                            <input type="text" class="col-md-4 updatemyElement" placeholder="MI" name="gi" data-colName="gi"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi"  value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsigi;?>
"/>
                                                                                            <input type="text" class="col-md-4 updatemyElement" placeholder="GV" name="gv" data-colName="gv"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsigv;?>
" />
                                                                                        </td>
                                                                                        <td class="col-md-2" style="padding: 0px !important;"><input type="text" class="form-control updatemyElement date-picker" placeholder="ET" name="et" data-colName="et"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiet;?>
" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="ET" name="etf" data-colName="etf"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsietf;?>
" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="Frozen" name="frozen" data-colName="frozen"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsifrozen;?>
" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="B-HCG" name="bhcg" data-colName="bhcg"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsibhcg;?>
" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="FHR" name="fhr" data-colName="fhr"   data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsifhr;?>
" /></td>
                                                                                        <!--td class="col-md-3"><input type="text" class="form-control updatemyElement" placeholder="Notes" name="notes" data-colName="notes"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsiid;?>
" data-pid="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->id;?>
"  data-tableName="phpasticsi" value="<?php echo $_smarty_tpl->tpl_vars['myallphpastart']->value->icsinotes;?>
" /></td-->
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </div>




                                                                </div>
                                                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                                <?php } ?>
                                                            </div>

                                                        </div>
                                                        <?php }?>

                                                        <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->art_internal==1){?>
                                                        <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['arttabactive']->value<1){?> active <?php }?>" id="tab_art_2">

                                                            <?php if ($_smarty_tpl->tpl_vars['arttabactive']->value<1){?> 
                                                            <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'arttabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['arttabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                            <?php }?> 

                                                            <div class="portlet-title tbox">
                                                                <div class="caption font-green-haze col-md-6">
                                                                    <span class="caption-subject bold uppercase"> Internal Art </span>
                                                                </div>
                                                            </div>

                                                            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['monitorSheets']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                                            <table class="table table-striped table-hover table-bordered">
                                                                <thead>
                                                                    <tr>
                                                                        <th rowspan="2">
                                                                            Type
                                                                        </th>
                                                                        <th rowspan="2">
                                                                            Date
                                                                        </th>
                                                                        <th rowspan="2">
                                                                            Place
                                                                        </th>
                                                                        <th rowspan="2">
                                                                            Protocol
                                                                        </th>
                                                                        <th rowspan="2">
                                                                            No. of Amp
                                                                        </th>
                                                                        <th colspan="4">
                                                                            No. of oocytes
                                                                        </th>
                                                                        <th colspan="2">
                                                                            No. of ET
                                                                        </th>
                                                                        <th colspan="2">
                                                                            Cryo-preserved E.
                                                                        </th>
                                                                        <th rowspan="2">
                                                                            P4
                                                                        </th>
                                                                        <th rowspan="2">
                                                                            Outcome
                                                                        </th>
                                                                    </tr>
                                                                    <tr>
                                                                        <th>
                                                                            Total
                                                                        </th>
                                                                        <th>
                                                                            MI
                                                                        </th>
                                                                        <th>
                                                                            MII
                                                                        </th>
                                                                        <th>
                                                                            GV
                                                                        </th>
                                                                        <th>
                                                                            Total
                                                                        </th>
                                                                        <th>
                                                                            G1
                                                                        </th>
                                                                        <th>
                                                                            Day
                                                                        </th>
                                                                        <th>
                                                                            W0
                                                                        </th>
                                                                    </tr>
                                                                </thead>
                                                                <tbody>

                                                                    <tr>
                                                                        <td>
                                                                            <?php echo $_smarty_tpl->tpl_vars['data']->value->procedure;?>

                                                                        </td>
                                                                        <td style="padding: 3px;">
                                                                            <div align="center">
                                                                                <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/monitoring.php?ac=trialdetail&patientid=<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
">
                                                                                    <?php echo $_smarty_tpl->tpl_vars['data']->value->monitordate;?>

                                                                                </a>
                                                                            </div>

                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="place" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->place;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->place;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <?php echo $_smarty_tpl->tpl_vars['data']->value->protocol;?>

                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="amp" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->amp;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->amp;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="oocytestotal" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytestotal;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytestotal;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="oocytesm1" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytesm1;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytesm1;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="oocytesm2" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytesm2;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytesm2;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="oocytesgv" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytesgv;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->oocytesgv;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="ettotal" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->ettotal;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->ettotal;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="etg1" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->etg1;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->etg1;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="cyroday" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->cyroday;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->cyroday;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="cyrow" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->cyrow;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->cyrow;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="p4" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->p4;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->p4;?>
" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" data-colName="outcome" data-tableName="mointoringsheet" value="<?php echo $_smarty_tpl->tpl_vars['data']->value->outcome;?>
" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->outcome;?>
" />
                                                                        </td>
                                                                    </tr>

                                                                    <tr>
                                                                        <th>Notes</th>
                                                                        <td colspan="14">
                                                                            <textarea class="form-control txtc updateElement" rows="1" data-id="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" 
                                                                                      data-colName="notes" data-tableName="mointoringsheet" placeholder="Enter more text"
                                                                                      data-toggle="popover" data-trigger="hover" data-placement="bottom" 
                                                                                      data-content="<?php echo $_smarty_tpl->tpl_vars['data']->value->notes;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->notes;?>

                                                                            </textarea>
                                                                        </td>
                                                                    </tr>



                                                                </tbody>
                                                            </table>
                                                            <?php } ?>


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




                                        </div>
                                    </div>
                                </div>
                                <?php }?>
                                <!-- ==============================================================================tab4==================================================-->
                                <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->family==1){?>
                                <div class="tab-pane <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> active <?php }?> " id="tab_4_6">


                                    <?php if ($_smarty_tpl->tpl_vars['tabactive']->value<1){?> 
                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'tabactive', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['tabactive']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                    <?php }?> 



                                    <div class="row all nolabel" id="">
                                        <div class="portlet-title tbox">
                                            <div class="caption font-green-haze col-md-6">
                                                <span class="caption-subject bold uppercase"> Family H </span>
                                            </div>
                                            <div class="actions col-md-6">
                                                <button type="button" class="btn btn-xs blue fright" id="family_btn"><i class="fa fa-plus"></i> Add</button>
                                            </div>
                                        </div>

                                        <input type="hidden" id="family_itr" value="<?php echo $_smarty_tpl->tpl_vars['phfamilycountx']->value;?>
"/>
                                        <div class="clearfix"></div>
                                        <div class="col-md-4 labelaz">
                                            Disease
                                        </div>
                                        <div class="col-md-4 labelaz">
                                            Relative
                                        </div>
                                        <div class="col-md-4 labelaz">
                                            Note
                                        </div>
                                        <div id="family_div"></div>
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['myallphfamily'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamily']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['phfamily']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamily']->key => $_smarty_tpl->tpl_vars['myallphfamily']->value){
$_smarty_tpl->tpl_vars['myallphfamily']->_loop = true;
?>
                                        <div>
                                            <?php if ($_smarty_tpl->tpl_vars['ProgramesettingData']->value->displaydoctorname==1){?>
                                            <div class="row ltr" >
                                                <div class="col-md-1">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <label class="control-label col-md-2 "><?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->username;?>
</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <?php }?>

                                            <div class="row ltr" >



                                                <div class="col-md-4">
                                                    <div class="form-group">
                                                        <!--                                                        <label class="control-label col-md-2 ls2">Disease</label>-->
                                                        <select  class="form-control family_disease updateElement allupdateselect" id="family_disease<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_disease;?>
"  name="family_disease" data-colName="family_disease" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->id;?>
" select-tableName="phfamilydisease"  data-tableName="phfamily" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphfamilydisease'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamilydisease']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphfamilydisease']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamilydisease']->key => $_smarty_tpl->tpl_vars['myallphfamilydisease']->value){
$_smarty_tpl->tpl_vars['myallphfamilydisease']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_disease;?>
<?php $_tmp47=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->id;?>
<?php $_tmp48=ob_get_clean();?><?php if ($_tmp47==$_tmp48){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphfamilydisease']->value->name;?>
 </option>
                                                            <?php } ?>
                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                    </div>
                                                </div>


                                                <div class="col-md-4">
                                                    <div class="form-group">
                                                        <!--                                                        <label class="control-label col-md-2 ls2">Relative</label>-->
                                                        <select  class="form-control family_relative  updateElement allupdateselect" id="family_relative<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-itr="<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"  name="family_relative" data-colName="family_relative" data-val="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_relative;?>
" select-tableName="phfamilyrelative"  data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->id;?>
" data-tableName="phfamily" >
                                                            <option value="">choose</option>
                                                            <?php  $_smarty_tpl->tpl_vars['myallphfamilyrelative'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallphfamilyrelative']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allphfamilyrelative']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallphfamilyrelative']->key => $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value){
$_smarty_tpl->tpl_vars['myallphfamilyrelative']->_loop = true;
?>
                                                            <option value="<?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->id;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->family_relative;?>
<?php $_tmp49=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->id;?>
<?php $_tmp50=ob_get_clean();?><?php if ($_tmp49==$_tmp50){?> selected <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallphfamilyrelative']->value->name;?>
 </option>
                                                            <?php } ?>
                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                    </div>
                                                </div>




                                                <div class="col-md-4">
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                        <div class="form-group form-md-line-input form-md-floating-label has-info">
                                                            <input type="text" class="amrpop form-control updateElement" placeholder="Note" name="familynote" data-colName="familynote" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->id;?>
" data-tableName="phfamily" value="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->familynote;?>
"/>
                                                        </div>
                                                        <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="<?php echo $_smarty_tpl->tpl_vars['myallphfamily']->value->id;?>
" data-tableName="phfamily"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                        <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                        <?php } ?>
                                    </div>

                                </div>
                                <?php }?>

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

            <!------=========================================================== phregularity ==================================================================------->

            <div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="new_model">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <!--button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button-->
                            <h4 class="modal-title aw_arabic"> ����� ���� </h4>
                        </div>
                        <div class="modal-body">
                            <div class="portlet-body form aw_arabic">
                                <form action="" id="model_form" method="post" class="form-horizontal ">
                                    <input type="text" name="datanomodel" id="datanomodel" value="1">
                                    <div class="form-body">
                                        <!------===========================================------->
                                        <div class="form-group">
                                            <div class="col-md-10">
                                                <input type="text" class="form-control input-medium"  id="newitem" name="newitem" autofocus="autofocus" required="required">
                                            </div>
                                            <label class="col-md-1 control-label"> �����</label>
                                        </div>
                                        <!------===========================================------->

                                        <div class="modal-footer">
                                            <button type="button" class="btn green" id="add_submit"> ����� </button>
                                            <button type="button" id="closeinput"   class="btn default" data-dismiss="modal">�����</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                </div>
            </div>

            <div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                            <h4 class="modal-title"> Edit </h4>
                        </div>
                        <div class="modal-body">
                            <div class="portlet-body form">
                                <form action="" id="" method="post" class="form-horizontal  emptyform" >
                                    <div class="form-body all" >
                                        <!------===========================================------->
                                        <div class="form-group">
                                            <label class="col-md-1 control-label"> </label>
                                            <div class="col-md-10">
                                                <div id="alldatadiv" class="" > </div>
                                            </div>
                                            <label class="col-md-1 control-label"> </label>
                                        </div>

                                        <!------===========================================------->

                                        <!------===========================================------->
                                        <div class="modal-footer">

                                            <button type="button" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- /.modal-content -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>





<!--===============================================direct value ========================================================= -->
<div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="directvaluemodal">
    <div class="modal-dialog wds60">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"> Add New </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form action="" id="obstric_direct_value" method="post" class="form-horizontal ">
                        <div class="form-body all">
                            <!------===========================================------->





                            <table class="table table-striped table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <!--th>P</th-->
                                        <th>SVD</th>
                                        <th>C.S</th>
                                        <th>AB</th>
                                        <th>Ectopic</th>
                                        <th>V.mole</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <!--td>
                                            <input type="text" name="pno" id="pno" value="<?php echo $_smarty_tpl->tpl_vars['patientwholedata']->value->pno;?>
" data-colName="pno" class="form-control updateElement positiveNo" data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-tableName="patients">

                                        </td-->
                                        <td>
                                            <input type="text" name="svd" value="<?php echo $_smarty_tpl->tpl_vars['patientwholedata']->value->svd;?>
" 
                                                   data-colName="svd"  class="form-control updateElement positiveNo" 
                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="vmodel" value="<?php echo $_smarty_tpl->tpl_vars['patientwholedata']->value->cs;?>
" 
                                                   data-colName="cs"  class="form-control updateElement positiveNo" 
                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="ab" value="<?php echo $_smarty_tpl->tpl_vars['patientwholedata']->value->ab;?>
"  
                                                   data-colName="ab" class="form-control updateElement positiveNo" 
                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="ectopic" value="<?php echo $_smarty_tpl->tpl_vars['patientwholedata']->value->ectopic;?>
" 
                                                   data-colName="ectopic"  class="form-control updateElement positiveNo" 
                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="vmodel" value="<?php echo $_smarty_tpl->tpl_vars['patientwholedata']->value->vmodel;?>
" 
                                                   data-colName="vmodel"  class="form-control updateElement positiveNo" 
                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" data-tableName="patients">
                                        </td>
                                    </tr>

                                </tbody>
                            </table>



                            <!------===========================================------->
                            <div class="modal-footer">
                                <button type="button" id="closeinput"   class="btn default" data-dismiss="modal">Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
    </div>
</div>







<?php }} ?>