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

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

    tr:nth-child(even) {
        background-color: #dddddd;
    }
    .col-md-12{
        margin: 5px;
        padding: 2px 5px;
    }
</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>Ovum Pick Up
                        </div>
                        <div class="actions">

                            {if $patientId}

                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=index&&patientid={$patientId}" class="btn btn-default btn-sm">
                                Show Reports  </a>
                            {else}
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=index" 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=updateitMine&patientid={$patientId}" method="post" enctype="multipart/form-data">
                                {else}
                                <form action="{$hosturl}/controllers/{$controllname}.php?ac=updateitMine" method="post" enctype="multipart/form-data">
                                    {/if}
                                    <div class="form-body">
                                        <div class="col-md-12">
                                            <label class="col-md-12 control-label">
                                                Examination
                                            </label>

                                            <div class="form-group col-md-4">
                                                <label class="col-md-4 txtl" style="margin-left: 10px;">Consultant :</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-4">
                                                <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-4">
                                                <label class="col-md-4 txtl" style="margin-left: 10px;">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 style="text-align: center">
                                                    <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>
                                                                <label>{$editElement->oocyte_retrived}</label>
                                                            </td>
                                                            <td>
                                                                <label>{$editElement->mii}</label>
                                                            </td>
                                                            <td>
                                                                <label>{$editElement->mi}</label>
                                                            </td>
                                                            <td>
                                                                <label>{$editElement->gv}</label>
                                                            </td>
                                                            <td>
                                                                <label>{$editElement->atretic}</label>
                                                            </td>
                                                            <td>
                                                                <label>{$editElement->empty_follicle}</label>
                                                            </td>

                                                        </tr>
                                                    </tbody>

                                                </table>


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



                                            <div class="clearfix"></div>
                                            <label class="col-md-2 control-label" style="margin-left: 10px;">
                                                Mock transfer:
                                            </label>
                                            <div class="col-md-3">
                                                <div class="form-group">
                                                    <label class="col-md-4 control-label" >Ut/cx</label>
                                                    <div class="col-md-7" style="padding-left: 7px;">
                                                        <input type="text" class="form-control"  value="{$editElement->ut_cx}" name="ut_cx" />
                                                    </div>
                                                </div>
                                            </div>


                                            <div class="col-md-3">
                                                <div class="form-group">
                                                    <label class="col-md-4 control-label">Position</label>
                                                    <div class="col-md-7">
                                                        <select class="form-control allupdateselect avf avf_selected" id="avf" name="avf_rvf" data-placeholder="Select..." select-tableName="avf" data-colName="avf">
                                                            <option></option>
                                                            {foreach $avf as $sname}
                                                            <option value="{$sname.id}" {if $sname.id == $editElement->avf_rvf}selected{/if}>{$sname.avf}</option>
                                                            {/foreach}
                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                        <div class="form-control-focus">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3">
                                                <div class="form-group">
                                                    <label class="col-md-5 control-label">easy/difficult</label>
                                                    <div class="col-md-7">
                                                        <select class="form-control allupdateselect easy_difficult easydifficult" id="easy_difficult" name="easy_difficult" select-tableName="easydifficult" data-colName="easydifficult">
                                                            <option></option>
                                                            {foreach $easydifficult as $sname}
                                                            <option value="{$sname.id}" {if $sname.id == $editElement->easy_difficult}selected{/if}>{$sname.easydifficult}</option>
                                                            {/foreach}
                                                            <option value="-2" class="deleteoptincompo">Delete</option>
                                                        </select>
                                                        <div class="form-control-focus">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="clearfix"></div>
                                            <div class="col-md-12">
                                                <label class="col-md-2 control-label">
                                                    Postoperative treatment:
                                                </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control " rows="2" id="postoperative_treatment" name="postoperative" placeholder="Enter more text" data-id="" data-colName="" data-tableName="">{$editElement->postoperative}</textarea>
                                                    <div class="form-control-focus">
                                                    </div>
                                                </div>
                                            </div>
                                            <br/>
                                            <div class="clearfix"></div>
                                            <div class="col-md-12">
                                                <label class="col-md-2 control-label">
                                                    Complications:
                                                </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control " rows="2"  id='complications' name='complications' placeholder="Enter more text" data-id="" data-colName="" data-tableName="" >{$editElement->complications}</textarea>
                                                    <div class="form-control-focus">
                                                    </div>
                                                </div>
                                            </div>
                                            <br/>
                                            <div class="clearfix"></div>

                                            <div class="col-md-12">
                                                <label class="col-md-2 control-label">
                                                    Notes:
                                                </label>
                                                <div class="col-md-10">
                                                    <textarea class="form-control " rows="2"  id='notes' name='notes' placeholder="Enter more text" data-id="" data-colName="" data-tableName="" >{$editElement->notes}</textarea>
                                                    <div class="form-control-focus">
                                                    </div>
                                                </div>
                                            </div>
                                            <br/>
                                            <div class="clearfix"></div>


                                        </div>
                                        <input type="hidden" id="id" name="id" value="{$editElement->id}" />

                                        <br> <br>
                                        <br> <br>
                                        <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=index&patientid={$patientId}">Cancel</a>
                                                    {else}
                                                    <a class="btn default" href="{$hosturl}/controllers/{$controllname}.php?ac=index">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">
    <input type="hidden" value="1" id="ovum_transfer">

    <div class="bootbox modal fade bootbox-alert in" tabindex="-1" role="dialog" aria-hidden="false"  id="edit_model">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                    <h4 class="modal-title"> Edit </h4>
                </div>
                <div class="modal-body">
                    <div class="portlet-body form">
                        <form action="" id="" method="post" class="form-horizontal  emptyform" >
                            <div class="form-body all" >
                                <!------===========================================------->
                                <div class="form-group">
                                    <label class="col-md-1 control-label"> </label>
                                    <div class="col-md-10">
                                        <div id="alldatadiv" class="" > </div>
                                    </div>
                                    <label class="col-md-1 control-label"> </label>
                                </div>

                                <!------===========================================------->

                                <!------===========================================------->
                                <div class="modal-footer">

                                    <button type="submit" id="amountcloseinput"   class="btn default" data-dismiss="modal">Close</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- /.modal-content -->
            </div>
        </div>
    </div>


</div>




