<?php /* Smarty version Smarty-3.1.11, created on 2024-08-26 17:25:03
         compiled from "../views/obgy/index.html" */ ?>
<?php /*%%SmartyHeaderCode:88950095766cc903fe7f547-90605580%%*/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 => 1640067064,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '88950095766cc903fe7f547-90605580',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'ifsend' => 0,
    'programesetting' => 0,
    'path' => 0,
    'openname' => 0,
    'hosturl' => 0,
    'focussearchindex' => 0,
    'allDetections' => 0,
    'row' => 0,
    'showBtn1' => 0,
    'showBtn2' => 0,
    'allvisit' => 0,
    'value' => 0,
    'loginPosition' => 0,
    'i' => 0,
    'allvisitentered' => 0,
    'visitPeriod' => 0,
    'visit_periods' => 0,
    'period' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_66cc904002c3b0_00293505',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_66cc904002c3b0_00293505')) {function content_66cc904002c3b0_00293505($_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" <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->visitsform==0){?> style="display: none;"  <?php }?>>
            <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>
        <div class="row">
            <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patients.php?ac=search" method="post">
                <div class="col-md-6 indexsearchbox"  <?php if ($_smarty_tpl->tpl_vars['focussearchindex']->value==1){?> style=" z-index: 9999999999999999999; "<?php }?>>
                    <div class="portlet box blue">
                        <div class="portlet-title">
                            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->visitsform!=1){?>
                            <?php }else{ ?>
                            <div class="col-md-6 searchgo ">

                                <select  class="form-control  select2me" name="detectionSearch" id="detectionSearch" placeholder="اختر القسم ">
                                    <option value=""></option>
                                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allDetections']->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;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value->title;?>
</option>
                                    <?php } ?>
                                </select>
                            </div>
                            <?php }?>
                            <div class="col-md-9 searchgo ">
                                <input type="text" name="search" id="wifenamesearchable" class="form-control search txtc sbystno" placeholder="البحث بإسم <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?>  المريضة  <?php }else{ ?> المريض  <?php }?> ..." autofocus>
                            </div>
                            <div class=" tools col-md-3 fff txtr arsearchname fright">
                                اسم <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?>  المريضة  <?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">
                                <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>
                                <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>
                            يرجى إختيار <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->programview==1){?>  مريضة  <?php }else{ ?> مريض  <?php }?> اولاً
                        </p>
                    </div>
                    <!--rusindex-->
                    <div class="success" style=" overflow: scroll; direction: rtl;max-height: 543px;"></div>


                </div>
                <div class="col-md-6">
                    <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->visitsform==1){?>
                    <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->programview==1){?>  مريضة   جديدة<?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>
                            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->entryorder==1){?>
                            <div class="portlet-body mp0">
                                <div class="scroller mxhitx" data-always-visible="1" data-rail-visible="0">
                                    <?php if ($_smarty_tpl->tpl_vars['allvisit']->value){?>
                                    <u id="sortable" class="list-group">
                                        <?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;
?>
                                        <?php if ($_smarty_tpl->tpl_vars['value']->value->view==1){?>
                                        <li id="item_100000"  class="ainli blue unsortable disabled">
                                            <?php }else{ ?>
                                        <li id="item_<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
">
                                            <?php }?>
                                            <span  class="vtype"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>
                                            <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"   <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed" href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patienthistory.php?patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>><?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                            <!--<span style="position: absolute;right: 10px;"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>-->
                                        </li>

                                        <?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 } ?>
                                        <div class="clearfix"></div>
                                    </u>
                                    <?php }else{ ?>
                                    <p class="novisitlonger">    لا توجد زيارات بعد</p>
                                    <?php }?>

                                </div>
                            </div>
                            <?php }else{ ?>

                            <div class="portlet-body mp0">
                                <div class="scroller mxhitx" data-always-visible="1" data-rail-visible="0">

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

                                    <ul class="list-group">

                                        <?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;
?>
                                        <li class="entervisitors">
                                            <span  class="vtype"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>
                                            <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed"  href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patienthistory.php?patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>><?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                    <?php }else{ ?>
                                    <p class="novisitlonger">    لا توجد زيارات بعد</p>
                                    <?php }?>
                                </div>
                            </div>
                            <?php }?>
                        </div>
                        <div class="portlet box blue">
                            <div class="portlet-title">
                                <div class="caption txtc fright">
                                    تم الدخول
                                </div>
                            </div>
                            <div class="portlet-body mp0">
                                <div class="scroller mxhitx" data-always-visible="1" data-rail-visible="0">

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

                                    <ul class="list-group">

                                        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allvisitentered']->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;
