
<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>
<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; background: #000">

                        <div style="font-size: 20px">{$ivfsheet->importantnotes}</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 > <a  href="{$hosturl}/controllers/ivfsheet.php?ac=Index&amp;patientid={$patientid}"  > IVF Sheet </a></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 >{$ivfsheet->anevaluation}</td>
                                                    </tr>
                                                    <tr>
                                                        <td >{$ivfsheet->anevaluations}</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>

                                </table>
                            </div>
                            <table class="table table-bordered  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}"  disabled="">
                                            </select>
                                        </td>
                                        <td width="7%">{$ivfsheet->sheetyear}</td>
                                        <td width="7%"> {$ivfsheet->sheetmonth}</td>
                                        <td  width="7%" >
                                            {$ivfsheet->anamh}
                                        </td>
                                        <td  width="7%" >
                                            {$ivfsheet->annn}
                                        </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}" disabled="" >
                                            </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}" disabled="" >
                                            </select>
                                        </td>
                                        <td width="25%">{$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"> 
                                            <select  class="form-control getselectajax pla2cen" name="pla2cen" data-id="{$id}"  data-table="ivfsheet"  data-celtable="pla2cen" id="pla2cen{$id}" data-selid="{$id}" disabled="">
                                        </td>
                                        <td colspan="3">{$ivfsheet->anttt}</td>
                                        <td colspan="2">{$ivfsheet->annotes}</td>
                                    </tr>
                                </tbody>
                            </table>


                            {if $ivfsheet->frozenor == "fresh"}  
                            <table class="table table-bordered  fresh">
                                <tr>
                                    <th width="20%" >LMP</th>
                                    <td>
                                        {$ivfsheet->lmpfresh}</td>
                                </tr>
                            </table>

                            <table class="table table-bordered  fresh">
                                <tbody id="ovst">
                                <th style="background: #a2b6f8" colspan="21"> <a  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%">..</th>
                                            </tr>
                                        </table>
                                    </th>
                                    <th colspan="1" >  E   </th>
                                    <th colspan="1" >   E2    </th>
                                    <th colspan="1" > Notes   </th>
                                </tr>
                                {foreach $ovst as $single}
                                <tr class="rowovst{$single->id}">
                                    <td  width="7%" >
                                        {$single->ovstcdfh}
                                    </td>
                                    <td  width="8%" >
                                        {$single->ovstdate}
                                    </td>
                                    <td  width="7%" >
                                        {$single->ovstag}
                                    </td>
                                    <td  width="7%" >
                                        {$single->ovsthmg}
                                    </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%" >{$single->ovstfr}
                                                </td>
                                                <td  width="8%" >{$single->ovstfrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstfrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstfrrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstffrrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstfffrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstffffrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstfffffr}
                                                </td>
                                                <td  width="7%" >{$single->ovstffffff}
                                                </td>
                                                <td  width="7%" >{$single->ovstfrfffff}
                                                </td>
                                                <td  width="7%" >{$single->ovstfrrffff}
                                                </td>
                                                <td  width="7%" >{$single->ovstfrrffffn}
                                                </td>

                                            </tr>
                                            <tr style="height: 31px;">
                                                <th  width="8%" >
                                                    L
                                                </th>
                                                <td  width="8%" >{$single->ovstdfr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdfrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdfrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdfrrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdffrrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdfffrrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdffffrr}
                                                </td>
                                                <td  width="8%" >{$single->ovstdfffffr}
                                                </td>
                                                <td  width="7%" >{$single->ovstdffffff}
                                                </td>
                                                <td  width="7%" >{$single->ovstdfrfffff}
                                                </td>
                                                <td  width="7%" >{$single->ovstdfrrffff}
                                                </td>
                                                <td  width="7%" >{$single->ovstdfrrffffn}
                                                </td>

                                            </tr>
                                        </table>
                                    </th>
                                    <td  width="7%" >{$single->eovst}
                                    </td>
                                    <td  width="7%" >{$single->eeovst}
                                    </td>
                                    <td  width="7%" >{$single->noteovst}
                                    </td>

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

                            <table class="table table-bordered  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%" >{$ivfsheet->toocd}
                                        </td>
                                        <td >{$ivfsheet->toodate}</td>
                                        <td  width="7%" >{$ivfsheet->toodrug}
                                        </td>
                                        <td >{$ivfsheet->opudate}</td>
                                        <td  width="7%" >{$ivfsheet->opun}
                                        </td>
                                        <td  style="padding: 0px">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="height: 31px;">
                                                    <th >Mll</th>
                                                    <td  width="7%" >{$ivfsheet->opumll}
                                                    </td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <th >Ml</th>
                                                    <td  width="7%" >{$ivfsheet->opuml}
                                                    </td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <th >GV</th>
                                                    <td  width="7%" >{$ivfsheet->opugv}
                                                    </td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <th >At</th>
                                                    <td  width="7%" >{$ivfsheet->opuat}
                                                    </td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <th >?...</th>
                                                    <td  width="50%" >{$ivfsheet->oopuu}
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td  width="7%" >{$ivfsheet->opunote}
                                        </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}" disabled="">
                                            </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}" disabled="">
                                            </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}" disabled="">
                                            </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}" disabled="">
                                            </select>
                                        </td>
                                        <td  width="7%" >{$ivfsheet->fefn}
                                        </td>
                                        <td  style="padding: 0px">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="height: 31px;">
                                                    <th >A</th>
                                                    <td  width="50%"  >{$ivfsheet->fefa}
                                                    </td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <th >B</th>
                                                    <td  width="7%" >{$ivfsheet->fefb}
                                                    </td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <th >C</th>
                                                    <td  width="7%" >{$ivfsheet->fefc}
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table class="table table-bordered  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%" >{$ivfsheet->sssnofte}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->sssresult}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->ssscd}
                                        </td>
                                        <td >{$ivfsheet->ettdate}</td>
                                        <td  width="7%" >{$ivfsheet->ettn}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->ettg}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->ettnote}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->ettcancel}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->frrcd}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->frrst}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->frren}
                                        </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" width="7%">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="min-height: 20px">
                                                    <td style="height: 31px">{$ivfsheet->ooutcomehsgd}</td>
                                                </tr>
                                                <tr style="min-height: 20px">
                                                    <td style="height: 31px">{$ivfsheet->ooutcomehsgn}</td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td  style="padding: 0px" width="7%">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="min-height: 20px">
                                                    <td style="height: 31px">{$ivfsheet->ooutcometvsd}</td>
                                                </tr>
                                                <tr style="min-height: 20px">
                                                    <td style="height: 31px">{$ivfsheet->ooutcometvsn}</td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td  style="padding: 0px" width="7%">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="min-height: 20px">
                                                    <td style="height: 31px"> {$ivfsheet->ooutcomedeld}</td>
                                                </tr>
                                                <tr style="min-height: 20px">
                                                    <td style="height: 31px">{$ivfsheet->ooutcomedeln}</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            {else} 
                            <table class="table table-bordered  frozen">
                                <tr>
                                    <th width="20%">LMP</th>
                                    <td>
                                        {$ivfsheet->lmpfrozen}</td>
                                </tr>
                            </table>
                            <table class="table table-bordered  frozen">
                                <tbody>
                                    <tr>
                                        <th colspan="6" style="background: #fcaf42"> E Prep</th>
                                        <th colspan="1" style="background: #fcaf42">   Cancel  </th>
                                        <th colspan="2" style="background: #fcaf42">   Lps  </th> 
                                        <th colspan="3" 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>
                                    </tr>
                                    {foreach $eprep as $single}
                                    <tr >
                                        <td  width="7%" >{$single->eprepcd}
                                        </td>
                                        <td  width="8%" >{$single->eprepdate}
                                        </td>
                                        <td  width="7%" >{$single->eprepttt}
                                        </td>
                                        <td  width="9%" >{$single->eprepe}
                                        </td>
                                        <td  width="5%" >{$single->eprepro}
                                        </td>
                                        <td  width="5%" >{$single->epreplo}
                                        </td>
                                        <td  width="7%" >{$single->eprepcancel}
                                        </td>
                                        <td  width="7%" >{$single->cdlps}
                                        </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}" disabled="" >
                                            </select>
                                        </td>
                                        <td  width="8%" >{$single->thawingdate}
                                        </td>
                                        <td >{$single->thawingstn}
                                        <td >{$single->thawingen}</td>
                                    </tr>
                                    {/foreach}


                                </tbody>
                            </table>
                            <table class="table table-bordered  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%" >
                                            {$ivfsheet->ssnofte}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->ssresult}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->etcd}
                                        </td>
                                        <td >{$ivfsheet->etdate}</td>
                                        <td  width="7%" >{$ivfsheet->etn}
                                        </td>
                                        <td  width="7%" >
                                            {$ivfsheet->etg}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->etnote}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->etcancel}
                                        </td>
                                        <td  width="7%" >{$ivfsheet->refren}
                                        </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 style="height: 31px;">
                                                    <td >{$ivfsheet->outcomehsgd}</td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <td >{$ivfsheet->outcomehsgn}</td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td  style="padding: 0px">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="height: 31px;">
                                                    <td >{$ivfsheet->outcometvsd}</td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <td >{$ivfsheet->outcometvsn}</td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td  style="padding: 0px">
                                            <table style="width: 100%;margin-bottom: 0px;">
                                                <tr style="height: 31px;">
                                                    <td >{$ivfsheet->outcomedeld}</td>
                                                </tr>
                                                <tr style="height: 31px;">
                                                    <td >{$ivfsheet->outcomedeln}</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            {/if}
                            <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>

