
{literal}
<style>


    .prntbl2 {
        padding:0px !important;
        width:95% !important;
        margin:0px auto !important;
    }.prntbl2 table{
        border-collapse: collapse !important;
        width:100% !important;
        margin:0px !important;
        padding:0px !important;
    }
    .prntbl2 table th {
        background-color: #2D2D2D !important;
        background: #2D2D2D !important;
        border:0px solid #000000 !important;
        border-width:0px 0px 1px 1px !important;
        font-size:15px !important;
        font-family:Arial !important;
        font-weight:bold !important;
        color: #FFFFFF !important;
        text-align: center !important;
    }.prntbl2 tr:hover td{

    }
    .prntbl2 tr:nth-child(odd){background-color: #E0E0E0 !important;}
    .prntbl2 tr:nth-child(even)    { background-color:#ffffff !important; }
    .prntbl2 td{
        border:1px solid #000000 !important;
        padding: 0px 3px !important;
        font-size: 13px !important;
        font-family: tahoma !important;
        color:#000000 !important;
        text-align: left !important;
    }


    .prntbl2 th, .prntbl2 tt, .prntbl2 td {
        line-height: 20px !important;
        padding: 1px 5px !important;


    }

    .prntbl2 span {
        font-weight: 700;
    }

</style>

{/literal}
<div class="prntbl2">
    <table class="table table-hover portlet light bg-inverse" id="">
         <thead>
                                        <tr style="color:#5ce4f2;">
                                            <th colspan="5"></th>
                                            <th colspan="2"></th>
                                            <th colspan="2" >Infertility</th>
                                            <th colspan="27" >ICSI cycle</th>
                                        </tr>
                                        <tr style="color:#bd0606;">
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Name</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Age</th>
                                            <th colspan="1"style="border-bottom: 0.1px solid #fff !important;">BMI</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">AMH</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">evaluation</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Name</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">evaluation</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Type</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Durat</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Trial</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">Protocol</th>
                                            <th colspan="3">COH</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">TOO</th>
                                            <th colspan="3">OPU</th>
                                            <th colspan="2">Semen</th>
                                            <th colspan="1" style="border-bottom: 0.1px solid #fff !important;">F/E D2</th>
                                            <th colspan="2">Thawing</th>
                                            <th colspan="1">SS</th>
                                            <th colspan="5">ET</th>
                                            <th colspan="3">Fr</th>
                                            <th colspan="1">Re</th>
                                            <th colspan="3">Outcome</th>
                                        </tr>
                                         <tr style="color:red;">
                                            <th colspan="1" ></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1"></th>
                                            <th colspan="1">HMG</th>
                                            <th colspan="1">Durat</th>
                                            <th colspan="1">E</th>
                                            <th colspan="1"></th>
                                            <th colspan="1">date</th>
                                            <th colspan="1">N</th>
                                            <th colspan="1">MII</th>
                                            <th colspan="1">Fresh/frozen</th>
                                            <th colspan="1">Sample/TESE</th>
                                            <th colspan="1"></th>
                                            <th colspan="1">Date</th>
                                            <th colspan="1">ST.N</th>
                                            <th colspan="1">result</th>
                                            <th colspan="1">Date</th>
                                            <th colspan="1">D</th>
                                            <th colspan="1">N</th>
                                            <th colspan="1">G</th>
                                            <th colspan="1">cancel</th>
                                            <th colspan="1">D</th>
                                            <th colspan="1">ST</th>
                                            <th colspan="1">EN</th>
                                            <th colspan="1">EN</th>
                                            <th colspan="1">HCG</th>
                                            <th colspan="1">TVS</th>
                                            <th colspan="1">Deliv</th>
                                           
                                        </tr>
                                    </thead>
                                    <tbody>
                                        
                                        {assign var="i" value="1"}
                                        {foreach $allData as $data}                                        <tr>
                                            <td><a href="{$hosturl}/controllers/patienthistory.php?ac=show&patientid={$data->patientid}" target="_new">{$data->info->wifename}</a></td>
                                            <td>{$data->info->wifeage}</td>
                                            <td>{$data->examinations->bmi}</td>
                                            <td>{$data->anamh}</td>
                                            <td>{$data->anevaluation}</td>
                                            <td>{$data->info->husdandname}</td>
                                            <td>{$data->anevaluations}</td>
                                            <td>{$data->antypet->title}</td>
                                            <td>{$data->anduration}</td>
                                            <td>{$data->annn}</td>
                                            <td>{$data->anprotocolt->title}</td>
                                            <td> {$data->ovsthmgs->ovsthmg} </td>
                                            {if $data->frozenor == "fresh"}
                                             <td>{$data->countovst}</td>
                                             <td>{$data->ovste->eovst}</td>
                                            {else}
                                             <td>{$data->counteprep}</td>
                                             <td>{$data->eprepdes->eprepe}</td>
                                             {/if}
                                           
                                            
                                            <td>{$data->toodrug}</td>
                                            <td>{$data->opudate}</td>
                                            <td>{$data->opun}</td>
                                            <td>{$data->opumll}</td>
                                            <td>{$data->sseement->title}</td>
                                            <td>{$data->icsisement->title}</td>
                                            <td>{$data->fefn}</td>
                                            <td>
                                                 {$data->eprepasc->thawingdate} 
                                             </td>
                                            <td>  
                                                 {$data->eprepasc->thawingstn}
                                             </td>
                                           {if $data->frozenor == "fresh"}
                                            <td>{$data->sssresult}</td>
                                            <td>{$data->ettdate}</td>
                                            <td>{$data->ssscd}</td>
                                            <td>{$data->ettn}</td>
                                            <td>{$data->ettg}</td>
                                            <td>{$data->ettcancel}</td>
                                            <td>{$data->frrcd}</td>
                                            <td>{$data->frrst}</td>
                                            <td>{$data->frren}</td>
                                            <td>{$data->refren}</td>
                                            <td>{$data->ooutcomehsgn}</td>
                                            <td>{$data->ooutcometvsn}</td>
                                            <td>{$data->ooutcomedeln}</td>
                                            {else}
                                            <td>{$data->ssresult}</td>
                                            <td>{$data->ettdate}</td>
                                            <td>{$data->ssscd}</td>
                                            <td>{$data->ettn}</td>
                                            <td>{$data->etg}</td>
                                            <td>{$data->etcancel}</td>
                                            <td>{$data->frrcd}</td>
                                            <td>{$data->frrst}</td>
                                            <td>{$data->frren}</td>
                                            <td>{$data->refren}</td>
                                            <td>{$data->outcomehsgn}</td>
                                            <td>{$data->outcometvsn}</td>
                                            <td>{$data->outcomedeln}</td>
                                            {/if}
                                         </tr>
                                        {assign var="i" value={$i+1}}
                                        {/foreach}
                                    </tbody>
    </table>
</div>