<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">
                                {assign var=active value=0}

                                {if $ProgramesettingData->menstrual == 1 }
                                {capture assign=active}{$active+1}{/capture}
                                <li class="aw_3d_list active"> <a href="#tab_0_0" data-toggle="tab"> Menstrual H </a> </li>
                                {/if}

                                {if $ProgramesettingData->contraception == 1 }
                                <li class="aw_3d_list  {if $active < 1   } active {/if}"  > <a href="#tab_1_6" data-toggle="tab"> Contraception H </a> </li>
                                {if $active < 1   } 
                                {capture assign=active}{$active+1}{/capture}
                                {/if} 
                                {/if}

                                {if $ProgramesettingData->obstetric == 1 }
                                <li class="aw_3d_list  {if $active< 1   } active {/if}"> <a href="#tab_2_6" data-toggle="tab"> Obstetric H</a> </li>
                                {if $active < 1   } 
                                {capture assign=active}{$active+1}{/capture}
                                {/if} 
                                {/if}

                                {if $ProgramesettingData->past == 1 }
                                <li class="aw_3d_list  {if $active< 1   } active {/if} "> <a href="#tab_55_6" data-toggle="tab"> Past H </a> </li>
                                {if $active < 1   } 
                                {capture assign=active}{$active+1}{/capture}
                                {/if} 
                                {/if}

                                {if $ProgramesettingData->family == 1 }
                                <li class="aw_3d_list  {if $active< 1   } active {/if} "> <a href="#tab_4_6" data-toggle="tab"> Family H</a> </li>
                                {if $active < 1   } 
                                {capture assign=active}{$active+1}{/capture}
                                {/if} 
                                {/if}

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

                                <input type="hidden" id="patientId" value="{$patientId}"/>
                                <input type="hidden" id="controllName" value="patienthistory"/>
                                <input type="hidden" id="phscrt" value="1"/>

                                {assign var=tabactive value=0}
                                <!---======================================================== tab1============================================================================================ ----->
                                {if $ProgramesettingData->menstrual == 1 }
                                <div class="tab-pane {if $tabactive < 1   } active {/if} " id="tab_0_0">

                                    {if $tabactive < 1   } 
                                    {capture assign=tabactive}{$tabactive+1}{/capture}
                                    {/if} 

                                    <!-- 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="{$allphmenstrualcount}"  />
                                        <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>
                                        {assign var=i value=1}
                                        {foreach $allphmenstrual as $myallphmenstrual}
                                        <div>
                                            {if $ProgramesettingData->displaydoctorname eq 1}
                                            <div class="row ltr" >
                                                <div class="">
                                                    <div class="">
                                                        <label class="control-label col-md-2 ">{$myallphmenstrual->username}</label>
                                                    </div>
                                                </div>
                                            </div>
                                            {/if}
                                            <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="{$myallphmenstrual->id}" data-tableName="phmenstrual" value="{$myallphmenstrual->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="{$myallphmenstrual->id}" data-tableName="phmenstrual" value="{$myallphmenstrual->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="{$myallphmenstrual->id}" data-tableName="phmenstrual" value="{$myallphmenstrual->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{$i}" data-val="{$myallphmenstrual->phregularity}" data-itr="{$i}" name="phregularity" select-tableName="phregularity" data-colName="phregularity"  data-id="{$myallphmenstrual->id}" data-tableName="phmenstrual"  >
                                                                <option value="">choose</option>
                                                                {foreach  $allphregualrity as $myallphregualrity}
                                                                <option value="{$myallphregualrity->id}" {if {$myallphregualrity->id} eq {$myallphmenstrual->phregularity} } selected {/if}>{$myallphregualrity->name} </option>
                                                                {/foreach}

                                                                <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{$i}" data-itr="{$i}" data-val="{$myallphmenstrual->phamount}"  name="phamount" data-colName="phamount" select-tableName="phamount"  data-id="{$myallphmenstrual->id}" data-tableName="phmenstrual" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphamount as $myallphamount}
                                                            <option value="{$myallphamount->id}" {if {$myallphamount->id} eq {$myallphmenstrual->phamount} } selected {/if}>{$myallphamount->name} </option>
                                                            {/foreach}

                                                            <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{$i}" data-itr="{$i}" data-val="{$myallphmenstrual->phdysmenorrhoea}" name="phdysmenorrhoea" select-tableName="phdysmenorrhoea" data-colName="phdysmenorrhoea"  data-id="{$myallphmenstrual->id}" data-tableName="phmenstrual" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphdysmenorrhoea as $myallphdysmenorrhoea}
                                                            <option value="{$myallphdysmenorrhoea->id}" {if {$myallphdysmenorrhoea->id} eq {$myallphmenstrual->phdysmenorrhoea} } selected {/if}>{$myallphdysmenorrhoea->name} </option>
                                                            {/foreach}

                                                            <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="{$myallphmenstrual->id}" data-tableName="phmenstrual" value="{$myallphmenstrual->phlMP}"/>
                                                        <!--<label for="lMP1">LMP</label>-->

                                                        <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallphmenstrual->id}" data-tableName="phmenstrual"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>


                                            </div>
                                        </div>
                                        {capture assign=i}{$i+1}{/capture}
                                        {/foreach}
                                    </div>

                                    <div class="clearfix"></div>
                                    <!-- END SAMPLE FORM PORTLET-->
                                </div>
                                {/if}
                                <!---- =================================================================tab 2 =======================================================================================------>
                                {if $ProgramesettingData->contraception == 1 }
                                <div class="tab-pane {if $tabactive < 1   } active {/if} " id="tab_1_6">

                                    {if $tabactive < 1   } 
                                    {capture assign=tabactive}{$tabactive+1}{/capture}
                                    {/if} 

                                    <!-- 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="{$allcontractcount}" />
                                        <div id="contraception_div"></div>
                                        {assign var=i value=1}
                                        {foreach $allcontract as $myallcontract}
                                        <div>
                                            {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallcontract->username}</label>
                                                    </div>
                                                </div>
                                            </div>
                                            {/if}
                                            <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{$i}" data-val="{$myallcontract->contype}" data-itr="{$i}" name="contype" data-colName="contype" select-tableName="phcontracttype"  data-id="{$myallcontract->id}"  data-tableName="phcontraception" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphcontracttype as $myallphcontracttype}
                                                            <option value="{$myallphcontracttype->id}" {if {$myallcontract->contype} eq {$myallphcontracttype->id}} selected {/if} >{$myallphcontracttype->name} </option>
                                                            {/foreach}

                                                            <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="{$myallcontract->contduration}"  data-id="{$myallcontract->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="{$myallcontract->contstopped}"  data-id="{$myallcontract->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="{$myallcontract->contranote}"  data-id="{$myallcontract->id}" data-tableName="phcontraception"/>
                                                        </div>


                                                        <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallcontract->id}" data-tableName="phcontraception"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>


                                                <!-- END SAMPLE FORM PORTLET-->

                                            </div>
                                        </div>
                                        {capture assign=i}{$i+1}{/capture}
                                        {/foreach}
                                    </div>
                                    <!-- END PAGE CONTENT-->

                                </div>
                                {/if}
                                <!---- =================================================================tab 3 =======================================================================================------>
                                {if $ProgramesettingData->obstetric == 1 }
                                <div class="tab-pane {if $tabactive < 1   } active {/if} " id="tab_2_6">

                                    {if $tabactive < 1   } 
                                    {capture assign=tabactive}{$tabactive+1}{/capture}
                                    {/if} 


                                    <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="{$patientId}" 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="{$allobstericcount}" />
                                        <div id="obstertic_div"></div>
                                        {assign var=i value=1}
                                        {foreach $allobsteric as $myallobsteric}
                                        <div>
                                            {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallobsteric->username}</label>
                                                    </div>
                                                </div>
                                            </div>
                                            {/if}
                                            <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="{$myallobsteric->id}" value="{$myallobsteric->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{$i}" data-val="{$myallobsteric->obstermination}" data-itr="{$i}" name="obstermination" data-colName="obstermination"  select-tableName="phobstericterminate"  data-id="{$myallobsteric->id}"  data-tableName="phobstetric" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphobstericterminate as $myallphobstericterminate}
                                                            <option value="{$myallphobstericterminate->id}" {if {$myallobsteric->obstermination} eq  {$myallphobstericterminate->id} } selected {/if}>{$myallphobstericterminate->name} </option>
                                                            {/foreach}

                                                            <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{$i}" data-val="{$myallobsteric->obsplace}" data-itr="{$i}"  name="obsplace" data-colName="obsplace" data-id="{$myallobsteric->id}" select-tableName="phobstericterplace"  data-tableName="phobstetric" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphobstericterplace as $myallphobstericterplace}
                                                            <option value="{$myallphobstericterplace->id}" {if {$myallobsteric->obsplace} eq  {$myallphobstericterplace->id} } selected {/if}>{$myallphobstericterplace->name} </option>
                                                            {/foreach}

                                                            <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="{$myallobsteric->id}"  value="{$myallobsteric->obsdate}" data-tableName="phobstetric"/>
                                                        <!--                                                        <label for="obsdate">Date</label>-->
                                                    </div>
                                                </div>











                                                <div class="col-md-4" id="allbabydivs{$i}" {if {$myallobsteric->obstermination} eq 1  || {$myallobsteric->obstermination} eq 2 } style="display:block" {else} style="display:none" {/if}>
                                                    <div class="form-group form-md-line-input form-md-floating-label has-info">


                                                        <div class="row" id="baby_div{$i}">

                                                            <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{$i}"   name="outcomeid" data-colName="outcomeid" data-itr="{$i}"   data-id="{$myallobsteric->id}"  data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->outcomeid} eq 0}selected {/if}>Male</option>
                                                                        <option value="1" {if {$myallobsteric->outcomeid} eq 1}selected {/if}>Female</option>
                                                                        <option value="2" {if {$myallobsteric->outcomeid} eq 2}selected {/if}>Twins</option>
                                                                        <option value="3" {if {$myallobsteric->outcomeid} eq 3}selected {/if}>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="{$myallobsteric->id}"   data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->babytype} eq 0}selected {/if}>Living</option>
                                                                        <option value="1" {if {$myallobsteric->babytype} eq 1}selected {/if}>Dead</option>
                                                                    </select>
                                                                </div>
                                                            </div>



                                                            <div class="col-md-2" id="genderdiv{$i}" {if $myallobsteric->outcomeid eq 0 || $myallobsteric->outcomeid eq 1}style="display:none;"{/if}>
                                                                <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="{$myallobsteric->id}"  data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->babygendernew} eq 0}selected {/if}>M</option>
                                                                        <option value="1" {if {$myallobsteric->babygendernew} eq 1}selected {/if}>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="{$myallobsteric->id}"  value="{$myallobsteric->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{$i}">
                                                                <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="{$myallobsteric->id}"  value="{$myallobsteric->babyname}" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">Baby Name</label>-->
                                                                </div>
                                                            </div>


                                                        </div>





                                                    </div>
                                                </div>













                                                <div class="col-md-4" id="nooutdata{$i}" {if {$myallobsteric->obstermination} eq 1  || {$myallobsteric->obstermination} eq 2 } style="display:none" {else} style="display:block" {/if}> <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="{$myallobsteric->id}"  value="{$myallobsteric->obsnote}" data-tableName="phobstetric"/>
                                                        </div>
                                                        <button type="button" class="btn delbtnsml btn-xs red fright deleteElement delbtnsml" data-id="{$myallobsteric->id}" data-tableName="phobstetric"><i class="fa fa-close"></i></button>
                                                    </div>

                                                </div>


                                                <div class="row" {if {$myallobsteric->obstermination} eq 1  || {$myallobsteric->obstermination} eq 2 } style="display:block" {else} style="display:none" {/if} >
                                                    <!-- END SAMPLE FORM PORTLET-->

                                                    <div class="row" id="baby_div1{$i}" {if {$myallobsteric->outcomeid} >  1} style="display:block" {else} style="display:none" {/if}>


                                                        <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="{$myallobsteric->id}"  data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->babytype1} eq 0}selected {/if}>Living</option>
                                                                        <option value="1" {if {$myallobsteric->babytype1} eq 1}selected {/if}>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="{$myallobsteric->id}"   data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->babygendernew1} eq 0}selected {/if}>M</option>
                                                                        <option value="1" {if {$myallobsteric->babygendernew1} eq 1}selected {/if}>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="{$myallobsteric->id}"  value="{$myallobsteric->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="{$myallobsteric->id}"  value="{$myallobsteric->babyname1}" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">Baby Name</label>-->
                                                                </div>
                                                            </div>


                                                        </div>
                                                    </div>



                                                    <div class="row" id="baby_div2{$i}" {if {$myallobsteric->outcomeid} eq 3} style="display:block" {else} style="display:none" {/if}>

                                                        <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="{$myallobsteric->id}"   data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->babytype2} eq 0}selected {/if}>Living</option>
                                                                        <option value="1" {if {$myallobsteric->babytype2} eq 1}selected {/if}>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="{$myallobsteric->id}"   data-tableName="phobstetric" >
                                                                        <option value="0" {if {$myallobsteric->babygendernew2} eq 0}selected {/if}>M</option>
                                                                        <option value="1" {if {$myallobsteric->babygendernew2} eq 1}selected {/if}>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="{$myallobsteric->id}"  value="{$myallobsteric->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="{$myallobsteric->id}"  value="{$myallobsteric->babyname2}" data-tableName="phobstetric"/>
                                                                    <!--<label for="obsnote">Baby Name</label>-->
                                                                </div>
                                                            </div>

                                                        </div>

                                                    </div>
                                                </div>






                                            </div>





                                        </div>

                                        {capture assign=i}{$i+1}{/capture}
                                        {/foreach}
                                    </div>

                                </div>
                                {/if}
                                <!---- =================================================================tab 4 =======================================================================================------>
                                {if $ProgramesettingData->past == 1 }
                                <!-- BEGIN CONTENT -->
                                <div class="tab-pane {if $tabactive < 1   } active {/if} " id="tab_55_6">

                                    {if $tabactive < 1   } 
                                    {capture assign=tabactive}{$tabactive+1}{/capture}
                                    {/if} 


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

                                            {assign var=xactive value=0}

                                            {if $ProgramesettingData->medical == 1 }
                                            {capture assign=xactive}{$xactive+1}{/capture}
                                            <li class="aw_3d_list active" > <a href="#tab_00_00" data-toggle="tab"> Medical </a> </li>
                                            {/if}

                                            {if $ProgramesettingData->surgical == 1 }
                                            <li class="aw_3d_list {if $xactive< 1   } active {/if}  ">  <a href="#tab_10_6" data-toggle="tab"> Surgical </a> </li>
                                            {if $xactive < 1   } 
                                            {capture assign=xactive}{$xactive+1}{/capture}
                                            {/if} 
                                            {/if}

                                            {if $ProgramesettingData->gynecological == 1 }
                                            <li class="aw_3d_list {if $xactive< 1   } active {/if}  ">  <a href="#tab_20_6" data-toggle="tab"> Gynecological </a> </li>
                                            {if $xactive < 1   } 
                                            {capture assign=xactive}{$xactive+1}{/capture}
                                            {/if} 
                                            {/if}

                                            {if $ProgramesettingData->art == 1 }
                                            <li class="aw_3d_list {if $xactive< 1   } active {/if}  ">  <a href="#tab_30_6" data-toggle="tab"> ART </a> </li>
                                            {if $xactive < 1   } 
                                            {capture assign=xactive}{$xactive+1}{/capture}
                                            {/if} 
                                            {/if}

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

                                            {assign var=xtabactive value=0}

                                            {if $ProgramesettingData->medical == 1 }
                                            <!--tab_1_1-->
                                            <div class="tab-pane {if $xtabactive < 1   } active {/if}" id="tab_00_00">

                                                {if $xtabactive < 1   } 
                                                {capture assign=xtabactive}{$xtabactive+1}{/capture}
                                                {/if} 


                                                <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="{$phpastmedicalcount}" />
                                                    <div id="pastmedical_div"></div>
                                                    {assign var=i value=1}
                                                    {foreach $mypastmedical as $myallphpastmedical}
                                                    <div>
                                                        {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallphpastmedical->username}</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        {/if}
                                                        <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{$i}" data-val="{$myallphpastmedical->medicaldisease}" data-itr="{$i}"  name="medicaldisease" data-colName="medicaldisease" select-tableName="phpastmedicaldisease" data-id="{$myallphpastmedical->id}" data-tableName="phpastmedical" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $allphpastmedicaldisease as $myallphpastmedicaldisease}
                                                                        <option value="{$myallphpastmedicaldisease->id}" {if {$myallphpastmedical->medicaldisease} eq  {$myallphpastmedicaldisease->id} } selected {/if}>{$myallphpastmedicaldisease->name} </option>
                                                                        {/foreach}
                                                                        <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="{$myallphpastmedical->medicalnote}" data-id="{$myallphpastmedical->id}" data-tableName="phpastmedical"/>
                                                                    </div>
                                                                    <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallphpastmedical->id}" data-tableName="phpastmedical"><i class="fa fa-close"></i></button>
                                                                </div>
                                                            </div>


                                                        </div>
                                                    </div>
                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}
                                                </div>

                                            </div>
                                            {/if}
                                            <!--===========================tab_1_6=========================================================================-->
                                            {if $ProgramesettingData->surgical == 1 }

                                            <div class="tab-pane {if $xtabactive < 1   } active {/if}" id="tab_10_6">

                                                {if $xtabactive < 1   } 
                                                {capture assign=xtabactive}{$xtabactive+1}{/capture}
                                                {/if} 


                                                <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="{$pastsurgicalcount}"/>
                                                    <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>
                                                    {assign var=i value=1}
                                                    {foreach $pastsurgical as $myallpastsurgical}
                                                    <div>
                                                        {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallpastsurgical->username}</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        {/if}
                                                        <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{$i}" data-val="{$myallpastsurgical->surgicaloperation}" data-itr="{$i}"  name="surgicaloperation" select-tableName="phpastsurgicaloperation" data-colName="surgicaloperation" data-id="{$myallpastsurgical->id}" data-tableName="phpastsurgical" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $allphpastsurgicaloperation as $myallphpastsurgicaloperation}
                                                                        <option value="{$myallphpastsurgicaloperation->id}" {if {$myallpastsurgical->surgicaloperation} eq  {$myallphpastsurgicaloperation->id} } selected {/if}>{$myallphpastsurgicaloperation->name} </option>
                                                                        {/foreach}
                                                                        <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="{$myallpastsurgical->id}" data-tableName="phpastsurgical" value="{$myallpastsurgical->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="{$myallpastsurgical->id}" data-tableName="phpastsurgical" value="{$myallpastsurgical->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="{$myallpastsurgical->id}" data-tableName="phpastsurgical" value="{$myallpastsurgical->surgicalnote}"/>
                                                                    </div>
                                                                    <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallpastsurgical->id}" data-tableName="phpastsurgical"><i class="fa fa-close"></i></button>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}

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

                                                <!-- END PAGE CONTENT-->
                                            </div>
                                            {/if}
                                            <!--==============================================================tab_2_6===================================================-->
                                            {if $ProgramesettingData->gynecological == 1 }

                                            <div class="tab-pane {if $xtabactive < 1   } active {/if}" id="tab_20_6">

                                                {if $xtabactive < 1   } 
                                                {capture assign=xtabactive}{$xtabactive+1}{/capture}
                                                {/if} 


                                                <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="{$phpastgynecologicalcount}"/>
                                                    <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>
                                                    {assign var=i value=1}
                                                    {foreach $phpastgynecological as $myallpastgynecological}
                                                    <div>
                                                        {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallpastgynecological->username}</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        {/if}
                                                        <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{$i}" data-val="{$myallpastgynecological->gynecologicaloperation}" data-itr="{$i}"  name="gynecologicaloperation" data-colName="gynecologicaloperation" select-tableName="phpastgynecologicaloperation" data-id="{$myallpastgynecological->id}" data-tableName="phpastgynecological" >
                                                                        <option value="">choose</option>
                                                                        {foreach  $allphpastgynecologicaloperation as $myallphpastgynecologicaloperation}
                                                                        <option value="{$myallphpastgynecologicaloperation->id}" {if {$myallpastgynecological->gynecologicaloperation} eq  {$myallphpastgynecologicaloperation->id} } selected {/if}>{$myallphpastgynecologicaloperation->name} </option>
                                                                        {/foreach}
                                                                        <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="{$myallpastgynecological->id}" data-tableName="phpastgynecological" value="{$myallpastgynecological->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="{$myallpastgynecological->id}" data-tableName="phpastgynecological" value="{$myallpastgynecological->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="{$myallpastgynecological->id}" data-tableName="phpastgynecological" value="{$myallpastgynecological->gynecologicalnote}"/>
                                                                    </div>
                                                                    <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallpastgynecological->id}" data-tableName="phpastgynecological"><i class="fa fa-close"></i></button>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                    {capture assign=i}{$i+1}{/capture}
                                                    {/foreach}
                                                </div>

                                            </div>
                                            {/if}
                                            <!--=============================================================================tab_3_6==================================================================================-->
                                            {if $ProgramesettingData->art == 1 }

                                            <div class="tab-pane {if $xtabactive < 1   } active {/if}" id="tab_30_6">

                                                {if $xtabactive < 1   } 
                                                {capture assign=xtabactive}{$xtabactive+1}{/capture}
                                                {/if} 

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

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

                                                        {assign var=artactive value=0}

                                                        {if $ProgramesettingData->art_external == 1 }
                                                        {capture assign=artactive}{$artactive+1}{/capture}
                                                        <li class="aw_3d_list active" > <a href="#tab_art_1" data-toggle="tab"> Art External </a> </li>
                                                        {/if}

                                                        {if $ProgramesettingData->art_internal == 1 }
                                                        <li class="aw_3d_list {if $artactive< 1   } active {/if}  ">  <a href="#tab_art_2" data-toggle="tab"> Art Internal </a> </li>
                                                        {if $artactive < 1   } 
                                                        {capture assign=artactive}{$artactive+1}{/capture}
                                                        {/if} 
                                                        {/if}
                                                    </ul>


                                                    <div class="tab-content">
                                                        {assign var=arttabactive value=0}

                                                        {if $ProgramesettingData->art_external == 1 }
                                                        {capture assign=arttabactive}{$arttabactive+1}{/capture}
                                                        <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="{$phpastartcount}"/>

                                                                <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>
                                                                {assign var=i value=1}
                                                                {foreach $phpastart as $myallphpastart}
                                                                <div style=" margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #aaa; ">
                                                                    {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallphpastart->username}</label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    {/if}

                                                                    <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{$i}" data-itr="{$i}" data-val="{$myallphpastart->arttype}"  name="arttype" data-colName="arttype" select-tableName="phpastarttype" data-id="{$myallphpastart->id}" data-tableName="phpastart" >
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $allphpastarttype as $myallphpastarttype}
                                                                                    <option value="{$myallphpastarttype->id}" {if {$myallphpastart->arttype} eq  {$myallphpastarttype->id} } selected {/if}>{$myallphpastarttype->name} </option>
                                                                                    {/foreach}
                                                                                    <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{$i}" data-itr="{$i}" data-val="{$myallphpastart->artcenter}" name="artcenter" data-colName="artcenter" data-id="{$myallphpastart->id}" select-tableName="phpastartcenter" data-tableName="phpastart" >
                                                                                    <option value="">choose</option>
                                                                                    {foreach  $allphpastartcenter as $myallphpastartcenter}
                                                                                    <option value="{$myallphpastartcenter->id}" {if {$myallphpastart->artcenter} eq  {$myallphpastartcenter->id} } selected {/if}>{$myallphpastartcenter->name} </option>
                                                                                    {/foreach}
                                                                                    <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="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->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="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->artnote}"/>
                                                                                </div>
                                                                                <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallphpastart->id}" data-tableName="phpastart"><i class="fa fa-close"></i></button>
                                                                            </div>
                                                                        </div>

                                                                    </div>


                                                                    <div id="extraArt{$i}" {if $myallphpastart->arttype eq 0} {else} style="display: none;"{/if}>
                                                                        <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="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->ovdate}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="oocytes" name="oocytes" data-colName="oocytes"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->oocytes}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="fertilized" name="fertilized" data-colName="fertilized"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->fertilized}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="ovembryos" name="ovembryos" data-colName="ovembryos"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->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="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->emdate}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="emembryos" name="emembryos" data-colName="emembryos"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->emembryos}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="pregrest" name="pregrest" data-colName="pregrest"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->pregrest}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="us" name="us" data-colName="us"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->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="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->freezdate}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="straw 1" name="straw1" data-colName="straw1"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->straw1}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="straw 2" name="straw2" data-colName="straw2"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->straw2}" /></td>
                                                                                        <td><input type="text" class="form-control updateElement" placeholder="straw 3" name="straw3" data-colName="straw3"   data-id="{$myallphpastart->id}" data-tableName="phpastart" value="{$myallphpastart->straw3}" /></td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </div>

                                                                    <div id="extraArtother{$i}"  {if $myallphpastart->arttype eq  3 || $myallphpastart->arttype eq 2} {else} style="display: none;"{/if}>
                                                                        <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="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}" data-tableName="phpasticsi"  value="{$myallphpastart->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="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi"  value="{$myallphpastart->icsigii}"/>
                                                                                            <input type="text" class="col-md-4 updatemyElement" placeholder="MI" name="gi" data-colName="gi"   data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi"  value="{$myallphpastart->icsigi}"/>
                                                                                            <input type="text" class="col-md-4 updatemyElement" placeholder="GV" name="gv" data-colName="gv"   data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->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="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->icsiet}" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="ET" name="etf" data-colName="etf"   data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->icsietf}" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="Frozen" name="frozen" data-colName="frozen"   data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->icsifrozen}" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="B-HCG" name="bhcg" data-colName="bhcg"   data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->icsibhcg}" /></td>
                                                                                        <td style="padding: 0px !important;"><input type="text" class="form-control updatemyElement" placeholder="FHR" name="fhr" data-colName="fhr"   data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->icsifhr}" /></td>
                                                                                        <!--td class="col-md-3"><input type="text" class="form-control updatemyElement" placeholder="Notes" name="notes" data-colName="notes"  data-id="{$myallphpastart->icsiid}" data-pid="{$myallphpastart->id}"  data-tableName="phpasticsi" value="{$myallphpastart->icsinotes}" /></td-->
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </div>




                                                                </div>
                                                                {capture assign=i}{$i+1}{/capture}
                                                                {/foreach}
                                                            </div>

                                                        </div>
                                                        {/if}

                                                        {if $ProgramesettingData->art_internal == 1 }
                                                        <div class="tab-pane {if $arttabactive < 1   } active {/if}" id="tab_art_2">

                                                            {if $arttabactive < 1   } 
                                                            {capture assign=arttabactive}{$arttabactive+1}{/capture}
                                                            {/if} 

                                                            <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>

                                                            {foreach $monitorSheets as $data}
                                                            <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>
                                                                            {$data->procedure}
                                                                        </td>
                                                                        <td style="padding: 3px;">
                                                                            <div align="center">
                                                                                <a href="{$hosturl}/controllers/monitoring.php?ac=trialdetail&patientid={$patientid}&id={$data->id}">
                                                                                    {$data->monitordate}
                                                                                </a>
                                                                            </div>

                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="place" data-tableName="mointoringsheet" value="{$data->place}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->place}" />
                                                                        </td>
                                                                        <td>
                                                                            {$data->protocol}
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="amp" data-tableName="mointoringsheet" value="{$data->amp}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->amp}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytestotal" data-tableName="mointoringsheet" value="{$data->oocytestotal}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytestotal}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytesm1" data-tableName="mointoringsheet" value="{$data->oocytesm1}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytesm1}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytesm2" data-tableName="mointoringsheet" value="{$data->oocytesm2}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytesm2}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="oocytesgv" data-tableName="mointoringsheet" value="{$data->oocytesgv}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->oocytesgv}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="ettotal" data-tableName="mointoringsheet" value="{$data->ettotal}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->ettotal}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="etg1" data-tableName="mointoringsheet" value="{$data->etg1}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->etg1}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="cyroday" data-tableName="mointoringsheet" value="{$data->cyroday}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->cyroday}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="cyrow" data-tableName="mointoringsheet" value="{$data->cyrow}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->cyrow}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="p4" data-tableName="mointoringsheet" value="{$data->p4}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->p4}" />
                                                                        </td>
                                                                        <td>
                                                                            <input type="text" class="form-control updateElement" data-id="{$data->id}" data-colName="outcome" data-tableName="mointoringsheet" value="{$data->outcome}" data-toggle="popover" data-trigger="hover" data-placement="bottom" data-content="{$data->outcome}" />
                                                                        </td>
                                                                    </tr>

                                                                    <tr>
                                                                        <th>Notes</th>
                                                                        <td colspan="14">
                                                                            <textarea class="form-control txtc updateElement" rows="1" data-id="{$data->id}" 
                                                                                      data-colName="notes" data-tableName="mointoringsheet" placeholder="Enter more text"
                                                                                      data-toggle="popover" data-trigger="hover" data-placement="bottom" 
                                                                                      data-content="{$data->notes}">{$data->notes}
                                                                            </textarea>
                                                                        </td>
                                                                    </tr>



                                                                </tbody>
                                                            </table>
                                                            {/foreach}


                                                        </div>
                                                        {/if}
                                                    </div>
                                                </div>
                                            </div>
                                            {/if}




                                        </div>
                                    </div>
                                </div>
                                {/if}
                                <!-- ==============================================================================tab4==================================================-->
                                {if $ProgramesettingData->family == 1 }
                                <div class="tab-pane {if $tabactive < 1   } active {/if} " id="tab_4_6">


                                    {if $tabactive < 1   } 
                                    {capture assign=tabactive}{$tabactive+1}{/capture}
                                    {/if} 



                                    <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="{$phfamilycountx}"/>
                                        <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>
                                        {assign var=i value=1}
                                        {foreach $phfamily as $myallphfamily}
                                        <div>
                                            {if $ProgramesettingData->displaydoctorname eq 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 ">{$myallphfamily->username}</label>
                                                    </div>
                                                </div>
                                            </div>
                                            {/if}

                                            <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{$i}" data-itr="{$i}" data-val="{$myallphfamily->family_disease}"  name="family_disease" data-colName="family_disease" data-id="{$myallphfamily->id}" select-tableName="phfamilydisease"  data-tableName="phfamily" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphfamilydisease as $myallphfamilydisease}
                                                            <option value="{$myallphfamilydisease->id}" {if {$myallphfamily->family_disease} eq  {$myallphfamilydisease->id} } selected {/if}>{$myallphfamilydisease->name} </option>
                                                            {/foreach}
                                                            <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{$i}" data-itr="{$i}"  name="family_relative" data-colName="family_relative" data-val="{$myallphfamily->family_relative}" select-tableName="phfamilyrelative"  data-id="{$myallphfamily->id}" data-tableName="phfamily" >
                                                            <option value="">choose</option>
                                                            {foreach  $allphfamilyrelative as $myallphfamilyrelative}
                                                            <option value="{$myallphfamilyrelative->id}" {if {$myallphfamily->family_relative} eq  {$myallphfamilyrelative->id} } selected {/if}>{$myallphfamilyrelative->name} </option>
                                                            {/foreach}
                                                            <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="{$myallphfamily->id}" data-tableName="phfamily" value="{$myallphfamily->familynote}"/>
                                                        </div>
                                                        <button type="button" class="btn btn-xs red fright deleteElement delbtnsml" data-id="{$myallphfamily->id}" data-tableName="phfamily"><i class="fa fa-close"></i></button>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                        {capture assign=i}{$i+1}{/capture}
                                        {/foreach}
                                    </div>

                                </div>
                                {/if}

                            </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="{$patientwholedata->pno}" data-colName="pno" class="form-control updateElement positiveNo" data-id="{$patientId}" data-tableName="patients">

                                        </td-->
                                        <td>
                                            <input type="text" name="svd" value="{$patientwholedata->svd}" 
                                                   data-colName="svd"  class="form-control updateElement positiveNo" 
                                                   data-id="{$patientId}" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="vmodel" value="{$patientwholedata->cs}" 
                                                   data-colName="cs"  class="form-control updateElement positiveNo" 
                                                   data-id="{$patientId}" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="ab" value="{$patientwholedata->ab}"  
                                                   data-colName="ab" class="form-control updateElement positiveNo" 
                                                   data-id="{$patientId}" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="ectopic" value="{$patientwholedata->ectopic}" 
                                                   data-colName="ectopic"  class="form-control updateElement positiveNo" 
                                                   data-id="{$patientId}" data-tableName="patients">
                                        </td>
                                        <td>
                                            <input type="text" name="vmodel" value="{$patientwholedata->vmodel}" 
                                                   data-colName="vmodel"  class="form-control updateElement positiveNo" 
                                                   data-id="{$patientId}" 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>







