<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 07:45:40
         compiled from "../views/obgy/antenalvisit/showPrescriptions.html" */ ?>
<?php /*%%SmartyHeaderCode:209827160766cc9514b670e0-45670783%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c3d349c45129ea379464f54185e0c4a07fe5bf17' => 
    array (
      0 => '../views/obgy/antenalvisit/showPrescriptions.html',
      1 => 1545811384,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '209827160766cc9514b670e0-45670783',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'archive' => 0,
    'dates' => 0,
    'date' => 0,
    'countWife' => 0,
    'countHusband' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc9514bf1a62_16310547',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc9514bf1a62_16310547')) {function content_66cc9514bf1a62_16310547($_smarty_tpl) {?>

<?php if ($_smarty_tpl->tpl_vars['archive']->value==1){?>
<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">
                Print
            </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 printPre" data-for="0" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="antenalvisit"> Print </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 printPre" data-for="1" data-date="<?php echo $_smarty_tpl->tpl_vars['date']->value['date'];?>
" data-controller="antenalvisit"> Print </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 }else{ ?>
<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="antenalvisit"> 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="antenalvisit"> 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="mainantenentaldrugs">
                    <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="antenalvisit"> 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="antenalvisit"> 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="mainantenentaldrugs">
                    <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 }?><?php }} ?>