<style>
    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;
    }

    td, th {
        border: 1px solid #000000;
        text-align: left;
        padding: 8px;
    }

    tr:nth-child(even) {
        background-color: #dddddd;
    }
</style>
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-user"></i>Embryology Report
                        </div>
                        <div class="actions">

                            {if $patientId}

                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=show&&patientid={$patientId}" class="btn btn-default btn-sm">
                                Show Reports  </a>
                            {else}
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=show" class="btn btn-default btn-sm">
                                Show Reports </a>
                            {/if}

                        </div>
                    </div>
                    <div class="portlet-body">

                        <!--Begin Semen-->

                        <div class="row">


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

                            </div>

                            <div class="clearfix"></div>

                            {if $patientId}
                            <form action="{$hosturl}/controllers/{$controllname}.php?ac=updateit&patientid={$patientId}" method="post" enctype="multipart/form-data">
                                {else}
                                <form action="{$hosturl}/controllers/{$controllname}.php?ac=updateit" method="post" enctype="multipart/form-data">
                                    {/if}
                                    <div class="form-body">
                                        <div class="col-md-12">
                                            <label class="col-md-12 control-label" for="form_control_1">
                                                Examination
                                            </label>

                                            <div class="form-group col-md-6">
                                                <label class="col-md-4 txtl">Clinician :</label>
                                                <div class="col-md-7">
                                                    <select class="form-control"name="clinician" data-colName="name" select-tableName="awusers"  data-id="{$one.user_id}" >
                                                        <option value="">choose</option>
                                                        {foreach  $clinician as $one}
                                                        <option value="{$one.user_id}"{if $editElement->clinician_id eq $one.user_id}selected{/if}>{$one.name}</option>
                                                        {/foreach}

                                                    </select>

                                                </div>
                                            </div>
                                            <div class="form-group col-md-6">
                                                <label class="col-md-4 txtl">Embryologist :</label>
                                                <div class="col-md-7">
                                                    <select class="form-control"  name="embryologist" data-colName="name" select-tableName="awusers"  data-id="{$one.user_id}" >
                                                        <option value="">choose</option>
                                                        {foreach  $embryologist as $one}
                                                        <option value="{$one.user_id}" {if $editElement->embryologist_id eq $one.user_id}selected{/if}>{$one.name}</option>
                                                        {/foreach}

                                                    </select>

                                                </div>
                                            </div>

                                            <!--div class="form-group col-md-4">
                                                <label class="col-md-4 txtl" >Nurse :</label>
                                                <div class="col-md-7">
                                                    <select class="form-control" name="nurse" data-colName="name" select-tableName="awusers"  data-id="{$one.user_id}" >
                                                        <option value="">choose</option>
                                                        {foreach  $users as $one}
                                                        {if $one.role_id eq 6}
                                                        <option value="{$one.user_id}" {if $one.user_id eq $editElement->nurse_id}selected{/if}>{$one.name}</option>
                                                        {/if}
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div-->

                                            <div class="form-group col-md-6">
                                                <label class="col-md-4 txtl">Day OF Transfer :</label>
                                                <div class="col-md-7">
                                                    <!--input type="text" class="form-control  datepicker"  value="{$editElement->day_of_transfer}" name="day_of_transfer" /-->
                                                    <select class="form-control select2me"  required="required" id="day" name="day_of_transfer" data-placeholder="Select..." data-id="" data-colName="" data-tableName="">
                                                        <option></option>
                                                        <option value=''>--Select Day--</option>
                                                        <option value='1' {if $editElement->day_of_transfer eq 1}selected{/if}>1</option>
                                                        <option value='2' {if $editElement->day_of_transfer eq 2}selected{/if}>2</option>
                                                        <option value='3' {if $editElement->day_of_transfer eq 3}selected{/if}>3</option>
                                                        <option value='4' {if $editElement->day_of_transfer eq 4}selected{/if}>4</option>
                                                        <option value='5' {if $editElement->day_of_transfer eq 5}selected{/if}>5</option>
                                                        <option value='6' {if $editElement->day_of_transfer eq 6}selected{/if}>6</option>

                                                    </select>

                                                </div>
                                            </div>
                                            <div class="form-group col-md-6">
                                                <label class="col-md-4 txtl">Date :</label>
                                                <div class="col-md-7">
                                                    <input type="text" class="form-control  datepicker"  value="{$editElement->date}" name="date"/>

                                                </div>
                                            </div>

                                            <!--div class="form-group col-md-4">
                                                <label class="col-md-4 txtl" >Anaesthetist :</label>
                                                <div class="col-md-7">
                                                    <select class="form-control" name="anaesthetist" data-colName="name" select-tableName="awusers"  data-id="{$one.user_id}" >
                                                        <option value="">choose</option>
                                                        {foreach  $users as $one}
                                                        {if $one.role_id eq 7}
                                                        <option value="{$one.user_id}" {if $one.user_id eq $editElement->anaesthetist_id}selected{/if}>{$one.name}</option>
                                                        {/if}
                                                        {/foreach}
                                                    </select>
                                                </div>
                                            </div-->


                                            <div class="clearfix"></div>
                                            <hr>
                                            <div class="form-group col-md-12">
                                                <table>
                                                    <thead>
                                                        <tr>
                                                            <th>
                                                                Sperm Source
                                                            </th>
                                                            <th>
                                                                Count
                                                            </th>
                                                            <th>
                                                                Motility
                                                            </th>
                                                            <th>
                                                                Morphology
                                                            </th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control" name="sperm_source"  value="{$editElement->sperm_source}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="count"  value="{$editElement->count}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="motility"  value="{$editElement->motility}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="morphology"  value="{$editElement->morphology}"/>
                                                            </td>
                                                        </tr>
                                                    </tbody>

                                                </table>


                                            </div>
                                            <div class="clearfix"></div>
                                            <hr>
                                            <div class="form-group col-md-12">
                                                <table>
                                                    <thead>
                                                        <tr>
                                                            <th>
                                                                Oocyte retrieved
                                                            </th>
                                                            <th>
                                                                MII
                                                            </th>
                                                            <th>
                                                                MI
                                                            </th>
                                                            <th>
                                                                GV
                                                            </th>
                                                            <th>
                                                                Atretic
                                                            </th>
                                                            <th>
                                                                Other
                                                            </th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control " name="oocyte_retrived" value="{$editElement->oocyte_retrived}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="mii" value="{$editElement->mii}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="mi" value="{$editElement->mi}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="gv" value="{$editElement->gv}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="atretic" value="{$editElement->atretic}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="empty_follicle" value="{$editElement->empty_follicle}"/>
                                                            </td>

                                                        </tr>
                                                    </tbody>

                                                </table>


                                            </div>
                                            <div class="clearfix"></div>
                                            <hr>
                                            <div class="form-group col-md-12">
                                                <table>
                                                    <thead>

                                                        <tr>
                                                            <th rowspan="2">
                                                                Fertilized
                                                            </th>
                                                            <th  rowspan="2">
                                                                Cleavage
                                                            </th>
                                                            <th  colspan="2">
                                                                Embryo Transfer
                                                            </th>
                                                            <th  colspan="3">
                                                                Embryo Freezing
                                                            </th>


                                                        </tr>
                                                        <tr>
                                                            <th>
                                                                Stage
                                                            </th>
                                                            <th>
                                                                Grade
                                                            </th>
                                                            <th>
                                                                No Of Embryos
                                                            </th>
                                                            <th>
                                                                No Of Straws
                                                            </th>
                                                            <th>
                                                                Day of Freezing
                                                            </th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        <tr>
                                                            <td>
                                                                <input type="text" class="form-control" name="fertilized_egg" value="{$editElement->fertilized_egg}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="cleavage" value="{$editElement->cleavage}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_transfer_stage" value="{$editElement->embryo_transfer_stage}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_transfer_grade" value="{$editElement->embryo_transfer_grade}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_freezing_embryos" value="{$editElement->embryo_freezing_embryos}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_freezing_straws" value="{$editElement->embryo_freezing_straws}"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_freezing_day" value="{$editElement->embryo_freezing_day}"/>
                                                            </td>

                                                        </tr>
                                                    </tbody>

                                                </table>


                                            </div>
                                        </div>

                                        <div class="clearfix"></div>
                                        <div class="col-md-12">
                                            <label class="col-md-2 control-label" for="form_control_1">
                                                Picture
                                            </label>

                                            <div class="col-md-10">
                                                <div class="fileinput fileinput-new" data-provides="fileinput">
                                                    <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 250px; height: 170px;">
                                                        <img {if $editElement->embryologyimg} src="{$hosturl}/../upload/embryologyimg/{$editElement->embryologyimg}"{/if}/></div>
                                                    <input type="hidden" id="imageurl" name="imageurl" value="{$editElement->embryologyimg}" />
                                                    <div> <span class="btn default btn-file"> <span class="fileinput-new"> Select image </span> <span class="fileinput-exists"> Change </span>
                                                            <input type="file" name="embryologyimg" accept="image/*"  class=" form-control">
                                                        </span>  </div>
                                                </div>
                                            </div>
                                        </div>
                                        <input type="hidden" id="id" name="id" value="{$editElement->id}" />

                                        <br> <br>

                                        <div class="form-actions">
                                            <div class="row">
                                                <div class="col-md-offset-2 col-md-10">
                                                    {if $patientId}
                                                    <a class="btn default" href="{$hosturl}/controllers/{$controllname}.php?ac=show&patientid={$patientId}">Cancel</a>
                                                    {else}
                                                    <a class="btn default" href="{$hosturl}/controllers/{$controllname}.php?ac=show">Cancel</a>
                                                    {/if}

                                                    <button type="submit" class="btn blue">Submit</button>

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

    <input type="hidden" id="embryology_report" value="1">


</div>




