<?php /* Smarty version Smarty-3.1.11, created on 2024-11-06 05:01:42
         compiled from "../views/obgy/instruction/show.html" */ ?>
<?php /*%%SmartyHeaderCode:1448753154672b68b6d781e2-84636441%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '523d3851cf3f324af99bf0244c94c394c71d856c' => 
    array (
      0 => '../views/obgy/instruction/show.html',
      1 => 1542464114,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1448753154672b68b6d781e2-84636441',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'patientId' => 0,
    'hosturl' => 0,
    'controllname' => 0,
    'showElems' => 0,
    'single' => 0,
    'm' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_672b68b6e40a19_11359642',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_672b68b6e40a19_11359642')) {function content_672b68b6e40a19_11359642($_smarty_tpl) {?>
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->




                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>Instruction
                        </div>
                        <div class="actions">

                            <?php if ($_smarty_tpl->tpl_vars['patientId']->value){?>
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=showtransfer&patientid=<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" class="btn btn-default btn-sm">
                                <i class="fa fa-arrow-circle-left"></i> Refer to hospital </a>
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?patientid=<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> Add </a>
                            <?php }else{ ?>
                            <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> Add </a>
                            <?php }?>
                            <a href="#" class="btn btn-default btn-sm" id="printInstruction">
                                <i class="fa fa-print"></i> Print </a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <input type="hidden" id="patientId" value="<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
">
                        <table class="table table-striped table-bordered table-hover" id="sample_3">
                            <thead>
                                <tr>
                                    <th class="table-checkbox">
                                        <input type="checkbox" class="group-checkable" data-set="#sample_3 .checkboxes"/>
                                    </th>
                                    <th width="7%">No</th>
                                    <th>Name</th>
                                    <th width="5%">Print</th>
                                    <th width="5%">Edit</th>
                                    <th width="5%">Delete</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $_smarty_tpl->tpl_vars['m'] = new Smarty_variable(1, null, 0);?>
                                <?php  $_smarty_tpl->tpl_vars['single'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['single']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['showElems']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['single']->key => $_smarty_tpl->tpl_vars['single']->value){
$_smarty_tpl->tpl_vars['single']->_loop = true;
?>
                                <tr class="odd gradeX">
                                    <td>
                                        <input type="checkbox" class="checkboxes inst" data-intId="<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
" value="1"/>
                                    <td><?php echo $_smarty_tpl->tpl_vars['m']->value;?>
</td>
                                    <td><a href="#" class="showInst" data-print="no" data-intId="<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['single']->value['name'];?>
</a></td>

                                    <td><a href="#" class="btn btn-default btn-xs showInst" data-print="yes" data-intId="<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
"><i class="fa fa-print"></i> Print </a></td>
                                    <?php if ($_smarty_tpl->tpl_vars['patientId']->value){?>
                                    <td>
                                        <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=edit&id=<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
&patientid=<?php echo $_smarty_tpl->tpl_vars['patientId']->value;?>
" class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    <?php }else{ ?>
                                    <td>
                                        <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
.php?ac=edit&id=<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
" class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    <?php }?>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="<?php echo $_smarty_tpl->tpl_vars['single']->value['id'];?>
" data-link="<?php echo $_smarty_tpl->tpl_vars['controllname']->value;?>
"  data-fn="del"><i class="fa fa-times"></i>Delete </a>
                                    </td>

                                </tr>
                                <?php $_smarty_tpl->_capture_stack[0][] = array('default', 'm', null); ob_start(); ?><?php echo $_smarty_tpl->tpl_vars['m']->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>
                    </div>
                </div>
            </div>
        </div>

        <div  class="">

            <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="instDetail">
                <div class="modal-dialog  modal-lg wds50">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                            <h4 class="modal-title">  </h4>
                        </div>
                        <div class="modal-body">
                            <div class="portlet-body form">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="portlet blue-hoki box" id="printIns">
                                            <div class="portlet-title">
                                                <div class="caption bold">   </div>
                                            </div>
                                            <div class="portlet-body">
                                                <div id="instPrint">


                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn default showInst1" id="printtt">  Print  </button>
                                        <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>




<?php }} ?>