<?php /* Smarty version Smarty-3.1.11, created on 2025-06-22 01:38:22
         compiled from "../views/obgy/embryology/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:13645256666857345e8850f0-28611550%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '477cd2863cf0685784bff0c06573828a00b5ac6d' => 
    array (
      0 => '../views/obgy/embryology/edit.html',
      1 => 1511179036,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13645256666857345e8850f0-28611550',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientId' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'one' => 0,
    'clinician' => 0,
    'editElement' => 0,
    'embryologist' => 0,
    'users' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6857345e94cc97_15293919',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6857345e94cc97_15293919')) {function content_6857345e94cc97_15293919($_smarty_tpl) {?><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">

                            <?php if ($_smarty_tpl->tpl_vars['patientId']->value){?>

                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=show&&patientid=<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" class="btn btn-default btn-sm">
                                Show Reports  </a>
                            <?php }else{ ?>
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=show" class="btn btn-default btn-sm">
                                Show Reports </a>
                            <?php }?>

                        </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>

                            <?php if ($_smarty_tpl->tpl_vars['patientId']->value){?>
                            <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=updateit&patientid=<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" method="post" enctype="multipart/form-data">
                                <?php }else{ ?>
                                <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=updateit" method="post" enctype="multipart/form-data">
                                    <?php }?>
                                    <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="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" >
                                                        <option value="">choose</option>
                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['clinician']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
"<?php if ($_smarty_tpl->tpl_vars['editElement']->value->clinician_id==$_smarty_tpl->tpl_vars['one']->value['user_id']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                        <?php } ?>

                                                    </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="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" >
                                                        <option value="">choose</option>
                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['embryologist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['editElement']->value->embryologist_id==$_smarty_tpl->tpl_vars['one']->value['user_id']){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                        <?php } ?>

                                                    </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="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" >
                                                        <option value="">choose</option>
                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                        <?php if ($_smarty_tpl->tpl_vars['one']->value['role_id']==6){?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['one']->value['user_id']==$_smarty_tpl->tpl_vars['editElement']->value->nurse_id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                        <?php }?>
                                                        <?php } ?>
                                                    </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="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->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' <?php if ($_smarty_tpl->tpl_vars['editElement']->value->day_of_transfer==1){?>selected<?php }?>>1</option>
                                                        <option value='2' <?php if ($_smarty_tpl->tpl_vars['editElement']->value->day_of_transfer==2){?>selected<?php }?>>2</option>
                                                        <option value='3' <?php if ($_smarty_tpl->tpl_vars['editElement']->value->day_of_transfer==3){?>selected<?php }?>>3</option>
                                                        <option value='4' <?php if ($_smarty_tpl->tpl_vars['editElement']->value->day_of_transfer==4){?>selected<?php }?>>4</option>
                                                        <option value='5' <?php if ($_smarty_tpl->tpl_vars['editElement']->value->day_of_transfer==5){?>selected<?php }?>>5</option>
                                                        <option value='6' <?php if ($_smarty_tpl->tpl_vars['editElement']->value->day_of_transfer==6){?>selected<?php }?>>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="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->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="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" >
                                                        <option value="">choose</option>
                                                        <?php  $_smarty_tpl->tpl_vars['one'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['one']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['users']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['one']->key => $_smarty_tpl->tpl_vars['one']->value){
$_smarty_tpl->tpl_vars['one']->_loop = true;
?>
                                                        <?php if ($_smarty_tpl->tpl_vars['one']->value['role_id']==7){?>
                                                        <option value="<?php echo $_smarty_tpl->tpl_vars['one']->value['user_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['one']->value['user_id']==$_smarty_tpl->tpl_vars['editElement']->value->anaesthetist_id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['one']->value['name'];?>
</option>
                                                        <?php }?>
                                                        <?php } ?>
                                                    </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="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->sperm_source;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="count"  value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->count;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="motility"  value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->motility;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="morphology"  value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->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="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->oocyte_retrived;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="mii" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->mii;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="mi" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->mi;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="gv" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->gv;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="atretic" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->atretic;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="empty_follicle" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->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="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->fertilized_egg;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="cleavage" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->cleavage;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_transfer_stage" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->embryo_transfer_stage;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_transfer_grade" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->embryo_transfer_grade;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_freezing_embryos" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->embryo_freezing_embryos;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_freezing_straws" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->embryo_freezing_straws;?>
"/>
                                                            </td>
                                                            <td>
                                                                <input type="text" class="form-control " name="embryo_freezing_day" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->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 <?php if ($_smarty_tpl->tpl_vars['editElement']->value->embryologyimg){?> src="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/../upload/embryologyimg/<?php echo $_smarty_tpl->tpl_vars['editElement']->value->embryologyimg;?>
"<?php }?>/></div>
                                                    <input type="hidden" id="imageurl" name="imageurl" value="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->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="<?php echo $_smarty_tpl->tpl_vars['editElement']->value->id;?>
" />

                                        <br> <br>

                                        <div class="form-actions">
                                            <div class="row">
                                                <div class="col-md-offset-2 col-md-10">
                                                    <?php if ($_smarty_tpl->tpl_vars['patientId']->value){?>
                                                    <a class="btn default" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=show&patientid=<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
">Cancel</a>
                                                    <?php }else{ ?>
                                                    <a class="btn default" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=show">Cancel</a>
                                                    <?php }?>

                                                    <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>




<?php }} ?>