<?php /* Smarty version Smarty-3.1.11, created on 2024-08-28 02:02:46
         compiled from "../views/obgy/antenalvisit/archive.html" */ ?>
<?php /*%%SmartyHeaderCode:126017087366cee7b61347d1-52272417%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8a9f28e373328b97c8a90c8e0a57ee4adbbb235e' => 
    array (
      0 => '../views/obgy/antenalvisit/archive.html',
      1 => 1542464108,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '126017087366cee7b61347d1-52272417',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'patientid' => 0,
    'oldantenalCount' => 0,
    'oldantenal' => 0,
    'i' => 0,
    'myobj' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cee7b618ded6_14256724',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cee7b618ded6_14256724')) {function content_66cee7b618ded6_14256724($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12" style="padding-right: 0px; padding-left: 0px;">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height: 5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Old Antenatal visits
                        </div>
                        <div class="actions">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/antenalvisit.php?patientid=<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
" class="btn btn-default btn-sm">
                                Antenatal visits
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body">

                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <td>#</td>
                                    <td>Pregnancy No.</td>
                                </tr>
                            </thead>
                            <tbody>
                                <?php if ($_smarty_tpl->tpl_vars['oldantenalCount']->value>0){?>
                                <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                                <?php  $_smarty_tpl->tpl_vars['myobj'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myobj']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['oldantenal']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myobj']->key => $_smarty_tpl->tpl_vars['myobj']->value){
$_smarty_tpl->tpl_vars['myobj']->_loop = true;
?>
                                <tr>
                                    <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                    <td style="padding: 3px;">
                                        <div align="center">
                                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/antenalvisit.php?ac=pregdetail&patientid=<?php echo $_smarty_tpl->tpl_vars['patientid']->value;?>
&pregno=<?php echo $_smarty_tpl->tpl_vars['myobj']->value->g;?>
">
                                                Pregnancy Data NO.  <?php echo $_smarty_tpl->tpl_vars['myobj']->value->g;?>

                                            </a>
                                        </div>

                                    </td>
                                </tr>
                                <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                                <?php } ?>
                                <?php }else{ ?>
                                <tr>
                                    <td style="padding: 3px;" colspan="2">
                                        <div align="center">
                                            NO DATA
                                        </div>

                                    </td>
                                </tr>
                                <?php }?>
                            </tbody>
                        </table>




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

    </div>

</div><?php }} ?>