

<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">
            <div class="panel-heading">
                <h3 class="panel-title">تعديل  </h3>
            </div>
            <div class="panel-body">


                {literal}
               <form class="form-horizontal"  action="studentAbsence.php"  id="studentformajax" method="post"  enctype="multipart/form-data" data-dosave="?do=savedata">

                    {/literal}
                    <input type="hidden"  id="studentabsenceid" name="studentabsenceid" value="{$studentabsencesdata->id}">

                    <div class="form-group"  >
                         <label for="txtName" class="col-lg-1 control-label">التخصصات </label>
                        <div class="col-lg-11">
                             <input id="studentsaddubjectsdaytimeid" type="text" name="studentsaddubjectsdaytimeid" class="getselect" disabled="" data-placeholder="اختر  تخصص المتدرب "  data-table="studentsaddubjectsdaytimes" 
                            data-del="1"  data-filter="" data-parent="" data-itr=""  
                            data-search="subjectname,'/',subjectgroupname,'/',dayar,'/',subjectgroupstimeform,'-',subjectgroupstimeto"/>
                            <input type="hidden" data-table="studentsaddubjectsdaytimeid" data-id="{$studentabsencesdata->studentsaddubjectsdaytimeid}" data-text="{$studentabsencesdata->subjectname}/{$studentabsencesdata->subjectgroupname}/{$studentabsencesdata->dayar}/{$studentabsencesdata->subjectgroupstimeform}-{$studentabsencesdata->subjectgroupstimeto}" 
                            class="selectedit" />
                        </div>
                    </div>

                    <div class="form-group"  >
                        <label for="txtName" class="col-lg-1 control-label">  المتدربين   </label>
                        <div class="col-lg-11">
                            <input type="text" multiple=""   name="studentid"  class="wdt100 getstudentabsence"  data-placeholder="اختر   المتدرب "  required=""  data-parent="" id="studentsaddubjectsdaytimeid"  data-type="{$studentabsencesdata->id}"
                            data-search="studentname,'/',studentphone" data-del="del" 
                            data-table="students" />
                        </div>
                    </div>

                     <div class="form-group">
                        <div class="col-md-12">
                              <div style="text-align: center;color: blue;"><h2>المتدربين  الغائبون</h2></div>
                              <ul  >
                                <li  style="list-style-type: none;" >
                                      <div class="col-lg-11">
                                        <label>الاسم</label>
                                      </div>
                                       <div class="col-lg-1">
                                        <label>جذف</label>
                                      </div>
                                </li> 
                                {foreach $studentabsencedetails as $studentabsencedetail}
                                <li  style="list-style-type: none;" 
                                id="studentabsencedetailsremove1{$studentabsencedetail->id}">
                                      <div class="col-lg-11">
                                         <input type="text" name="" class="form-control" readonly=""
                                         value="{$studentabsencedetail->studentname}/{$studentabsencedetail->studentphone}" style="background: #fff;">
                                      </div>
                                       <div class="col-lg-1 ">
                                            <a href="javascript:;"  data-id="{$studentabsencedetail->id}" data-edit="1" data-container="studentabsencedetails" class="btn btn-xs red pull-right newremove"> x
                                            </a>
                                        </div>
                                </li> 
                                {/foreach}    
                              </ul>
                           </div>
                    </div>



                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="button" class="btn btn-primary pull-left studentformajax" >تعديل   الامر</button>
                        </div>
                    </div>




                </form>
            </div>
        </div>




    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
    selectedit2();
     });
</script>


