
<style type="text/css">
.modal-header .close {
    margin-top: -24px;
    float: left;
}
</style>

<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">زيارات المندوبين   </a></li>
            <li><a href="visitsController.php?do=recordattendance">عرض  الحضور </a></li>
            <li class="active">عرض   </li>
        </ol>
        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;"> عرض       </h3>
                <a href="{$youtubes[210]->url}" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <!-- <a href="visitsController.php" class="hidden-print"><input type="button" style="margin-left: 12px" id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a> -->
            </div>
            
            <hr/>

            <form class="form-inline hidden-print" method="post" action="visits.php?do=show">
                    
                   
                    <div class="form-group" style="width: 150px">
                        <label class="sr-only">من التاريخ</label>
                        <input type="text" class="form-control awdatepicker searchdata" autocomplete="off"   data-date-format="yyyy-mm-dd"  id="start_date" value="{$date}">
                    </div>
                    <div class="form-group" style="width: 150px">
                        <label class="sr-only">إلى التاريخ</label>
                        <input type="text" class="form-control awdatepicker searchdata" autocomplete="off"   data-date-format="yyyy-mm-dd"  id="end_date" value="{$date}">
                    </div>
                   <!--   <div class="form-group"  >
                        <label class="sr-only">المند</label>
                        <div style="width: 190px;">
                            <input id="" type="text"  name="data2" class="getselectjoin searchdata"  data-placeholder=" البحث عن العميل   "   data-table="client" 
                              data-tableid="clientid" 
                              data-join=""   data-filter=" and client.conditions = 0 " 
                              data-parent="" data-itr=""  
                              data-search="clientname,'/',clientphone"/> 
                        </div> 
                    </div>
 -->
                      <div class="form-group"  >
                        <label class="sr-only">المندوبين</label>
                        <div style="width: 190px;">
                            <input id="" type="text"  name="data1" class="getselectjoin searchdata"  data-placeholder=" البحث عن المندوب   "   data-table="user" 
                              data-tableid="userid" 
                              data-join=""   data-filter=" and user.conditions = 0  and usergroupid = 2  " 
                              data-parent="" data-itr=""  
                              data-search="employeename"/> 
                        </div> 
                    </div>
                     
                 <!--     <div class="form-group"  >
                        <label class="sr-only">الموردين</label>
                        <div style="width: 190px;">
                            <input id="" type="text" name="data1"  class="getselectjoin searchdata"  data-placeholder=" البحث عن   المورد   "   data-table="supplier" 
                              data-tableid="supplierid" 
                              data-join=""   data-filter=" and supplier.conditions = 0 " 
                              data-parent="" data-itr=""  
                              data-search="suppliername,'/',supplierphone"/> 
                        </div> 
                    </div> -->
             <!--         <div class="form-group"  >
                        <label  class="sr-only">الفروع </label>
                        <div style="width: 190px">
                             <input id="data3" type="text" name="data3"  class="getselectjoin searchdata"  data-placeholder="         اختر "   data-table="branch" 
                              data-tableid="branchId" 
                              data-join=""   data-filter="" 
                              data-parent="" data-itr=""  
                              data-search="branchName,'/',phone"/> 
                        </div>
                    </div>
                    <div class="form-group"  >
                        <label  class="sr-only">ضمان  او صيانه  </label>
                        <div style="width: 190px">
                            <select    data-placeholder="اختر " class="selectnew searchdata"  name="data4" 
                                id="data4">
                                <option value="0" selected>ضمان وصيانه</option>
                                <option value="1" >صيانه</option>
                                <option value="2" >ضمان</option>
                            </select>
                        </div>
                    </div> -->
                   <!--  <div class="form-group">
                        <label class="sr-only">المحذوف</label>
                        <div style="text-align: center;">
                          <input type="checkbox" class="form-control searchdata" id="del"  value="1" style="    width: 23px;">  
                        </div>
                    </div> -->
                    <!--  <div class="form-group"  >
                        <ul class="nav nav-tabs">
                            {foreach $maintenancecases as $case}
                            <li id="li{$case->id}" {if $case->id eq 1 }class="active" {/if}>
                              <a  href="" class="changestatus"  data-id="{$case->id}" data-toggle="tab">{$case->casename}</a>
                            </li> 
                            {/foreach}
                          </ul>
                          <input type="hidden" id="data5" name="data5" value="1">
                    </div> -->
                </form>
            <hr/>

            <table class="table table-black" id="getajaxdata" 
            data-controll="visitsController.php?do=rshowajax">
                <thead>
                   <!--  <tr>
                        <th colspan="3"></th>
                        <th colspan="6"> <input id="maintenancecaseid" type="text" name="maintenancecaseid"  class="getselectjoin maintenancecase" data-placeholder=" تغير الحاله "   data-table="maintenancecases" 
                              data-tableid="id" data-join=""   data-filter=" and conditions = 0 " data-parent="" data-itr=""  
                              data-search="casename"/> </th>
                        <th colspan="3"></th>
                    </tr> -->
                    <tr>
                        <th style="width:50px;">م</th>
                        <th>المندوب</th>
                        <th>lat</th>
                        <th>long</th>
                        <th>التاريخ</th>
                        <th>المجموعه</th>
                       
                        <!-- <th class="noprint">تعديل</th> -->
                        <th class="noprint">حذف</th>
                    </tr>
                </thead>
                <tbody>

                </tbody>
            </table>





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


           


        </div>



    </div>

