<?php /* Smarty version Smarty-3.1.11, created on 2025-06-21 18:49:26
         compiled from "../views/obgy/case_summary/obstetric.html" */ ?>
<?php /*%%SmartyHeaderCode:6119319426856d48646b525-70903535%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '24147a74820dfd58340e10f35554d4ffd14f70ec' => 
    array (
      0 => '../views/obgy/case_summary/obstetric.html',
      1 => 1674625826,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6119319426856d48646b525-70903535',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'summaryObstetric' => 0,
    'summaryObstetricAbortion' => 0,
    'obstetricAbortion' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6856d486492fa3_23217391',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6856d486492fa3_23217391')) {function content_6856d486492fa3_23217391($_smarty_tpl) {?><div class="portlet box purple">
    <div class="portlet-title">
        <div class="caption">Obstetric History </div>
        <div class="actions"></div>
        <div class="tools">
            <a href="#" class="collapse" title="تصغير / تكبير"></a>
        </div>
    </div>
    <div class="portlet-body">
        <div class="row">
            <div id="ultrasoundgynaDiv">
                <div class="row">
                    <div class="portlet-body form" >
                        <form>
                            <div class="form-body">
                                <table>
                                    <thead>
                                        <tr>
                                            <th class="wds2"> G  </th>  
                                            <th class="wds2"> P </th>
                                            <th class="wds2"> C.S  </th>  
                                            <th class="wds2"> AB  </th>  
                                            <th class="wds2"> Ectopic  </th> 
                                            <th class="wds2"> V.mole  </th> 
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" G " name="g"
                                                       data-colName="g" data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" 
                                                       data-tableName="summary_obstetric" value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->g;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" P " name="p"
                                                       data-colName="p" data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" 
                                                       data-tableName="summary_obstetric" value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->p;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" C.S " name="cs"
                                                       data-colName="cs" data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" 
                                                       data-tableName="summary_obstetric" value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->cs;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" AB " name="ab"
                                                       data-colName="ab" data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" 
                                                       data-tableName="summary_obstetric" value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->ab;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" Ectopic " name="ectopicd"
                                                       data-colName="ectopicd" data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" 
                                                       data-tableName="summary_obstetric" value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->ectopicd;?>
"/>
                                            </td>
                                            <td>
                                                <input type="text" class="amrpop form-control updateElement" 
                                                       placeholder=" V.mole " name="vmole"
                                                       data-colName="vmole" data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" 
                                                       data-tableName="summary_obstetric" value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->vmole;?>
"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>Abnormal Deliveries :  </th>
                                            <td><?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->cs;?>
</td> 
                                            <th> Date Of Last Delivery  : </th>  
                                            <td>
                                                <input type="text" placeholder="Last Delivery" name="last_delivery"  
                                                       class="form-control updateElement datepicker"  data-colName="last_delivery"  
                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->id;?>
" data-tableName="summary_obstetric" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->last_delivery;?>
"/>
                                            </td> 
                                            <th>Abortions:  </th>
                                            <td> <?php echo $_smarty_tpl->tpl_vars['summaryObstetric']->value->ab;?>
  </td> 
                                        </tr>

                                </table>

                                <table>
                                    <thead>
                                        <tr>
                                            <th colspan="3">Abortion Details :  </th>
                                            <th> <a  class="btn btn-success btn-xs" id="sumAbortionAdd" > Add </a></th>
                                        </tr>
                                    </thead>
                                    <tbody id="sumAbortionContainer">
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['obstetricAbortion'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['obstetricAbortion']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['summaryObstetricAbortion']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['obstetricAbortion']->key => $_smarty_tpl->tpl_vars['obstetricAbortion']->value){
$_smarty_tpl->tpl_vars['obstetricAbortion']->_loop = true;
?>
                                        <tr>
                                            <th>Gestational age :  </th>
                                            <td>
                                                <input type="text" placeholder="Gestational age" name="obstrduration"  
                                                       class="form-control updateElement"  data-colName="obstrduration"  
                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['obstetricAbortion']->value->id;?>
" data-tableName="summary_obstetric_abortion" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['obstetricAbortion']->value->obstrduration;?>
"
                                                       style="    display: inline-block; width: 85%"/> W
                                            </td> 
                                            <th>Date Of  Abortion :  </th>
                                            <td>
                                                <input type="text" placeholder="Date Of  Abortion" name="obsdate"  
                                                       class="form-control updateElement datepicker"  data-colName="obsdate"  
                                                       data-id="<?php echo $_smarty_tpl->tpl_vars['obstetricAbortion']->value->id;?>
" data-tableName="summary_obstetric_abortion" 
                                                       value="<?php echo $_smarty_tpl->tpl_vars['obstetricAbortion']->value->obsdate;?>
"/>
                                            </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>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>
<?php }} ?>