<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:39:34
         compiled from "../views/obgy/gyna/showPrescriptions.html" */ ?>
<?php /*%%SmartyHeaderCode:14968011666cc93a6f17b55-58286522%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ccfc16a8f479358bd2db1339114b0dd78d7772bb' => 
    array (
      0 => '../views/obgy/gyna/showPrescriptions.html',
      1 => 1545811384,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14968011666cc93a6f17b55-58286522',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'dates' => 0,
    'date' => 0,
    'countWife' => 0,
    'countHusband' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc93a7042d00_34875165',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc93a7042d00_34875165')) {function content_66cc93a7042d00_34875165($_smarty_tpl) {?><table class="table table-striped table-hover table-bordered" id="presTable">
    <thead>
        <tr>
            <th class="col-md-1">
                Date
            </th>
            <th  class="col-md-1">
                Drug For
            </th>
            <th>
                Drug Name
            </th>

            <th class="col-md-1">
                Edit
            </th>
            <th class="col-md-1">
                Print
            </th>
            <th class="col-md-1">
                Delete
            </th>

        </tr>
    </thead>
    <tbody>
        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
        <?php  $_smarty_tpl->tpl_vars['date'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['date']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dates']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['date']->key => $_smarty_tpl->tpl_vars['date']->value){
$_smarty_tpl->tpl_vars['date']->_loop = true;
?>
        <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['date']->value["date"]]>0){?>
        <tr>
            <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['date']->value["date"]]>0){?>  <td rowspan="2"> <?php }else{ ?> <td> <?php }?>
                <?php echo $_smarty_tpl->tpl_vars['date']->value["date"];?>

            </td>
            <td>
                Wife
            </td>
            <td>
                <?php echo $_smarty_tpl->tpl_vars['date']->value["drugdos"];?>

            </td>

            <td>
                <a href="javascript:;"  class="btn green btn-block btn-xs editPre" data-for="0"  data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Edit </a>
            </td>
            <td>
                <a href="javascript:;"  class="btn green btn-block btn-xs printPre" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Print </a>
            </td>
            <td>
                <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="gynadrugs">
                    <i class="fa fa-close"></i>
                </a>
            </td>

        </tr>
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['countHusband']->value[$_smarty_tpl->tpl_vars['date']->value["date"]]>0){?>
        <tr>
            <?php if ($_smarty_tpl->tpl_vars['countWife']->value[$_smarty_tpl->tpl_vars['date']->value["date"]]>0){?><?php }else{ ?>  <td> <?php echo $_smarty_tpl->tpl_vars['date']->value["date"];?>
</td><?php }?>
            <td>
                Husband
            </td>
            <td>
                <?php echo $_smarty_tpl->tpl_vars['date']->value["drugtype"];?>

            </td>

            <td>
                <a href="javascript:;"  class="btn green btn-block btn-xs editPre" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Edit </a>
            </td>
            <td>
                <a href="javascript:;"  class="btn green btn-block btn-xs printPre" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="gyna"> Print </a>
            </td>
            <td>
                <a class="btn grey-cascade btn-xs delNew" data-id="1" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" style=" float: left;" href="#" data-link="gyna" data-fn="del" data-tableName="gynadrugs">
                    <i class="fa fa-close"></i>
                </a>
            </td>

        </tr>
        <?php }?>
        <?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>




<!--
<script type="text/javascript" >
    $('#presTable').dataTable({"pageLength": 50,"order": [[0, "asc"]]});
</script>
--><?php }} ?>