<?php /* Smarty version Smarty-3.1.11, created on 2025-01-05 07:57:06
         compiled from "../views/obgy/reports/combinedprint.html" */ ?>
<?php /*%%SmartyHeaderCode:481393183677aabd2de31e4-45738439%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a9e25148b29f1b6497511453c98622d08284fcb1' => 
    array (
      0 => '../views/obgy/reports/combinedprint.html',
      1 => 1542464114,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '481393183677aabd2de31e4-45738439',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'fAge' => 0,
    'toage' => 0,
    'operation' => 0,
    'termination' => 0,
    'diagnosis' => 0,
    'diagnosisant' => 0,
    'allPatients' => 0,
    'allData' => 0,
    'percentage' => 0,
    'i' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_677aabd2ea2d96_89382792',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_677aabd2ea2d96_89382792')) {function content_677aabd2ea2d96_89382792($_smarty_tpl) {?>

<style>


    .prntbl2 {
        padding:0px !important;
        width:95% !important;
        margin:0px auto !important;
    }.prntbl2 table{
        border-collapse: collapse !important;
        width:100% !important;
        margin:0px !important;
        padding:0px !important;
    }
    .prntbl2 table th {
        background-color: #2D2D2D !important;
        background: #2D2D2D !important;
        border:0px solid #000000 !important;
        border-width:0px 0px 1px 1px !important;
        font-size:15px !important;
        font-family:Arial !important;
        font-weight:bold !important;
        color: #FFFFFF !important;
        text-align: center !important;
    }.prntbl2 tr:hover td{

    }
    .prntbl2 tr:nth-child(odd){background-color: #E0E0E0 !important;}
    .prntbl2 tr:nth-child(even)    { background-color:#ffffff !important; }
    .prntbl2 td{
        border:1px solid #000000 !important;
        padding: 0px 3px !important;
        font-size: 13px !important;
        font-family: tahoma !important;
        color:#000000 !important;
        text-align: left !important;
    }


    .prntbl2 th, .prntbl2 tt, .prntbl2 td {
        line-height: 20px !important;
        padding: 1px 5px !important;


    }

    .prntbl2 span {
        font-weight: 700;
    }

</style>


<div class="prntbl2">
    
    <style>


        .prntbl2 {
            padding:0px !important;
            width:95% !important;
            margin:0px auto !important;
        }.prntbl2 table{
            border-collapse: collapse !important;
            width:100% !important;
            margin:0px !important;
            padding:0px !important;
        }
        .prntbl2 table th {
            background-color: #2D2D2D !important;
            background: #2D2D2D !important;
            border:0px solid #000000 !important;
            border-width:0px 0px 1px 1px !important;
            font-size:15px !important;
            font-family:Arial !important;
            font-weight:bold !important;
            color: #FFFFFF !important;
            text-align: center !important;
        }.prntbl2 tr:hover td{

        }
        .prntbl2 tr:nth-child(odd){background-color: #E0E0E0 !important;}
        .prntbl2 tr:nth-child(even)    { background-color:#ffffff !important; }
        .prntbl2 td{
            border:1px solid #000000 !important;
            padding: 0px 3px !important;
            font-size: 13px !important;
            font-family: tahoma !important;
            color:#000000 !important;
            text-align: left !important;
        }


        .prntbl2 th, .prntbl2 tt, .prntbl2 td {
            line-height: 20px !important;
            padding: 1px 5px !important;


        }

        .prntbl2 span {
            font-weight: 700;
        }

    </style>

    
    <div class="prntbl2">
        <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>
        <br />
        <table class="table table-hover portlet light bg-inverse" id="repTable">
            <thead>
                <tr>
                    <th style="width: 10px !important;">#</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">
                    <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 $_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 style="width: 10px !important;">#</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">
                                    <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>
        

    </div><?php }} ?>