?>
                                        <li class="entervisitors">
                                            <a  <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/patienthistory.php?patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>> <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                    <?php }?>
                                </div>
                            </div>
                        </div>
                    </div>

                    <?php }else{ ?>

                    <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->programview==1){?>  مريضة   جديدة<?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>
                            <?php if ($_smarty_tpl->tpl_vars['programesetting']->value->entryorder==1){?>
                            <div class="portlet-body mp0">
                                <div class=" mxhitx_new" data-always-visible="1" data-rail-visible="0">
                                    <?php if ($_smarty_tpl->tpl_vars['allvisit']->value){?>
                                    <u id="sortable" class="list-group">
                                        <?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;
?>
                                        <?php if ($_smarty_tpl->tpl_vars['value']->value->view==1){?>
                                        <li id="item_<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  class="ainli blue visitDone">
                                            <?php }else{ ?>
                                        <li id="item_<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
">

                                            <?php }?>

                                            <span  style="float: right; width: 50px; font-weight: bold">  <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>
                                            <span  class="vtype"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>

                                            <span  class="vtype"><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</span>
                                            <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"   <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed"   
                                               href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (!empty($_smarty_tpl->tpl_vars['value']->value->go)){?><?php echo $_smarty_tpl->tpl_vars['value']->value->go;?>
.php?ac=index&<?php }else{ ?>patienthistory.php?ac=show&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>>
                                                <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                        </li>

                                        <?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 } ?>
                                        <div class="clearfix"></div>
                                    </u>
                                    <?php }else{ ?>
                                    <p class="novisitlonger">    لا توجد زيارات بعد</p>
                                    <?php }?>

                                </div>
                            </div>
                            <?php }else{ ?>

                            <div class="portlet-body mp0" style="padding-top: 3px !important;">

                                <?php if ($_smarty_tpl->tpl_vars['visitPeriod']->value==1){?>
                                <table class="table table-hover noborder mp0" style="width: 100%;margin-bottom:  3px !important;">
                                    <thead>
                                        <tr>
                                            <th> 

                                                <a href="javascript:;" class="btn green  show_period_his fright " 
                                                   data-no="0">الكل </a>

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

                                    </thead>
                                </table>
                                <?php }?>


                                <div class=" mxhitx_new" data-always-visible="1" data-rail-visible="0">

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

                                    <table class="table table-hover noborder mp0" style="width: 100%;font-size: 20px;direction: rtl">
                                        <thead>
                                            <tr>
                                                <th class="col-md-1" style="    background: #85aff3;line-height: 30px;">م</th>
                                                <th style="    background: #85aff3;line-height: 30px;"> اسم الحالة  </th>
                                                <th class="col-md-2"  style="    background: #85aff3;line-height: 30px;"> رقم  الحالة  </th>
                                                <th class="col-md-4" style="    background: #85aff3;line-height: 30px;"> نوع الكشف </th>
                                                <th class="col-md-2"  style="    background: #85aff3;line-height: 30px;"> التوقيت    </th>
                                            </tr>
                                        </thead>
                                    </table>

                                    <table class="table table-hover noborder scrollTableody mp0" style="width: 100%;font-size: 20px;direction: rtl">
                                        <tbody>
                                            <?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;
?>
                                            <?php if ($_smarty_tpl->tpl_vars['value']->value->view==1){?>

                                            <tr class="entervisitors vi_all period_for_<?php echo $_smarty_tpl->tpl_vars['value']->value->visit_period;?>
  visitDone">
                                                <td class="col-md-1"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                                <td>
                                                    <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed"  
                                                       href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (!empty($_smarty_tpl->tpl_vars['value']->value->go)){?><?php echo $_smarty_tpl->tpl_vars['value']->value->go;?>
.php?ac=index&<?php }else{ ?>patienthistory.php?ac=show&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>>
                                                        <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                                </td>
                                                <td class="col-md-2"><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</td>
                                                <td class="col-md-4"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</td>
                                                <td class="col-md-2"><?php echo $_smarty_tpl->tpl_vars['value']->value->approx_time;?>
</td>
                                            </tr>

                                            <?php }else{ ?>

                                            <tr class="entervisitors vi_all period_for_<?php echo $_smarty_tpl->tpl_vars['value']->value->visit_period;?>
">
                                                <td class="col-md-1"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                                <td>
                                                    <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed"  
                                                       href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (!empty($_smarty_tpl->tpl_vars['value']->value->go)){?><?php echo $_smarty_tpl->tpl_vars['value']->value->go;?>
.php?ac=index&<?php }else{ ?>patienthistory.php?ac=show&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>>
                                                        <?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                                </td>
                                                <td class="col-md-2"><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</td>
                                                <td class="col-md-4"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</td>
                                                <td class="col-md-2"><?php echo $_smarty_tpl->tpl_vars['value']->value->approx_time;?>
</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>
                                    <!--ul class="list-group">
                                        <?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;
?>

                                        <?php if ($_smarty_tpl->tpl_vars['value']->value->view==1){?>
                                        <li class="entervisitors vi_all period_for_<?php echo $_smarty_tpl->tpl_vars['value']->value->visit_period;?>
  visitDone">
                                            <span class="col-md-1"   style="float: right; font-weight: bold;text-align: right;">  <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>
                                            <span  class="col-md-4 vtype"><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>
                                            <span  class="col-md-2 vtype" style=" border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333;"><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</span>
                                            <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed"  href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (!empty($_smarty_tpl->tpl_vars['value']->value->go)){?><?php echo $_smarty_tpl->tpl_vars['value']->value->go;?>
.php?ac=index&<?php }else{ ?>patienthistory.php?ac=show&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>><?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                        </li>

                                        <?php }else{ ?>
                                        <li class="entervisitors vi_all period_for_<?php echo $_smarty_tpl->tpl_vars['value']->value->visit_period;?>
 ">
                                            <span class="col-md-1"  style="float: right; font-weight: bold;text-align: right;">  <?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</span>
                                            <span class="col-md-4 vtype"  ><?php echo $_smarty_tpl->tpl_vars['value']->value->detectionType;?>
</span>
                                            <span class="col-md-2 vtype"   style=" border-radius: 0; border-right: 1px solid #333; border-left: 1px solid #333; "><?php echo $_smarty_tpl->tpl_vars['value']->value->statusno;?>
</span>
                                            <a data-id="<?php echo $_smarty_tpl->tpl_vars['value']->value->id;?>
"  <?php if ($_smarty_tpl->tpl_vars['loginPosition']->value!=3){?> class="visitviewed"   href="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/<?php if (!empty($_smarty_tpl->tpl_vars['value']->value->go)){?><?php echo $_smarty_tpl->tpl_vars['value']->value->go;?>
.php?ac=index&<?php }else{ ?>patienthistory.php?ac=show&<?php }?>patientid=<?php echo $_smarty_tpl->tpl_vars['value']->value->patientID;?>
" <?php }?>><?php echo $_smarty_tpl->tpl_vars['value']->value->patientName;?>
</a>
                                        </li>

                                        <?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 } ?>
                                    </ul-->
                                    <?php }else{ ?>
                                    <p class="novisitlonger">    لا توجد زيارات بعد</p>
                                    <?php }?>
                                </div>
                            </div>
                            <?php }?>
                        </div>
                    </div>
                    <?php }?>
                </div>


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

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