<?php /* Smarty version Smarty-3.1.11, created on 2025-01-05 07:57:02
         compiled from "../views/obgy/reports/combinedsearch.html" */ ?>
<?php /*%%SmartyHeaderCode:1161686917677aabce3b4624-90536388%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3568e68fc4ff165fc174161c10a05b5bc7f49545' => 
    array (
      0 => '../views/obgy/reports/combinedsearch.html',
      1 => 1542464114,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1161686917677aabce3b4624-90536388',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'allPatients' => 0,
    'allData' => 0,
    'percentage' => 0,
    'i' => 0,
    'hosturl' => 0,
    'data' => 0,
    'fAge' => 0,
    'toage' => 0,
    'operation' => 0,
    'termination' => 0,
    'diagnosis' => 0,
    'diagnosisant' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_677aabce49ce38_56287437',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_677aabce49ce38_56287437')) {function content_677aabce49ce38_56287437($_smarty_tpl) {?><table class="table table-hover portlet light bg-inverse" >
    <tr>
        <th>Total Patients</th>
        <td><?php echo count($_smarty_tpl->tpl_vars['allPatients']->value);?>
</td>
        <th>Total Result</th>
        <td><?php echo count($_smarty_tpl->tpl_vars['allData']->value);?>
</td>
        <th>Percentage</th>
        <td><?php echo $_smarty_tpl->tpl_vars['percentage']->value;?>
%</td>
    </tr>
</table>
<table class="table table-hover portlet light bg-inverse" id="repTable">
    <thead>
        <tr>
            <th>#</th>
            <th>
                Patient Name
            </th>
            <th>Patient Number</th>
            <th>Husband Name</th>
            <th>
                Age
            </th>

        </tr>
    </thead>
    <tbody>
        <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allData']->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;
?>
        <tr class="odd gradeX">
            <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
            <td>
                <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patienthistory.php?ac=show&patientid=<?php echo $_smarty_tpl->tpl_vars['data']->value['patientid'];?>
" target="_new"><?php echo $_smarty_tpl->tpl_vars['data']->value['wifename'];?>
</a>
            </td>
            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['patientid'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['husdandname'];?>
</td>
            <td>
                <?php echo $_smarty_tpl->tpl_vars['data']->value['wifeage'];?>

            </td>

        </tr>
        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_tmp1, null, 0);?>
        <?php } ?>
    </tbody>
</table>




<div id="long" class="modal fade modal-scroll" tabindex="-1" data-replace="true">
    <div class="modal-dialog wds75">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close hidden-print" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body printtable" id="printd">
                <center><h4 class="modal-title">Combined Report</h4></center>
                <div class="clearfix"></div>
                <table class="table table-hover portlet light bg-inverse" >
                    <tr>
                        <th>Search By </th>
                        <td colspan="5"><?php if (!empty($_smarty_tpl->tpl_vars['fAge']->value)){?> from age: <?php echo $_smarty_tpl->tpl_vars['fAge']->value;?>
    --<?php }?><?php if (!empty($_smarty_tpl->tpl_vars['toage']->value)){?> to age: <?php echo $_smarty_tpl->tpl_vars['toage']->value;?>
  -- <?php }?><?php if (!empty($_smarty_tpl->tpl_vars['operation']->value)){?> operation: <?php echo $_smarty_tpl->tpl_vars['operation']->value;?>
   -- <?php }?><?php if (!empty($_smarty_tpl->tpl_vars['termination']->value)){?> termination: <?php echo $_smarty_tpl->tpl_vars['termination']->value;?>
   --  <?php }?><?php if (!empty($_smarty_tpl->tpl_vars['diagnosis']->value)){?>diagnosis: <?php echo $_smarty_tpl->tpl_vars['diagnosis']->value;?>
    -- <?php }?><?php if (!empty($_smarty_tpl->tpl_vars['diagnosisant']->value)){?>diagnosis antenal: <?php echo $_smarty_tpl->tpl_vars['diagnosisant']->value;?>
<?php }?></td>
                    </tr>
                    <tr>
                        <th>Total Patients</th>
                        <td><?php echo count($_smarty_tpl->tpl_vars['allPatients']->value);?>
</td>
                        <th>Total Result</th>
                        <td><?php echo count($_smarty_tpl->tpl_vars['allData']->value);?>
</td>
                        <th>Percentage</th>
                        <td><?php echo $_smarty_tpl->tpl_vars['percentage']->value;?>
%</td>
                    </tr>
                </table>
                <center><h4 class="modal-title">Patients</h4></center>
                <table class="table table-hover portlet light bg-inverse" id="controllpropr">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>
                                Patient Name
                            </th>
                            <th>Patient Number</th>
                            <th>Husband Name</th>
                            <th>
                                Age
                            </th>

                        </tr>
                    </thead>
                    <tbody>
                        <?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable("1", null, 0);?>
                        <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allData']->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;
?>
                        <tr class="odd gradeX">
                            <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                            <td>
                                <?php echo $_smarty_tpl->tpl_vars['data']->value['wifename'];?>

                            </td>
                            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['patientid'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['data']->value['husdandname'];?>
</td>
                            <td>
                                <?php echo $_smarty_tpl->tpl_vars['data']->value['wifeage'];?>

                            </td>

                        </tr>
                        <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['i']->value+1;?>
<?php $_tmp2=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["i"] = new Smarty_variable($_tmp2, null, 0);?>
                        <?php } ?>
                </table>
            </div>
        </div>
    </div>
</div>




<script type="text/javascript" >
    $('#repTable').dataTable();
</script>
<?php }} ?>