<?php /* Smarty version Smarty-3.1.11, created on 2023-10-31 15:30:51
         compiled from "../views/obgy/customer_service/visits.html" */ ?>
<?php /*%%SmartyHeaderCode:3162564066541018ba06125-69064364%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7d20a7af8a16f5e2514591e6997d2bf72cc58888' => 
    array (
      0 => '../views/obgy/customer_service/visits.html',
      1 => 1675551270,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3162564066541018ba06125-69064364',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'hosturl' => 0,
    'today' => 0,
    'departs' => 0,
    'row' => 0,
    'users' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6541018ba8fd18_91332905',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6541018ba8fd18_91332905')) {function content_6541018ba8fd18_91332905($_smarty_tpl) {?><meta charset="utf8"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <form action="<?php echo $_smarty_tpl->tpl_vars['hosturl']->value;?>
/controllers/visits.php?ac=search" method="post" id="form_search_visit">
            <div class="portlet box blue">
                <div class="portlet-title">
                    <div class="caption">  Doctor Visits </div>
                    <div class="caption fright">   زيارات الأطباء  </div>
                </div>
            </div>

            <div class="portlet-body">
                <div class="table-toolbar">
                    <div class="row clinick posre">

                        <div class="col-md-2  wds10 fright">
                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                <input type="text" class="form-control datepicker txtc " id="date_from" 
                                       value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
" readonly/>
                                <label for="form_control_1"> التاريخ من   </label>
                            </div>
                        </div>

                        <div class="col-md-2 wds10 fright" >
                            <div class="form-group form-md-line-input form-md-floating-label has-info">
                                <input type="text" class="form-control datepicker txtc " id="date_to" 
                                       value="<?php echo $_smarty_tpl->tpl_vars['today']->value;?>
" readonly/>
                                <label for="form_control_1"> التاريخ إلى    </label>
                            </div>
                        </div>

                        <div class="col-md-3 fright" >
                            <div class="form-group">
                                <label class="control-label ls2 txtr" style="float: right;">القسم </label>
                                <select class="form-control   select2h" id="visit_dept">
                                    <option value="">اختر</option>
                                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_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['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['name'];?>
</option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div> 

                        <div class="col-md-4 fright" >
                            <div class="form-group" id="dept_doctors_div">
                                <label class="control-label ls2 txtr" style="float: right;">الاطباء </label>
                                <select class="form-control   select2h" id="dept_doctors">
                                    <option value="">اختر</option>
                                    <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['users']->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['user_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['row']->value['name'];?>
</option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div> 

                        <div class="col-md-1 fright" >
                            <div class="form-group" id="dept_doctors_div">
                                <label class="control-label ls2 txtr" style="float: right;">RFC </label>
                                <select class="form-control   select2h" id="rfc_patient">
                                    <option value="">All</option>
                                    <option value="1">RFC</option>
                                    <option value="2">Not RFC</option>
                                </select>
                            </div>
                        </div> 

                        <div class="col-md-1 wds13" style=" margin-top: 19px;">
                            <a class="btn btn-default btn-sm" id="doctorVisitsPrint" >
                                <i class="fa fa-print"></i> </a>

                            <a class="btn btn-primary btn-sm" id="doctorVisitsBtn" >
                                <i class="fa fa-search"></i>  </a>
                        </div>
                    </div>

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

                <div   id="doctor_visits_div" style="direction: rtl;" >  </div>
            </div>
    </div>


</form>

</div>
<!-- END PAGE CONTENT-->
</div>
<input type="hidden" id="controllName" value="customer_service"/>

<div id="drVisitsDiv"></div>
<div id="printDiv"></div><?php }} ?>