

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

        <ol class="breadcrumb">
             <li><a href="#">نظام المتدربين</a></li>
            <li><a href="studentAbsence.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="studentAbsence.php" class="hidden-print"><input type="button"  id="submit"  class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            
            <hr/>
             <div class="form-group"  >
                <select    data-placeholder="اختر التخصصات   لارسال رسائل الغياب"  class="selectnew sendmassagemanual" id="sendmassagemanual" >
                    <option value="" ></option>
                    {foreach $studentaddsubjects as $studentaddsubject}
                    <option  value="{$studentaddsubject.studentsubjectgroupid}" {if  $times > $studentaddsubject.timeto } disabled="" {/if}> {$studentaddsubject.subjectname} / {$studentaddsubject.subjectgroupname} / {$studentaddsubject.timeform}
                      /  {$studentaddsubject.timeto}</option>
                    {/foreach}
                </select>
            </div>
            <hr/>

            <form class="form-inline hidden-print" method="post" action="studentAbsence.php?do=show">
                    
                   
                    <div class="form-group">
                        <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">
                        <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: 300px;">
                             <input id="studentaddsubjectid" type="text" name="data1" class="searchdata getselectjoin"  data-placeholder="اختر  تخصص المتدرب"
                            data-table="studentaddsubjects" 
                            data-join="  left JOIN studentsubjectgroups ON studentaddsubjects.studentsubjectgroupid = studentsubjectgroups.id
                            left JOIN studentsubjects ON studentsubjectgroups.studentsubjectid = studentsubjects.id
                            left JOIN studentsubjectgroupdays ON studentsubjectgroups.id = studentsubjectgroupdays.studentsubjectgroupid  "   
                            data-filter=" and studentaddsubjects.del < 2  group by studentaddsubjects.studentsubjectgroupid  " data-parent="" data-itr=""  
                            data-search="subjectgroupname,'/',subjectname,'/',subjectprice"  />
                            
                    
                        </div>
                    </div>
                     <div class="form-group"  >
                        <label class="sr-only">المتدربين</label>
                        <div style="width: 200px;">
                               <input id=""  type="text" name="data2"  class="searchdata getselectjoin"  data-placeholder="اختر  المتدرب  " data-table="studentaddsubjectdetails
                            " data-join=" LEFT JOIN students 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: 100px">
                            <select    data-placeholder="اختر " class="selectnew searchdata"  name="data3" id="data3">
                                <option value="" ></option>
                                <option value="0" selected="">حضور</option>
                                <option value="1" >غياب</option>
                               
                            </select>
                        </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" 
            data-controll="studentAbsence.php?do=showajax">
                <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 class="noprint">مراجعه</th>
                        <th class="noprint">حذف</th>
                    </tr>
                </thead>
                <tbody>


                </tbody>
            </table>





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


           


        </div>



    </div>

</div>


