?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/student/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/eldertree/application/views/student/attendance_student.php |
<?php $this->load->view('documentreadyfunctions'); $start_time_array = explode(':', $start_time); $end_time_array = explode(':', $end_time); ?> <div class="portlet box yellow"> <div class="portlet-title" > <div class="caption"><i class="icon-check"></i>Attendance Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="stud_sub" style="background-color: white;"> <thead id="stud_sub_head"> <tr> <td style="text-align: center;height: 30px;">Sl no</td> <td style="text-align: center;">Student Name</td> <td style="text-align: center;" >Student Reg No</td> <td style="text-align: center;" >Gender</td> <td style="text-align: center;" >Nationality</td> <td style="text-align: center;" >Age</td> <td style="text-align: center;" >Attendance</td> <td style="text-align: center;">Time In</td> <td style="text-align: center;">Time Out</td> <td style="text-align: center;">Remarks</td> </tr> <tr> <td colspan="10" style="text-align: center;">Present</td> </tr> </thead> <tbody> <?php $html = ""; $j = 1; $k = 0; $l = 1; foreach ($students as $list) { $deactivate = $this->studentmodel->check_deactivate($list['student_class_id'], $list['student_id'], $date); $age_details = $this->mastermodel->getAgeDetails($list['dob']); if ($deactivate > 0) { $sl = count($students) - $k; $html = ' <tr style="background-color:light-blue;"> <input type="hidden" name="student_id_' . $j . '" value="' . $list['student_id'] . '"/> <td style="text-align: center;height: 30px;">' . $sl . '</td> <td>' . $list['first_name'] ." ". $list['last_name'] . ' </td> <td> ' . $list['reg_no'] . '</td> <td>' . $list['gender'] . '</td> <td>' . $this->mastermodel->get_single_field_value('nationality','nationality_name','nationality_id',$list['nationality_id']) . '</td> <td>' . $age_details['in_words'] . '</td> <td style="text-align: center;"> <input type="hidden" name="attendance' . $j . '" value="deactivate" />Deactivated </td> <td>' . createHours("start_time_hour$j", date("H")) . createMinutes("start_time_minute$j", date("i")) . ' </td> <td>' . createHours("end_time_hour$j", date("H")) . createMinutes("end_time_minute$j", date("i")) . ' </td> <td style="text-align: center;"> <textarea name="remarks' . $j . '" id="remark_' . $j . '" type="text"></textarea> </td> </tr>' . $html; $k++; } else { $sl = $l; $unallocated = $this->studentmodel->check_unallocated($class_name, $list['student_id'], $date); ?> <tr> <input type="hidden" name="student_id_<?= $j ?>" value="<?= $list['student_id'] ?>"/> <td style="text-align: center;height: 30px;"><?= $sl ?></td> <td><?= $list['first_name'] . " " . $list['last_name'] ?></td> <td><?= $list['reg_no'] ?></td> <td><?= $list['gender'] ?></td> <td> <?php $nationality=$this->mastermodel->getSingleFieldValue('nationality', 'nationality_name', 'nationality_id', $list['nationality_id']); echo $nationality; ?></td> <td> <?php /* 'yyyy-mm-dd format' */ $age_details = $this->mastermodel->getAgeDetails($list['dob']); echo $age_details['in_words']; ?> </td> <?php if ($unallocated > 0) { echo '<td style="text-align: center;"><input type="hidden" name="attendance' . $j . '" value="unallocated" /> Unallocated</td>'; } else { ?> <td style="text-align: center;"><input type="checkbox" checked name="attendance<?= $j ?>" /> </td> <?php } ?> <td> <div> <?php echo createHours("start_time_hour$j", $start_time_array[0]); ?> <?php echo createMinutes("start_time_minute$j", $start_time_array[1]); ?> </div> </td> <td> <div> <?php echo createHours("end_time_hour$j", $end_time_array[0]); ?> <?php echo createMinutes("end_time_minute$j", $end_time_array[1]); ?> </div> </td> <td style="text-align: center;"><textarea name="remarks<?= $j ?>" id="remark_<?= $j ?>" type="text"></textarea></td> </tr> <?php $l++; } $j++; } echo $html; ?> </tbody> </table> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="attendance"/> <input type="hidden" name="resfunction" value="search_attendance"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('student','viewinstudentsearch','search_attendance','view_attendance','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div>