<?php /* Smarty version Smarty-3.1.11, created on 2024-10-08 10:29:57
         compiled from "../views/obgy/reports/visit/visitsearch.html" */ ?>
<?php /*%%SmartyHeaderCode:6434038636704df75c88297-52833320%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b784eef6db70ac9c5dd018937ea11c501b526314' => 
    array (
      0 => '../views/obgy/reports/visit/visitsearch.html',
      1 => 1701986248,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6434038636704df75c88297-52833320',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'showBranchCol' => 0,
    'visitsUpdates' => 0,
    'i' => 0,
    'hosturl' => 0,
    'row' => 0,
    'lastRecord' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6704df75d51c79_48293761',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6704df75d51c79_48293761')) {function content_6704df75d51c79_48293761($_smarty_tpl) {?><div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false" 
     id="upVisitsModel" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close closeDrug" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title txtc">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form class="form-horizontal" role="form" action="" method="post" id="gynaDrugs" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">

                                    <div class="portlet-body  scroll_y showNum isheight">
                                        <table class="table table-striped table-hover table-bordered" style="margin: 1%; width: 98%;">
                                            <thead>
                                                <tr>
                                                    <th class="wds9 txtc">#</th>
                                                    <th>   Patient Name</th>
                                                    <th>   Patient No.</th>
                                                    <th>   Visit Date</th>
                                                    <th>    User</th>
                                                    <?php if ($_smarty_tpl->tpl_vars['showBranchCol']->value==1){?>   <th> Branch </th><?php }?> 
                                                    <th>   Edit Date</th>
                                                    <th>    Notes</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(0, null, 0);?>
                                                <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['visitsUpdates']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>


                                                <tr>
                                                    <td> <?php if ($_smarty_tpl->tpl_vars['i']->value==0){?> Original <?php }else{ ?> Update <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
 <?php }?></td>
                                                    <td>
                                                        <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patienthistory.php?ac=show&patientid=<?php echo $_smarty_tpl->tpl_vars['row']->value['patientid'];?>
" target="_new">
                                                            <?php if ($_smarty_tpl->tpl_vars['row']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['row']->value['husdandname'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['row']->value['for_husband']==2){?>
                                                            طفل    /  <?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['row']->value['wifename'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['row']->value['statusno'];?>
</td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['row']->value['visitdate'];?>
 </td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['row']->value['userName'];?>
</td>
                                                    <?php if ($_smarty_tpl->tpl_vars['showBranchCol']->value==1){?>    <td>  <?php echo $_smarty_tpl->tpl_vars['row']->value['branchName'];?>
</td><?php }?> 
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['row']->value['editDate'];?>
</td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['row']->value['notes'];?>
</td>
                                                </tr>
                                                <?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 } ?>

                                                <?php if ($_smarty_tpl->tpl_vars['i']->value>0){?>
                                                <tr>
                                                    <td>  Update <?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['lastRecord']->value['patientid'];?>
" target="_new">
                                                            <?php if ($_smarty_tpl->tpl_vars['lastRecord']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['husdandname'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['lastRecord']->value['for_husband']==2){?>
                                                            طفل    /  <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['wifename'];?>

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['wifename'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['statusno'];?>
</td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['visitdate'];?>
 </td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['userName'];?>
</td>
                                                    <?php if ($_smarty_tpl->tpl_vars['showBranchCol']->value==1){?>    <td>  <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['branchName'];?>
</td><?php }?> 
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['editDate'];?>
</td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['notes'];?>
</td>
                                                </tr>
                                                <?php }?>


                                                <?php if ($_smarty_tpl->tpl_vars['lastRecord']->value['deleted']==1){?>
                                                <tr style="    background-color: #f6bfc4;">
                                                    <td>  Delete</td>
                                                    <td>
                                                        <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patienthistory.php?ac=show&patientid=<?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['patientid'];?>
" target="_new">
                                                            <?php if ($_smarty_tpl->tpl_vars['lastRecord']->value['for_husband']==1){?>
                                                            <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['husdandname'];?>

                                                            <?php }elseif($_smarty_tpl->tpl_vars['lastRecord']->value['for_husband']==2){?>
                                                            طفل    /  <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['wifename'];?>

                                                            <?php }else{ ?>
                                                            <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['wifename'];?>

                                                            <?php }?>
                                                        </a>
                                                    </td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['statusno'];?>
</td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['visitdate'];?>
 </td>
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['deleteUsName'];?>
</td>
                                                    <?php if ($_smarty_tpl->tpl_vars['showBranchCol']->value==1){?>    <td> </td><?php }?> 
                                                    <td> <?php echo $_smarty_tpl->tpl_vars['lastRecord']->value['date_delete'];?>
</td>
                                                    <td></td>
                                                </tr>
                                                <?php }?>

                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div><?php }} ?>