
<style type="text/css">
   .yellow{
   background: yellow;
   }
   .red{
   background: #d40404;
   color: #fff
   }
   h2{
   text-align: center;
   }
   hr{
   margin: 10px 40%;
   border: 1px solid;
   }
   .toggle{
   font-weight: 800;max-width: 130px;
   }
   .rowtoggle{
   padding-bottom: 10px;
   }
   .thhead{
   background: #fff !important;
   color: red !important
   }
   .addappend{
   color: red;
   }
   .colorred{
   color: red;
   font-size: 14px
   }
   .hr{
   margin: 20px 17%;
   border: 1px dotted;
   }
   .tdcolor{
   background: #aaa; border: 1px solid #000 !important;
   }
   td,th{
   border: 1px solid #000 !important;text-align: center !important; vertical-align: none !important; 
   }
   input{
   border: none !important;
   }
   table{
   width: 100% !important;
   padding: 0px 20px;
   }
   .hidetable{
      display: none;
   }
</style>
<input type="hidden" id="patientId" value="{$patientid}"/>
<div class="page-content-wrapper">
   <div class="page-content all">
      <div class="row ">
         <div class="col-md-12" style="padding-right: 0px; padding-left: 0px;">
            <div class="portlet box blue">
               <div class="portlet-title" style="height: 5px">
                  <div class="caption">
                     <i class="fa fa-edit"></i> IVF Sheet
                  </div>
                  <div class="actions">
                  </div>
               </div>
               <div class="portlet-title" style="text-align: center;">
                        <input class="form-control"  type="text"   name="importantnote" data-id="{$ivfsheet->id}" data-table="ivfsheet"  value="{$ivfsheet->importantnote}" placeholder="Critical Data">
                        <div style="font-size: 15px">{$ivfsheet->importantnote}</div>
                </div>
               <div class="portlet-body form">
                  <form   class="form-horizontal  emptyform" >
                     <input type="hidden" id="id" name="id" value="{$id}" />
                     <input type="hidden" id="controllname" name="id" value="{$controllname}" />
                     <!-- <input type="hidden" id="tablep"  value="infertilitysheet" /> -->
                     <div class="form-body">
                      
                        <h2 > IVF Sheet</h2>
                        <hr >
                        <a style="float: right;" href="{$hosturl}/controllers/Ivfsheet.php?ac=archive&amp;patientid={$patientid}" class="btn btn-default btn-sm">
                                Archive ICSI 
                            </a>
                      
                        <table class="table table-bordered">
                           <tbody>
                              <tr>
                                 <th width="10%">
                                    Evaluation
                                 </th>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td >male</td>
                                          <td ><input class="form-control"  type="text"   name="anevaluation" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->anevaluation}" ></td>
                                       </tr>
                                       <tr>
                                          <td>female</td>
                                          <td ><input class="form-control"  type="text"    name="anevaluations" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->anevaluations}" ></td>
                                       </tr>
                                    </table>
                                 </td>
                              </tr>
                           </tbody>
                        </table>
                        <div class="row rowtoggle" >
                           <a class="btn grey-cascade btn-xs toggle" style="background: #1c8b11" data-show="newattempt" >New Attempt</a>
                           
                        </div>
                        <table class="table table-bordered hidetable newattempt" >
                           <tbody>
                              <tr>
                                 <th colspan="3">  Infertility    </th>
                                 <th colspan="5">  ICSI Trial   </th>
                              </tr>
                              <tr>
                                 <td  colspan="1">Type </td>
                                 <td  colspan="2">Duration</td>
                                 <td  colspan="1">AMH</td>
                                 <td  colspan="1">N</td>
                                 <td  colspan="1">Type</td>
                                 <td  colspan="1"> Protocol</td>
                                 <td  colspan="1">E2d2</td>
                              </tr>
                              <tr>
                                 <td  width="15%">
                                    <select  class="form-control  getselectajax antype" name="antype" data-id="{$id}"  data-table="ivfsheet"  data-celtable="antype" id="antype{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td width="7%"><input type="text" value="{$infertilitysheet->sheetyear}"  name="sheetyear" data-id="{$infertilitysheetid}"   data-table="infertilitysheet" class="form-control digitsOnly" /></td>
                                 <td width="7%"> <input type="text"  value="{$infertilitysheet->sheetmonth}" name="sheetmonth" data-id="{$infertilitysheetid}" data-table="infertilitysheet" class="form-control digitsOnly" /></td>
                                 <td  width="7%" >
                                    <input type="text"  name="anamh" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->anamh}" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  name="annn" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->annn}" class="form-control digitsOnly" />
                                 </td>
                                 <td  width="15%">
                                    <select  class="form-control getselectajax antypes" name="antypes" data-id="{$id}"  data-table="ivfsheet"  data-celtable="antypes" id="antypes{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td  width="15%">
                                    <select  class="form-control getselectajax icsiprotocol" name="anprotocol" data-id="{$id}"  data-table="ivfsheet"  data-celtable="icsiprotocol" id="icsiprotocol{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td width="25%"><input class="form-control"  type="text"   name="e2d2" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->e2d2}"  ></td>
                                
                              </tr>
                              <tr>
                                
                                 <td  colspan="3"> place</td>
                                 <td  colspan="3">TTT</td>
                                 <td  colspan="2">Notes</td>
                              </tr>
                               <tr>
                                 <td  colspan="3"> 
                                    <input type="text"  name="pla2ce" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->pla2ce}" class="form-control" />
                                 </td>
                                 <td colspan="3"><input class="form-control"  type="text"   name="anttt" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->anttt}"  ></td>
                                 <td colspan="2"><input class="form-control"  type="text"     name="annotes" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->annotes}"  ></td>
                              </tr>
                           </tbody>
                        </table>
                        <div class="row rowtoggle" >
                           <a class="btn grey-cascade btn-xs toggle hidetable newattempt fresh2" style="background: #acd6ee" data-show="fresh" >Fresh</a>
                           <a class="btn grey-cascade btn-xs toggle hidetable newattempt frozen2" style="background: #e3c645" data-show="frozen" > Frozen</a>
                        </div>
                        <table class="table table-bordered hidetable fresh">
                            <tr>
                              <th >LMP</th>
                              <td>
                              <input type="text"  name="lmpfresh" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->lmpfresh}" class="form-control datepicker lmpfresh lmpfresh2" placeholder="LMP" /></td>
                           </tr>
                        </table>
                        <table class="table table-bordered hidetable frozen">
                           <tr>
                              <th >LMP</th>
                              <td>
                                 <input type="text"  name="lmpfrozen" data-id="{$id}" data-table="ivfsheet"  value="{$ivfsheet->lmpfrozen}" class="form-control datepicker lmpfrozen lmpfrozen2" placeholder="LMP"/></td>
                           </tr>
                        </table>
                        <table class="table table-bordered hidetable fresh">
                           <tbody id="ovst">
                              <th style="background: #a2b6f8" colspan="21"> <a class="addappend" style="color: #000;" data-add="ovst"  data-id="{$id}"  data-table="ivfsheetid">  
                              OV. ST.  </a></th>
                              <tr>
                                 <th colspan="1" > CD  </th>
                                 <th colspan="1" >  Date   </th>
                                 <th colspan="1" >   Ag/Antag    </th>
                                 <th colspan="1"  >  HMG  </th>
                                 <th   colspan="1" style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr style="height: 31px;">
                                          <th  colspan="13" >F</th>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th width="8%"></th>
                                          <th width="8%" >10</th>
                                          <th width="8%">11</th>
                                          <th width="8%">12</th>
                                          <th width="8%">13</th>
                                          <th width="8%">14</th>
                                          <th width="8%">15</th>
                                          <th width="8%">16</th>
                                          <th width="8%">17</th>
                                          <th width="7%">18</th>
                                          <th width="7%">19</th>
                                          <th width="7%">20</th>
                                          <th width="7%">N</th>
                                       </tr>
                                    </table>
                                 </th>
                                 <th colspan="1" >  E   </th>
                                 <th colspan="1" >   E2    </th>
                                 <th colspan="1" > Note  </th>
                                  <th colspan="1" >    </th>
                              </tr>
                              {foreach $ovst as $single}
                              <tr class="rowovst{$single->id}">
                                 <td  width="7%" >
                                    <input type="text"  name="ovstcdfh" value="{$single->ovstcdfh}"  data-id="{$single->id}" id="ovstcdfh_{$single->id}"  data-table="ovst"  class="form-control digitsOnly newcd" data-datename="ovstdate"/>
                                 </td>
                                 <td  width="8%" >
                                    <input type="text"  name="ovstdate" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdate}" id="ovstdate_{$single->id}"  class="form-control datepicker" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  name="ovstag" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstag}"  class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  name="ovsthmg" data-id="{$single->id}"  data-table="ovst" value="{$single->ovsthmg}"  class="form-control" />
                                 </td>
                                 <th   colspan="1" style="background: #a2b6f8;padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr style="height: 31px;">
                                          <th  width="8%" >
                                             R
                                          </th>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstfr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfr}"  class="form-control" />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstfrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstfrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstfrrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfrrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstffrrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstffrrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstfffrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfffrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstffffrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstffffrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstfffffr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfffffr}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstffffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstffffff}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstfrfffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfrfffff}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstfrrffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfrrffff}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstfrrffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstfrrffff}"  class="form-control " />
                                          </td>
                                          
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th  width="8%" >
                                             L
                                          </th>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdfr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdfrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdfrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdfrrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfrrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdffrrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdffrrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdfffrrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfffrrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdffffrr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdffffrr}"  class="form-control " />
                                          </td>
                                          <td  width="8%" >
                                             <input type="text"  name="ovstdfffffr" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfffffr}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstdffffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdffffff}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstdfrfffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfrfffff}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstdfrrffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfrrffff}"  class="form-control " />
                                          </td>
                                          <td  width="7%" >
                                             <input type="text"  name="ovstdfrrffff" data-id="{$single->id}"  data-table="ovst" value="{$single->ovstdfrrffff}"  class="form-control " />
                                          </td>
                                          
                                       </tr>
                                    </table>
                                 </th>
                                 <td  width="7%" >
                                    <input type="text"  name="eovst" data-id="{$single->id}"  data-table="ovst" value="{$single->eovst}"  class="form-control " />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  name="eeovst" data-id="{$single->id}"  data-table="ovst" value="{$single->eeovst}"  class="form-control digitsOnly" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  name="noteovst" data-id="{$single->id}"  data-table="ovst" value="{$single->noteovst}"  class="form-control" />
                                 </td>
                                 <td width="5%">
                                     <a class="btn grey-cascade btn-xs deleterow" data-id="{$single->id}"  data-table="ovst">
                                         <i class="fa fa-close"></i>
                                     </a>
                                 </td>
                              </tr>
                                {/foreach}
                           </tbody>
                        </table>
                        <table class="table table-bordered hidetable fresh">
                           <tbody>
                              <tr>
                                 <th colspan="3" style="background: #a2b6f8"> TOO  </th>
                                 <th colspan="4" style="background: #a2b6f8">  OPU   </th>
                                 <th colspan="4" style="background: #a2b6f8">   Semen    </th>
                                 <th colspan="2" style="background: #a2b6f8">  F/E  D2   </th>
                              </tr>
                              <tr>
                                 <th  colspan="1">CD </th>
                                 <th  colspan="1">Date</th>
                                 <th  colspan="1">Drug</th>
                                 <th  colspan="1">Date</th>
                                 <th  colspan="1">N</th>
                                 <th  colspan="1"> Diff N</th>
                                 <th  colspan="1">Notes</th>
                                 <th  colspan="1"></th>
                                 <th  colspan="1"></th>
                                 <th  colspan="1"></th>
                                 <th  colspan="1"></th>
                                 <th  colspan="1"> N</th>
                                 <th  colspan="1">Diff N</th>
                              </tr>
                              <tr>
                                 <td  width="7%" >
                                    <input type="text"    value="{$ivfsheet->toocd}" name="toocd" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly newcd" 
                                    data-datename="toodate" />
                                 </td>
                                 <td width="8%"><input class="form-control datepicker toodate"  type="text"  value="{$ivfsheet->toodate}" name="toodate" id="toodate_{$id}" data-id="{$id}" data-table="ivfsheet"  class="form-control"  readonly=""></td>
                                 <td  width="7%" >
                                    <input type="text"    value="{$ivfsheet->toodrug}" name="toodrug" data-id="{$id}" data-table="ivfsheet"  class="form-control" />
                                 </td>
                                 <td width="8%"><input class="form-control datepicker"  type="text" value="{$ivfsheet->opudate}" name="opudate" data-id="{$id}" data-table="ivfsheet" ></td>
                                 <td  width="7%" >
                                    <input type="text"    value="{$ivfsheet->opun}" name="opun" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr style="height: 31px;">
                                          <th >Mll</th>
                                          <td  width="7%" >
                                             <input type="text"    value="{$ivfsheet->opumll}" name="opumll" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >Ml</th>
                                          <td  width="7%" >
                                             <input type="text"    value="{$ivfsheet->opuml}" name="opuml" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >GV</th>
                                          <td  width="7%" >
                                             <input type="text"    value="{$ivfsheet->opugv}" name="opugv" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >At</th>
                                          <td  width="7%" >
                                             <input type="text"    value="{$ivfsheet->opuat}" name="opuat" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >?...</th>
                                          <td  width="50%" >
                                             <input type="text"    value="{$ivfsheet->oopuu}" name="oopuu" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                    </table>
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"    value="{$ivfsheet->opunote}" name="opunote" data-id="{$id}" data-table="ivfsheet"  class="form-control" />
                                 </td>
                                 <td  width="10%">
                                     <select  class="form-control getselectajax ssemen" name="ssemen" data-id="{$id}"  data-table="ivfsheet"  data-celtable="ssemen" id="ssemen{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td  width="10%">
                                     <select  class="form-control getselectajax sseemen" name="sseemen" data-id="{$id}"  data-table="ivfsheet"  data-celtable="sseemen" id="sseemen{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td  width="10%">
                                     <select  class="form-control getselectajax icsisemen" name="sseemmen" data-id="{$id}"  data-table="ivfsheet"  data-celtable="icsisemen" id="icsisemen{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td  width="10%">
                                     <select  class="form-control getselectajax sseemmeen" name="sseemmeen" data-id="{$id}"  data-table="ivfsheet"  data-celtable="sseemmeen" id="sseemmeen{$id}" data-selid="{$id}" >
                                    </select>
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"    value="{$ivfsheet->fefn}" name="fefn" data-id="{$id}" data-table="ivfsheet"  class="form-control" />
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr style="height: 31px;">
                                          <th >A</th>
                                          <td  width="50%"  >
                                             <input type="text"    value="{$ivfsheet->fefa}" name="fefa" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >B</th>
                                          <td  width="7%" >
                                             <input type="text"    value="{$ivfsheet->fefb}" name="fefb" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >C</th>
                                          <td  width="7%" >
                                             <input type="text"    value="{$ivfsheet->fefc}" name="fefc" data-id="{$id}" data-table="ivfsheet"  class="form-control digitsOnly" />
                                          </td>
                                       </tr>
                                    </table>
                                 </td>
                              </tr>
                           </tbody>
                        </table>
                        <table class="table table-bordered hidetable fresh">
                           <tbody>
                              <tr>
                                 <th colspan="2" style="background: #a2b6f8">  S . S   </th>
                                 <th colspan="6" style="background: #a2b6f8">  ET   </th>
                                 <th colspan="3" style="background: #a2b6f8">   FR    </th>
                                 <th colspan="4" style="background: #a2b6f8">  Outcome   </th>
                              </tr>
                              <tr>
                                 <th  colspan="1">N of T.E </th>
                                 <th  colspan="1">Result</th>
                                 <th  colspan="1">CD</th>
                                 <th  colspan="1">Date</th>
                                 <th  colspan="1">N</th>
                                 <th  colspan="1"> G</th>
                                 <th  colspan="1">Notes</th>
                                 <th  colspan="1">Cancel</th>
                                 <th  colspan="1">CD</th>
                                 <th  colspan="1">ST</th>
                                 <th  colspan="1">EN</th>
                                 <th  colspan="1"> </th>
                                 <th  colspan="1">HSG</th>
                                 <th  colspan="1">TVS</th>
                                 <th  colspan="1">Del</th>
                              </tr>
                              <tr>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->sssnofte}" name="sssnofte" data-id="{$id}" data-table="ivfsheet" class="form-control digitsOnly" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->sssresult}" name="sssresult" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->ssscd}" name="ssscd" data-id="{$id}" data-table="ivfsheet" class="form-control digitsOnly" />
                                 </td>
                                 <td  width="9%" ><input class="form-control datepicker"  type="text"  value="{$ivfsheet->ettdate}" name="ettdate" data-id="{$id}" data-table="ivfsheet" ></td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->ettn}" name="ettn" data-id="{$id}" data-table="ivfsheet" class="form-control digitsOnly" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->ettg}" name="ettg" data-id="{$id}" data-table="ivfsheet" class="form-control " />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->ettnote}" name="ettnote" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->ettcancel}" name="ettcancel" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->frrcd}" name="frrcd" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->frrst}" name="frrst" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text" value="{$ivfsheet->frren}" name="frren" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr style="height: 31px;">
                                          <th >Date</th>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >Result</th>
                                       </tr>
                                    </table>
                                 </td>
                                <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td ><input class="form-control datepicker"  type="text"    value="{$ivfsheet->ooutcomehsgd}" name="ooutcomehsgd" data-id="{$id}" data-table="ivfsheet"  ></td>
                                       </tr>
                                       <tr>
                                          <td ><input class="form-control "  type="text"   value="{$ivfsheet->ooutcomehsgn}" name="ooutcomehsgn" data-id="{$id}" data-table="ivfsheet" ></td>
                                       </tr>
                                    </table>
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td ><input class="form-control datepicker"  type="text"   value="{$ivfsheet->ooutcometvsd}" name="ooutcometvsd" data-id="{$id}" data-table="ivfsheet"  ></td>
                                       </tr>
                                       <tr>
                                          <td ><input class="form-control"  type="text"    value="{$ivfsheet->ooutcometvsn}" name="ooutcometvsn" data-id="{$id}" data-table="ivfsheet"></td>
                                       </tr>
                                    </table>
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td ><input class="form-control datepicker"  type="text"    value="{$ivfsheet->ooutcomedeld}" name="ooutcomedeld" data-id="{$id}" data-table="ivfsheet" ></td>
                                       </tr>
                                       <tr>
                                          <td ><input class="form-control"  type="text"    value="{$ivfsheet->ooutcomedeln}" name="ooutcomedeln" data-id="{$id}" data-table="ivfsheet" ></td>
                                       </tr>
                                    </table>
                                 </td>
                              </tr>
                           </tbody>
                        </table>
                         <table class="table table-bordered hidetable frozen">
                           <tbody id="eprep">
                             
                              <tr>
                                 <th colspan="6" style="background: #fcaf42"> <a class="addappend" style="color: #000;" data-add="eprep"  data-id="{$id}"  data-table="ivfsheetid">  
                              E Prep  </a>
                                 </th>
                                 <th colspan="1" style="background: #fcaf42">   Cancel  </th>
                                 <th colspan="2" style="background: #fcaf42">   Lps  </th> 
                                 <th colspan="4" style="background: #fcaf42">   Thawing    </th>
                              </tr>
                              <tr>
                                 <th  colspan="1">CD </th>
                                 <th  colspan="1">Date</th>
                                 <th  colspan="1">TTT</th>
                                 <th  colspan="1">E</th>
                                 <th  colspan="1">RO</th>
                                 <th  colspan="1"> LO</th>
                                 <th  colspan="1">Cancel</th>
                                 <th  colspan="1">CD</th>
                                 <th  colspan="1">L P S</th>
                                 <th  colspan="1">Date</th>
                                 <th  colspan="1">ST.N</th>
                                 <th  colspan="1">EN</th>
                                 <th  colspan="1"></th>
                              </tr>
                              {foreach $eprep as $single}
                              <tr class="roweprep{$single->id}">
                                 <td  width="7%" >
                                    <input type="text"   value="{$single->eprepcd}" name="eprepcd" data-id="{$single->id}" data-table="eprep" class="form-control digitsOnly newcd2"  data-datename="eprepdate"/>
                                 </td>
                                 <td  width="8%" >
                                    <input type="text"   value="{$single->eprepdate}" name="eprepdate" data-id="{$single->id}" data-table="eprep" id="eprepdate_{$single->id}" class="form-control datepicker eprepdate" readonly="" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"   value="{$single->eprepttt}" name="eprepttt" data-id="{$single->id}" data-table="eprep" class="form-control" />
                                 </td>
                                 <td ><input class="form-control digitsOnly"  type="text"  value="{$single->eprepe}" name="eprepe" data-id="{$single->id}" data-table="eprep" ></td>
                                 <td  width="7%" >
                                    <input type="text"   value="{$single->eprepro}" name="eprepro" data-id="{$single->id}" data-table="eprep" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"   value="{$single->epreplo}" name="epreplo" data-id="{$single->id}" data-table="eprep" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"   value="{$single->eprepcancel}" name="eprepcancel" data-id="{$single->id}" data-table="eprep" class="form-control" />
                                 </td>
                                  <td  width="7%" >
                                    <input type="text"   value="{$single->cdlps}" name="cdlps" data-id="{$single->id}" data-table="eprep" class="form-control" />
                                 </td>
                                 <td  width="20%">
                                    <select  class="form-control getselectajax epreplps" name="epreplps" data-id="{$single->id}"  data-table="eprep"  data-celtable="epreplps" id="epreplps{$single->id}" data-selid="{$single->id}" >
                                    </select>
                                 </td>
                                 <td  width="8%" >
                                    <input type="text"   value="{$single->thawingdate}" name="thawingdate" data-id="{$single->id}" data-table="eprep" class="form-control datepicker" />
                                 </td>
                                 <td ><input class="form-control digitsOnly"  type="text"     value="{$single->thawingstn}" name="thawingstn" data-id="{$single->id}" data-table="eprep" ></td>
                                 <td ><input class="form-control digitsOnly"  type="text"      value="{$single->thawingen}" name="thawingen" data-id="{$single->id}" data-table="eprep" ></td>
                                 <td width="5%">
                                     <a class="btn grey-cascade btn-xs deleterow" data-id="{$single->id}"  data-table="eprep">
                                         <i class="fa fa-close"></i>
                                     </a>
                                 </td>
                              </tr>
                                {/foreach}
                           </tbody>
                        </table>
                        <table class="table table-bordered hidetable frozen">
                           <tbody>
                              <tr>
                                 <th colspan="2" style="background: #fcaf42">  S . S   </th>
                                 <th colspan="6" style="background: #fcaf42">  ET   </th>
                                 <th colspan="1" style="background: #fcaf42">  Re Fr    </th>
                                 <th colspan="4" style="background: #fcaf42">  Outcome   </th>
                              </tr>
                              <tr>
                                 <th  colspan="1">N of T.E </th>
                                 <th  colspan="1">Result</th>
                                 <th  colspan="1">CD</th>
                                 <th  colspan="1">Date</th>
                                 <th  colspan="1">N</th>
                                 <th  colspan="1"> G</th>
                                 <th  colspan="1">Notes</th>
                                 <th  colspan="1">Cancel</th>
                                 <th  colspan="1">EN</th>
                                 <th  colspan="1"> </th>
                                 <th  colspan="1">HSG</th>
                                 <th  colspan="1">TVS</th>
                                 <th  colspan="1">Del</th>
                              </tr>
                              <tr>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->ssnofte}" name="ssnofte" data-id="{$id}" data-table="ivfsheet" class="form-control digitsOnly" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->ssresult}" name="ssresult" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->etcd}" name="etcd" data-id="{$id}" data-table="ivfsheet" class="form-control digitsOnly newcd2"  data-datename="etdate" />
                                 </td>
                                 <td ><input class="form-control datepicker etdate" id="etdate_{$id}"  type="text"    value="{$ivfsheet->etdate}" name="etdate" data-id="{$id}" data-table="ivfsheet" readonly="" ></td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->etn}" name="etn" data-id="{$id}" data-table="ivfsheet" class="form-control digitsOnly" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->etg}" name="etg" data-id="{$id}" data-table="ivfsheet" class="form-control " />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->etnote}" name="etnote" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->etcancel}" name="etcancel" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  width="7%" >
                                    <input type="text"  value="{$ivfsheet->refren}" name="refren" data-id="{$id}" data-table="ivfsheet" class="form-control" />
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr style="height: 31px;">
                                          <th >Date</th>
                                       </tr>
                                       <tr style="height: 31px;">
                                          <th >Result</th>
                                       </tr>
                                    </table>
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td ><input class="form-control datepicker"  type="text"    value="{$ivfsheet->outcomehsgd}" name="outcomehsgd" data-id="{$id}" data-table="ivfsheet"  ></td>
                                       </tr>
                                       <tr>
                                          <td ><input class="form-control "  type="text"   value="{$ivfsheet->outcomehsgn}" name="outcomehsgn" data-id="{$id}" data-table="ivfsheet" ></td>
                                       </tr>
                                    </table>
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td ><input class="form-control datepicker"  type="text"   value="{$ivfsheet->outcometvsd}" name="outcometvsd" data-id="{$id}" data-table="ivfsheet"  ></td>
                                       </tr>
                                       <tr>
                                          <td ><input class="form-control"  type="text"    value="{$ivfsheet->outcometvsn}" name="outcometvsn" data-id="{$id}" data-table="ivfsheet"></td>
                                       </tr>
                                    </table>
                                 </td>
                                 <td  style="padding: 0px">
                                    <table style="width: 100%;margin-bottom: 0px;">
                                       <tr>
                                          <td ><input class="form-control datepicker"  type="text"    value="{$ivfsheet->outcomedeld}" name="outcomedeld" data-id="{$id}" data-table="ivfsheet" ></td>
                                       </tr>
                                       <tr>
                                          <td ><input class="form-control"  type="text"    value="{$ivfsheet->outcomedeln}" name="outcomedeln" data-id="{$id}" data-table="ivfsheet" ></td>
                                       </tr>
                                    </table>
                                 </td>
                              </tr>
                           </tbody>
                        </table>
                        <div class="actions hidetable frozen">
                            <a href="{$hosturl}/controllers/Ivfsheet.php?ac=archive&amp;patientid={$patientid}"  class="btn btn-default btn-sm">
                                Archive ICSI 
                            </a>
                            <button id="historys" data-kind="frozen" class="btn red historys">
                          End ICSI frozen

                            </button>
                        </div>
                        <div class="actions hidetable fresh">
                            <a href="{$hosturl}/controllers/Ivfsheet.php?ac=archive&amp;patientid={$patientid}" class="btn btn-default btn-sm">
                                Archive ICSI 
                            </a>
                            <button id="" data-kind="fresh" class="btn red historys">
                          End ICSI fresh

                            </button>
                        </div>
                        <div class="form-group">
                           <div class="col-md-1"></div>
                           <div class="col-md-8">
                           </div>
                        </div>
                     </div>
                  </form>
               </div>
            </div>
         </div>
      </div>
   </div>
</div>

