<?php /* Smarty version Smarty-3.1.11, created on 2023-08-30 14:49:36
         compiled from "../views/obgy/index.html" */ ?>
<?php /*%%SmartyHeaderCode:71302438864d12e503c6a98-89588052%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '79527a71dba0ccb1732197c5200fd2bae4babc6e' => 
    array (
      0 => '../views/obgy/index.html',
      1 => 1686456156,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '71302438864d12e503c6a98-89588052',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64d12e50471715_26028337',
  'variables' => 
  array (
    'ifsend' => 0,
    'path' => 0,
    'openname' => 0,
    'hosturl' => 0,
    'programesetting' => 0,
    'focussearchindex' => 0,
    'showBtn1' => 0,
    'showBtn2' => 0,
    'viewAll' => 0,
    'firstDept' => 0,
    'allvisit' => 0,
    'departs' => 0,
    'depart' => 0,
    'doc' => 0,
    'value' => 0,
    'i' => 0,
    'departsFor' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64d12e50471715_26028337')) {function content_64d12e50471715_26028337($_smarty_tpl) {?><meta charset="utf8" />

<input type="hidden" id=ifsend value="<?php echo $_smarty_tpl->tpl_vars['ifsend']->value;?>
"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row" style="display: none;">
            <div class="top-menu" style=" background: #fff; height: 40px; ">
                <ul class="nav navbar-nav pull-right">
                    <!-- BEGIN USER LOGIN DROPDOWN -->
                    <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                    <li class="dropdown dropdown-user">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" style=" padding: 10px; ">
                            <img alt="" class="img-circle" src="<?php echo $_smarty_tpl->tpl_vars['path']->value;?>
/_assets/admin/layout/img/avatar3_small.png"  style=" height: 20px; "/>
                            <span class="username username-hide-on-mobile">
                                <?php echo $_smarty_tpl->tpl_vars['openname']->value;?>
  </span>
                            <i class="fa fa-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-default">
                            <li>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/_myprofile.php">
                                    <i class="icon-user"></i> My Profile</a>
                            </li>
                            <li class="divider">
                            </li>
                            <li>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/login.php?ac=logout">
                                    <i class="icon-key"></i> Log Out</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>

        <!--START-->


        <div class="row">
            <input type="hidden"    id="search_letters_no"  value="<?php echo $_smarty_tpl->tpl_vars['programesetting']->value->search_letters_no;?>
">

            <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php?ac=search" method="post">
                <div class="col-md-5 indexsearchbox"  <?php if ($_smarty_tpl->tpl_vars['focussearchindex']->value==1){?> style=" z-index: 9999999999999999999; "<?php }?>>
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <div class="col-md-9 searchgo ">
                                <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_type==2||$_smarty_tpl->tpl_vars['programesetting']->value->system_lang==2){?>  
                                <input type="text" name="search" id="wifenamesearchable" class="form-control search txtc sbystno" placeholder="البحث بإسم الحالة ..." autofocus>
                                <?php }else{ ?>  
                                <input type="text" name="search" id="wifenamesearchable" class="form-control search txtc sbystno" placeholder="البحث بإسم المريضة ..." autofocus>
                                <?php }?>   

                            </div>
                            <div class=" tools col-md-3 fff txtr arsearchname fright">
                                اسم <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_type==2||$_smarty_tpl->tpl_vars['programesetting']->value->system_lang==2){?>  
                                الحالة 
                                <?php }else{ ?>  
                                المريضة
                                <?php }?>    
                                <a href="#" class="expand" data-original-title="تصغير / تكبير" title="">
                                </a>
                            </div>
                        </div>
                        <div class="portlet-body form xhide" <?php if ($_smarty_tpl->tpl_vars['focussearchindex']->value==1){?> style="display: block !important; "<?php }?>>
                            <div class="form-body inpuptsindex-g">

                                <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_lang!=2){?> 
                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search" id="husbandname" name="husbandname" placeholder="اسم الزوج">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        اسم الزوج
                                    </label>
                                </div>

                                <div class="clearfix"></div>

                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search" id="jobtitle" name="jobtitle" placeholder="وظيفة الزوج">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        وظيفة الزوج
                                    </label>
                                </div>

                                <div class="clearfix"></div>
                                <?php }?>    

                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search" name="address" id="address" placeholder="العنوان">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        العنوان
                                    </label>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search" name="phone" id="phone" placeholder="الهاتف">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        الهاتف
                                    </label>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search" name="mobile" id="mobile" placeholder="الموبايل">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        الموبايل
                                    </label>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search" name="age" id="age" placeholder="العمر">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        العمر
                                    </label>
                                </div>
                                <div class="clearfix"></div>
                                <div class="form-group">
                                    <div class="col-md-9">
                                        <input type="text" class="form-control search " name="nationalid" id="nationalid" placeholder="الرقم القومي">
                                    </div>
                                    <label class="col-md-3 control-label sneng fntsz12 txtr">
                                        الرقم القومي
                                    </label>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    </div>

                    <div   id="ermsg"  class="xhide"  <?php if ($_smarty_tpl->tpl_vars['focussearchindex']->value==1){?> style="display: block" <?php }?>>
                        <p>
                            يرجى إختيار حالة  اولاً
                        </p>
                    </div>
                    <!--rusindex-->
                    <div class="success" style=" overflow: scroll; direction: rtl;max-height: 543px;"></div>


                </div>
            </form>

            <div class="col-md-7" id="visit_container">

                <div class="col-md-12">
                    <?php if ($_smarty_tpl->tpl_vars['showBtn1']->value==1){?>
                    <div class="col-md-6">
                        <a class="btn red-soft addnewindex wds97 fright" id="pulsate-regular" 
                           href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php">
                            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->system_type==2||$_smarty_tpl->tpl_vars['programesetting']->value->system_lang==2){?>  
                            إضافة حالة  جديدة
                            <?php }else{ ?>  
                            إضافة مريضة جديدة
                            <?php }?> 
                        </a>
                    </div>
                    <?php }?>
                    <?php if ($_smarty_tpl->tpl_vars['showBtn2']->value==1){?>
                    <div class="col-md-6">
                        <a class="btn btn-success addnewindex wds97 fright" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/visits.php">إضافة زيارة جديدة</a>
                    </div>
                    <?php }?>

                    <div class="clearfix"></div>

                    <div class="portlet box blue wds98 fright">
                        <div class="portlet-title">
                            <div class="caption txtc fright">
                                اسم / رقم الحالة  
                            </div>

                            <div class="col-md-9 searchgo ">
                                <input type="text" name="indexVisitsSearch" id="indexVisitsSearch" 
                                       class="form-control  txtc" placeholder="البحث بإسم الحالة ..." autofocus>
                            </div>
                        </div>

                        <?php if ($_smarty_tpl->tpl_vars['viewAll']->value==-1){?>
                        <input type="hidden" id="select_filter_visit" value="<?php echo $_smarty_tpl->tpl_vars['firstDept']->value;?>
">
                        <input type="hidden" id="select_filter_doc" value="0">
                        <div class="portlet-body mp0">
                            <div class=" mxhitx_new" data-always-visible="1" data-rail-visible="0" 
                                 style="direction: rtl;    max-height: none;overflow: hidden;">

                                <?php if ($_smarty_tpl->tpl_vars['allvisit']->value){?>

                                <div class="portlet box green-soft " style="margin: 5px 0 0 0;">
                                    <div class="portlet-title" style="min-height: unset;">
                                        <div class="tools fleft" style="padding: 0px !important;">
                                            <a href="#" class="expand" title="تصغير / تكبير"></a>
                                        </div>
                                    </div>
                                    <div class="portlet-body form" style="display: none;">
                                        <div class="table-toolbar">
                                            <div class="row">
                                                <div>
                                                    <a href="javascript:;" class="btn green show_only_his_share" data-no="0">الكل</a>

                                                    <?php  $_smarty_tpl->tpl_vars['depart'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['depart']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['departs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['depart']->key => $_smarty_tpl->tpl_vars['depart']->value){
$_smarty_tpl->tpl_vars['depart']->_loop = true;
?>
                                                    <a href="javascript:;" class="btn green show_only_his_share" data-no="<?php echo $_smarty_tpl->tpl_vars['depart']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['depart']->value->name;?>
</a>
                                                    <?php } ?>
                                                </div>

                                                <div class="clearfix"></div>

                                                <?php  $_smarty_tpl->tpl_vars['depart'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['depart']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['departs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['depart']->key => $_smarty_tpl->tpl_vars['depart']->value){
$_smarty_tpl->tpl_vars['depart']->_loop = true;
?>
                                                <?php  $_smarty_tpl->tpl_vars['doc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['doc']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['depart']->value->doctors; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['doc']->key => $_smarty_tpl->tpl_vars['doc']->value){
$_smarty_tpl->tpl_vars['doc']->_loop = true;
?>
                                                <a href="javascript:;" class="btn default doc_min_<?php echo $_smarty_tpl->tpl_vars['depart']->value->id;?>
  doc_Id_<?php echo $_smarty_tpl->tpl_vars['doc']->value['docId'];?>
 show_doc_his  doc_for_<?php echo $_smarty_tpl->tpl_vars['depart']->value->id;?>
_<?php echo $_smarty_tpl->tpl_vars['doc']->value['docId'];?>
   " data-no="<?php echo $_smarty_tpl->tpl_vars['doc']->value['docId'];?>
"><?php echo $_smarty_tpl->tpl_vars['doc']->value['name'];?>
</a>
                                                <?php } ?>
                                                <?php } ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <table class="table table-hover noborder scrollTableody mp0" style="direction: ltr;">
                                    <tbody id="indexVisitsContainer">
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['allvisit']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>

                                        <tr id="visitDoneRow<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" class="entervisitors   <?php if ($_smarty_tpl->tpl_vars['value']->value->view==1){?>  visitDone  <?php }?> dep_for_<?php echo $_smarty_tpl->tpl_vars['value']->value->for_department;?>
_<?php echo $_smarty_tpl->tpl_vars['value']->value->for_doctor;?>
    vi_all    vi_all_dept_<?php echo $_smarty_tpl->tpl_vars['value']->value->for_doctor;?>
  vi_all_doc<?php echo $_smarty_tpl->tpl_vars['value']->value->for_department;?>
"  
                                            <?php if ($_smarty_tpl->tpl_vars['value']->value->confirm_attend==1&&$_smarty_tpl->tpl_vars['programesetting']->value->confirm_attend==1){?> style="background-color: #d0f09f !important;"  
                                            <?php }elseif($_smarty_tpl->tpl_vars['value']->value->confirm_attend==2&&$_smarty_tpl->tpl_vars['programesetting']->value->confirm_attend==1){?> style="background-color: #d1a6d1 !important;"  
                                            <?php }elseif($_smarty_tpl->tpl_vars['value']->value->confirm_attend==3&&$_smarty_tpl->tpl_vars['programesetting']->value->confirm_attend==1){?> style="background-color: #fd8591 !important;"  
                                            <?php }?>  >
                                            <td class="col-md-1 text-center  wds6">
                                                <span  style="font-weight: bold;" class="numSpan"> <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>
                                            </td>
                                            <td class="col-md-4 wds30">
                                                <?php if ($_smarty_tpl->tpl_vars['value']->value->link==-1||$_smarty_tpl->tpl_vars['value']->value->link==''){?> 
                                                <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" class="visitviewed"  data-link="<?php echo $_smarty_tpl->tpl_vars['value']->value->link;?>
" >
                                                    <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>

                                                </a>
                                                <?php }else{ ?>
                                                <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" class="visitviewed"  
                                                   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['value']->value->link;?>
<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
">
                                                    <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>

                                                </a>
                                                <?php }?>

                                            </td>
                                            <td class="col-md-1">
                                                <span  class="vtype mp0" 
                                                       style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</span>
                                            </td>
                                            <td class="col-md-1 wds10">
                                                <span  class="vtype mp0" style="height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->visit_time;?>
</span>
                                            </td>
                                            <td class="col-md-3 wds20">
                                                <span  class="vtype mp0" style="height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->doctorName;?>
</span>
                                            </td>
                                            <td class="col-md-3">
                                                <span  class="vtype mp0" style="height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>
                                            </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 } ?>
                                    </tbody>
                                </table>
                                <?php }else{ ?>
                                <p class="novisitlonger">    لا توجد زيارات بعد</p>
                                <?php }?>
                            </div>
                        </div>


                        <?php }else{ ?>

                        <input type="hidden" id="select_filter_visit" value="<?php echo $_SESSION['role_id'];?>
">
                        <input type="hidden" id="select_filter_doc" value="<?php echo $_SESSION['user_id'];?>
">
                        <div class="portlet-body mp0">
                            <div class=" mxhitx_new" data-always-visible="1" data-rail-visible="0" 
                                 style="direction: rtl;    max-height: none;overflow: hidden;">
                                <?php if ($_smarty_tpl->tpl_vars['allvisit']->value){?>
                                <div class="portlet box green-soft " style="margin: 5px 0 0 0;">
                                    <div class="portlet-title" style="min-height: unset;">
                                        <div class="tools fleft" style="padding: 0px !important;">
                                            <a href="#" class="expand" title="تصغير / تكبير"></a>
                                        </div>
                                    </div>
                                    <div class="portlet-body form" style="display: none;">
                                        <div class="table-toolbar">
                                            <div class="row">

                                                <div>
                                                    <?php  $_smarty_tpl->tpl_vars['depart'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['depart']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['departsFor']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['depart']->key => $_smarty_tpl->tpl_vars['depart']->value){
$_smarty_tpl->tpl_vars['depart']->_loop = true;
?>
                                                    <a href="javascript:;" class="btn green show_only_his_share" data-no="<?php echo $_smarty_tpl->tpl_vars['depart']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['depart']->value->name;?>
</a>
                                                    <?php } ?>
                                                </div>

                                                <div class="clearfix"></div>

                                                <?php  $_smarty_tpl->tpl_vars['depart'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['depart']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['departsFor']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['depart']->key => $_smarty_tpl->tpl_vars['depart']->value){
$_smarty_tpl->tpl_vars['depart']->_loop = true;
?>
                                                <?php  $_smarty_tpl->tpl_vars['doc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['doc']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['depart']->value->doctors; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['doc']->key => $_smarty_tpl->tpl_vars['doc']->value){
$_smarty_tpl->tpl_vars['doc']->_loop = true;
?>
                                                <a href="javascript:;" class="btn default doc_min_<?php echo $_smarty_tpl->tpl_vars['depart']->value->id;?>
  doc_Id_<?php echo $_smarty_tpl->tpl_vars['doc']->value['docId'];?>
 show_doc_his  doc_for_<?php echo $_smarty_tpl->tpl_vars['depart']->value->id;?>
_<?php echo $_smarty_tpl->tpl_vars['doc']->value['docId'];?>
   " data-no="<?php echo $_smarty_tpl->tpl_vars['doc']->value['docId'];?>
"><?php echo $_smarty_tpl->tpl_vars['doc']->value['name'];?>
</a>
                                                <?php } ?>
                                                <?php } ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <table class="table table-hover noborder scrollTableody mp0" style="direction: ltr;">
                                    <tbody id="indexVisitsContainer">
                                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                                        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['allvisit']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['value']->key;
?>

                                        <tr id="visitDoneRow<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  class="entervisitors  <?php if ($_smarty_tpl->tpl_vars['value']->value->view==1){?>  visitDone  <?php }?>  dep_for_<?php echo $_smarty_tpl->tpl_vars['value']->value->for_department;?>
_<?php echo $_smarty_tpl->tpl_vars['value']->value->for_doctor;?>
    vi_all    vi_all_dept_<?php echo $_smarty_tpl->tpl_vars['value']->value->for_doctor;?>
  vi_all_doc<?php echo $_smarty_tpl->tpl_vars['value']->value->for_department;?>
 row" 
                                            <?php if ($_smarty_tpl->tpl_vars['value']->value->confirm_attend==1&&$_smarty_tpl->tpl_vars['programesetting']->value->confirm_attend==1){?> style="background-color: #d0f09f !important;"  
                                            <?php }elseif($_smarty_tpl->tpl_vars['value']->value->confirm_attend==2&&$_smarty_tpl->tpl_vars['programesetting']->value->confirm_attend==1){?> style="background-color: #d1a6d1 !important;"  
                                            <?php }elseif($_smarty_tpl->tpl_vars['value']->value->confirm_attend==3&&$_smarty_tpl->tpl_vars['programesetting']->value->confirm_attend==1){?> style="background-color: #fd8591 !important;"  
                                            <?php }?>
                                            >

                                            <td class="col-md-1 text-center  wds6">
                                                <span  style="font-weight: bold;"  class="numSpan"> <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>
                                            </td>
                                            <td class="col-md-4">
                                                <?php if ($_smarty_tpl->tpl_vars['value']->value->link==-1||$_smarty_tpl->tpl_vars['value']->value->link==''){?> 
                                                <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" class="visitviewed"  data-link="<?php echo $_smarty_tpl->tpl_vars['value']->value->link;?>
" >
                                                    <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>

                                                </a>
                                                <?php }else{ ?>
                                                <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" class="visitviewed"  
                                                   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php echo $_smarty_tpl->tpl_vars['value']->value->link;?>
<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
">
                                                    <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>

                                                </a>
                                                <?php }?>
                                            </td>

                                            <td class="col-md-1">
                                                <span  class="vtype mp0" 
                                                       style="border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</span>
                                            </td>

                                            <td class="col-md-1">
                                                <span  class="vtype mp0" style="height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->visit_time;?>
</span>
                                            </td>

                                            <?php if ($_smarty_tpl->tpl_vars['value']->value->for_department==12&&$_smarty_tpl->tpl_vars['value']->value->view==1){?>
                                            <td class="col-md-2">
                                                <a class=" bg-blue dltbtn  printLR" data-visitId="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" >طباعة</a>
                                            </td>
                                            <?php }elseif($_smarty_tpl->tpl_vars['value']->value->for_department==12&&$_smarty_tpl->tpl_vars['value']->value->view!=1){?>
                                            <td class="col-md-2">
                                                <a class=" bg-blue dltbtn  printLR visitviewedLink" data-visitId="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
" data-index="1">طباعة</a>
                                            </td>
                                            <?php }else{ ?>
                                            <td class="col-md-2">
                                                <span  class="vtype mp0" style="height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->doctorName;?>
</span>
                                            </td>
                                            <?php }?>  


                                            <td class="col-md-3">
                                                <span  class="vtype mp0" style="height: auto;"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>
                                            </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 } ?>
                                    </tbody>
                                </table>
                                <?php }else{ ?>
                                <p class="novisitlonger">    لا توجد زيارات بعد</p>
                                <?php }?>
                            </div>
                        </div>

                        <?php }?>
                    </div>
                </div>

            </div>
        </div>


        <!--END-->

    </div>
</div>
<!-- END CONTENT -->

<div class="focus-search-index" <?php if ($_smarty_tpl->tpl_vars['focussearchindex']->value==1){?> style="display: block"<?php }?>></div>

<input type="hidden" id="select_filter_visit" value="0">


<div id="printRDiv"></div><?php }} ?>