<meta charset="utf8"/>
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
    <div class="page-content">
        <form action="{$hosturl}/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="{$today}" 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="{$today}" 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>
                                    {foreach $departs as $row}
                                    <option value="{$row.id}">{$row.name}</option>
                                    {/foreach}
                                </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>
                                    {foreach $users as $row}
                                    <option value="{$row.user_id}">{$row.name}</option>
                                    {/foreach}
                                </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>