</div>

<div class="modal fade" id="Modalmaintenancecenterid" tabindex="-1" role="dialog" aria-labelledby="ModalmaintenancecenteridLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h3 class="modal-title" id="ModalmaintenancecenteridLabel"> اضافة </h3>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form class="form-horizontal"  action="maintenances.php"  id="formmaintenancecenters" 
        method="post"  enctype="multipart/form-data" data-dosave="?do=savecenter"  data-direction="">

            <div class="form-group">
                <label for="recipient-name" class="col-form-label">  اسم المركز    </label>
                    <input    required="required"    type="text" name="centername" 
                    class="form-control checkcolumn"  placeholder="اسم المركز "  
                    data-table="maintenancecenters" data-filter=" centername = ? and conditions = 0 " 
                    data-tableid="" data-parentid="" data-parentcol="" />
            </div>
            <div class="form-group">
                <label for="recipient-name" class="col-form-label">المحمول</label>
                    <input    required="required"    type="text" name="centerphone" 
                     class="form-control checkcolumn nummbers" placeholder=" المحمول   "  
                     data-table="maintenancecenters" data-filter=" centerphone = ? and conditions = 0 "  data-tableid=""
                    data-parentid="" data-parentcol=""/>
            </div>
            <div class="form-group">
                <label for="recipient-name" class="col-form-label">الارضى</label>
                    <input    required="required"    type="text" name="centermobile" 
                     class="form-control checkcolumn nummbers" placeholder=" الارضى " 
                     data-table="maintenancecenters" data-filter=" centermobile = ? and conditions = 0 "  data-tableid=""
                    data-parentid="" data-parentcol=""/>    
            </div>
            <div class="form-group">
                <label for="recipient-name" class="col-form-label">العنوان</label>
                    <input    required="required"    type="text" name="centeraddress" 
                     class="form-control" placeholder=" العنوان   "  
                     data-table="maintenancecenters" data-filter=""  data-tableid=""
                    data-parentid="" data-parentcol=""/>
            </div>
            <div class="form-group">
                <label for="recipient-name" class="col-form-label">اسم المسئول </label>
                    <input    required="required"    type="text" name="administrator" 
                     class="form-control" placeholder=" اسم المسئول  " 
                     data-table="maintenancecenters" data-filter=""  data-tableid=""
                    data-parentid="" data-parentcol=""/>    
            </div>
            <div class="form-group">
                <label for="recipient-name" class="col-form-label">تليفونه </label>
                    <input    required="required"    type="text" name="administratorphone" 
                     class="form-control" placeholder=" تليفونه " 
                     data-table="maintenancecenters" data-filter=""  data-tableid=""
                    data-parentid="" data-parentcol=""/>    
            </div>
            <div class="form-group">
                <label for="recipient-name" class="col-form-label">الدين الحالى</label>
                    <input    required="required"    type="text" name="administratordebt" 
                     class="form-control  nummbers" placeholder=" الدين الحالى " 
                     data-table="maintenancecenters" data-filter=""  data-tableid=""
                    data-parentid="" data-parentcol=""/>    
            </div>
           
          <input id="popmaintenancecenters" type="hidden" name="maintenancecenterid" value=""  />
          <input id="itrmaintenancecenters" type="hidden" name="selectitr" value=""  />

        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">الغاء</button>
        <button type="button" class="btn btn-primary saveformajax" data-form="formmaintenancecenters"> حفظ</button>
      </div>
    </div>
  </div>
</div>




<div class="modal fade" id="Modalmaintenancecommentid" tabindex="-1" role="dialog" aria-labelledby="ModalmaintenancecommentidLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h3 class="modal-title" id="ModalmaintenancecommentidLabel"> اضافة </h3>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form class="form-horizontal"  action="maintenances.php"  id="formmaintenancecomments" 
        method="post"  enctype="multipart/form-data" data-dosave="?do=savecomment"  data-direction="">

            <div class="form-group">
                <label for="recipient-name" class="col-form-label"> التعليق    </label>
                    <input    required="required"    type="text" name="comments" 
                    class="form-control"  placeholder="التعليق"  
                    data-table="" data-filter="" 
                    data-tableid="" data-parentid="" data-parentcol="" />
            </div>
           
          <input id="popmaintenancecomments" type="hidden" name="maintenancecommentid" value=""  />
          <input id="itrmaintenancecomments" type="hidden" name="selectitr" value=""  />

        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">الغاء</button>
        <button type="button" class="btn btn-primary saveformajax" data-form="formmaintenancecomments"> حفظ</button>
      </div>
    </div>
  </div>
</div>
