<?php /* Smarty version Smarty-3.1.11, created on 2024-11-09 18:54:05
         compiled from "../views/obgy/reports/expectedsearch.html" */ ?>
<?php /*%%SmartyHeaderCode:1226668393672f93ad3870e0-59275811%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5207cbc793274002371b932f21c9d47812666f96' => 
    array (
      0 => '../views/obgy/reports/expectedsearch.html',
      1 => 1489842048,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1226668393672f93ad3870e0-59275811',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'allData' => 0,
    'i' => 0,
    'hosturl' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_672f93ad435530_98908724',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_672f93ad435530_98908724')) {function content_672f93ad435530_98908724($_smarty_tpl) {?><table class="table table-hover portlet light bg-inverse" id="repTable">
    <thead>
        <tr>
            <th>No.</th>
            <th>
                Patient Name
            </th>
            <th>
                Patient Number
            </th>
            <th>
                Husband Name
            </th>
            <th>Expected delivery date</th>
            <th>Contact</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->info->wifename;?>
</a>
            </td>
            <td>
                <?php echo $_smarty_tpl->tpl_vars['data']->value->info->statusno;?>

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

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

            </td>
            <td>
                <?php echo $_smarty_tpl->tpl_vars['data']->value->info->mobile;?>
 - <?php echo $_smarty_tpl->tpl_vars['data']->value->info->phone;?>

            </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">Expected Delivery Date</h4></center>
                <table class="table table-hover portlet light bg-inverse" >
                    <thead>
                        <tr>
                            <th width="1%">No.</th>
                            <th width="30%">
                                Patient Name
                            </th>
                            <th width="30%">
                                Husband Name
                            </th>
                            <th>Expected date</th>
                            <th>Contact</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->info->wifename;?>

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

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

                            </td>
                            <td>
                                <?php echo $_smarty_tpl->tpl_vars['data']->value->info->mobile;?>
 <br/> <?php echo $_smarty_tpl->tpl_vars['data']->value->info->phone;?>

                            </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 } ?>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn hidden-print">Close</button>
                <button type="button" id="print1" class="btn red hidden-print">print</button>
            </div>
        </div>
    </div>
</div>



<script type="text/javascript" >
    $('#repTable').dataTable({
        // Internationalisation. For more info refer to http://datatables.net/manual/i18n

        // Uncomment below line("dom" parameter) to fix the dropdown overflow issue in the datatable cells. The default datatable layout
        // setup uses scrollable div(table-scrollable) with overflow:auto to enable vertical scroll(see: assets/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js).
        // So when dropdowns used the scrollable div should be removed.
        //"dom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r>t<'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>",

        //"bStateSave": true, // save datatable state(pagination, sort, etc) in cookie.

        "lengthMenu": [
            [15, 20, -1],
            [15, 20, "All"] // change per page values here
        ],
        // set the initial value
        "pageLength": 15,
        "language": {
            "lengthMenu": " _MENU_",
            "aria": {
                "sortAscending": ": Used to order Ascending",
                "sortDescending": ": Used to order Descending"
            },
            "emptyTable": "NO data",
            "info": "Show _START_ From _END_ To _TOTAL_ item",
            "infoFiltered": "(Filter is _MAX_ from total)",
            "lengthMenu": "_MENU_",
            "search": "",
            "zeroRecords": "No search data"
        },
        "columnDefs": [{// set default column settings
            'orderable': true,
            'targets': [0]
        }],
        "order": [
            [4, "asc"]
        ] // set first column as a default sort by asc
    });
</script>

<?php }} ?>