<?php /* Smarty version Smarty-3.1.11, created on 2024-09-14 00:14:00
         compiled from "../views/obgy/gyna/infertility.html" */ ?>
<?php /*%%SmartyHeaderCode:36787809666e537b8cd75a9-39783938%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a62382426dacbbb892cf78c654283d029e4c8a4e' => 
    array (
      0 => '../views/obgy/gyna/infertility.html',
      1 => 1593645126,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '36787809666e537b8cd75a9-39783938',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'infertility' => 0,
    'plans' => 0,
    'i' => 0,
    'plan' => 0,
    'planItr' => 0,
    'types' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66e537b91e01d1_77438235',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66e537b91e01d1_77438235')) {function content_66e537b91e01d1_77438235($_smarty_tpl) {?><div class="modal-dialog  modal-lg wds95">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h4 class="modal-title">  </h4>
        </div>
        <div class="modal-body">
            <div class="portlet-body form">
                <form class="form-horizontal" role="form" action="" method="post" id="phform" enctype="multipart/form-data">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">
                                <div class="portlet-title">
                                    <div class="caption"> Infertility  </div>
                                </div>
                                <div class="portlet-body">

                                    <div class="form-body">
                                        <div class="row">

                                            <table class="table table-striped table-hover table-bordered">
                                                <tbody>
                                                    <tr>
                                                        <th>
                                                            Note
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="Note" data-colName="note" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->note;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>

                                            <table class="table table-striped table-hover table-bordered">
                                                <tbody id="planTable">
                                                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                                    <?php  $_smarty_tpl->tpl_vars['plan'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plan']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['plans']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['plan']->key => $_smarty_tpl->tpl_vars['plan']->value){
$_smarty_tpl->tpl_vars['plan']->_loop = true;
?>
                                                    <tr>
                                                        <th>
                                                            Plan <?php echo $_smarty_tpl->tpl_vars['i']->value;?>

                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement " id="plan<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-colName="plan" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['plan']->value->id;?>
"  data-tableName="gynainfertilityplan"  
                                                                   value="<?php echo $_smarty_tpl->tpl_vars['plan']->value->plan;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                        <td>
                                                            <?php if ($_smarty_tpl->tpl_vars['i']->value==1){?>
                                                            <span class="input-group-btn btn-right">
                                                                <button class="btn green-haze" type="button" id="addPlan" style="padding: 5px;"><i class="fa fa-plus"></i></button>
                                                            </span>
                                                            <?php }else{ ?>
                                                            <span class="input-group-btn btn-right">
                                                                <button class="btn red-intense deleteelement " type="button"  data-id="<?php echo $_smarty_tpl->tpl_vars['plan']->value->id;?>
" data-link="gyna"  data-fun="deldata" data-tableName="gynainfertilityplan" style="padding: 5px;"><i class="fa fa-close"></i></button>
                                                            </span>

                                                            <?php }?>
                                                        </td>
                                                    </tr>
                                                    <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'i', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
                                                    <?php } ?>
                                                </tbody>
                                            </table>

                                            <input type="hidden" id="planItr" value="<?php echo $_smarty_tpl->tpl_vars['planItr']->value;?>
"/>

                                            <table class="table table-striped table-hover table-bordered">
                                                <tbody>
                                                    <tr>
                                                        <th>
                                                            Date
                                                        </th>
                                                        <td class="wds10">
                                                            <input type="text" class="form-control updateElement datepicker" id="date" data-colName="date" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->date;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                        <th>
                                                            Type
                                                        </th>
                                                        <td class="wds40">
                                                            <select class="form-control  updateElement editModelSel  type"data-colName="type" 
                                                                    data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility"    id="type">
                                                                <option value=""></option>
                                                                <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
                                                                <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['infertility']->value->type==$_smarty_tpl->tpl_vars['data']->value->id){?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['data']->value->name;?>
</option>
                                                                <?php } ?>
                                                                <option value="0" class="deleteoptincompo">حذف</option>
                                                            </select>
                                                        </td>
                                                        <th>
                                                            Since
                                                        </th>
                                                        <td>
                                                            <div class="input-group">
                                                                <span class="input-group-addon">      Y   </span>
                                                                <input type="text" class="form-control updateElement" id="since_y" data-colName="since_y" 
                                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->since_y;?>
">
                                                                <div class="form-control-focus">
                                                                </div>

                                                                <span class="input-group-addon">      M   </span>
                                                                <input type="text" class="form-control updateElement" id="since_m" data-colName="since_m" 
                                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->since_m;?>
">
                                                                <div class="form-control-focus">
                                                                </div>
                                                            </div>
                                                        </td>
                                                        <th class="wds7" >
                                                            Total Stay
                                                        </th>
                                                        <td>
                                                            <div class="input-group">
                                                                <span class="input-group-addon">      Y   </span>
                                                                <input type="text" class="form-control updateElement" id="stay_y" data-colName="stay_y" 
                                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->stay_y;?>
">
                                                                <div class="form-control-focus">
                                                                </div>

                                                                <span class="input-group-addon">      M   </span>
                                                                <input type="text" class="form-control updateElement" id="stay_m" data-colName="stay_m" 
                                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->stay_m;?>
">
                                                                <div class="form-control-focus">
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>

                                            <table class="table table-striped table-hover table-bordered">
                                                <tbody>
                                                    <tr>
                                                        <th>
                                                            Husband Stay
                                                        </th>
                                                        <td class="wds60">
                                                            <input type="text" class="form-control updateElement" id="stay_hus" data-colName="stay_hus" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->stay_hus;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                        <th class="wds7" >
                                                            Abortion 
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="abortion" data-colName="abortion" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->abortion;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>

                                            <table class="table table-striped table-hover table-bordered">
                                                <tbody>
                                                    <tr>


                                                        <th>
                                                            Semen
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="semen" data-colName="semen" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->semen;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>

                                                        <th>
                                                            FSH
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="fsh" data-colName="fsh" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->fsh;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>

                                                        <th>
                                                            LH
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="lh" data-colName="lh" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->lh;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>

                                                        <th>
                                                            TSH
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="tsh" data-colName="tsh" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->tsh;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>

                                            <table class="table table-striped table-hover table-bordered">
                                                <tbody>
                                                    <tr>
                                                        <th>
                                                            Prl
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="prl" data-colName="prl" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->prl;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                        <th>
                                                            AMH
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="amh" data-colName="amh" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->amh;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                        <th class="wds7" >
                                                            HSG
                                                        </th>
                                                        <td>
                                                            <input type="text" class="form-control updateElement" id="hsg" data-colName="hsg" 
                                                                   data-id="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->id;?>
"  data-tableName="gynainfertility" value="<?php echo $_smarty_tpl->tpl_vars['infertility']->value->hsg;?>
">
                                                            <div class="form-control-focus">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>

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

        <div class="modal-footer">

            <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

        </div>

    </div>
</div>
<?php }} ?>