

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

        <ol class="breadcrumb">
             <li><a href="#">نظام المتدربين</a></li>
            <li><a href="studentsPay.php?do=show">عرض دفع المتدربين </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="studentsPay.php" class="hidden-print"><input type="button"  id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a>
                {if !$show}
                <a href="studentsPay.php?do=show&show=2" target="_blank" class="hidden-print"><input type="button"  id="submit"  class="btn btn-primary pull-left " value="دفع بنك"/></a>
                {/if}

            </div>
            
            <hr/>
            <!--<h3 id="codes" style="direction: ltr;"></h3>-->

            <form class="form-inline hidden-print" method="post" action="studentController.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="">
                    </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: 270px;">
                             <input id="studentaddsubjectid" type="text" name="data2" class="searchdata getselectjoin"  data-placeholder=" اختر  تخصص المتدرب"   data-table="studentaddsubjects" 
                            data-join=" LEFT JOIN studentsubjects ON studentaddsubjects.studentsubjectid = studentsubjects.id 
                             LEFT JOIN studentsubjectgroups ON studentaddsubjects.studentsubjectgroupid = studentsubjectgroups.id "  
                            data-filter=" and studentaddsubjects.del < 2  and studentsubjects.del < 2 and studentsubjectgroups.del < 2 "
                            data-parent="" data-itr=""  data-search="subjectname,'/',subjectgroupname,'/',subjectgroupprice"/> 
                        </div> 
                    </div>
                    <div class="form-group"  >
                        <label class="sr-only">المتدربين</label>
                        <div style="width: 270px;">
                             <input id="" type="text" name="data1"  class="searchdata getselectjoin"  data-placeholder="اختر  المتدرب
                             " data-table="students
                            " data-join=" JOIN studentaddsubjectdetails ON studentaddsubjectdetails.studentid = students.id "   
                            data-filter=" and studentaddsubjectdetails.del < 2 and students.del < 2 " 
                            data-parent="studentaddsubjectid" 
                            data-itr=""  data-search="studentname,'/',studentphone" />
                        </div> 
                    </div>

                     <div class="form-group"  >
                        <label class="sr-only">انظمة الدفع</label>
                        <div style="width: 200px;">
                            <input id="data3" type="text" name="data3" class="searchdata getselectjoin"  data-placeholder="اختر  النظام " data-table="studentspaymentsystems" data-join=""   data-filter="" data-parent="" data-itr=""  data-search="paymentname,'/',paymentprice"/>
                        </div> 
                    </div>
                    
                    {if $studentsetting->showdel eq 1}
                    <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>
                    {/if}
                </form>
            <hr/>



            <table class="table table-black" id="getajaxdata" {if $show eq 2 } data-controll="studentsPay.php?do=showajax2" {else} data-controll="studentsPay.php?do=showajax" {/if}  >
                <thead>
                     <tr>
                        <th style="width:50px;">م</th>
                        <th>النظام</th>
                         <th>المتدرب</th>
                        <th>تليفون </th>
                        <th>نوع الدفع </th>
                         <th>تاريخ الميلاد </th>
                        <th>عدد  الشهور</th>
                        <th>تخصص المتدرب</th>
                        <th>المجموعه</th>
                        <th>السعر</th>
                        <th>تاريخ البدايه</th>
                        <th>تاريخ الانتهاء</th>
                         <th>الدفع</th>
                        <th>التاريخ</th>
                        <th>المستخدم</th>
                        
                        <th class="noprint">طباعه</th>
                        {if $usergroupid|in_array:$showpayedit}
                        <th class="noprint">تعديل</th>
                        {/if}
                        {if $usergroupid|in_array:$showpaydel}
                        <th class="noprint">حذف</th>
                        {/if}
                    </tr>
                </thead>
                <tbody>



                </tbody>
            </table>





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


           


        </div>



    </div>

</div>



<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>



