?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus1/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/public_html/savoyglobal.net/eduplus1/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="grid_12" > <div class="box"> <div class="content no-padding"> <div class="header main"> Attendance Details</div> <table class="table" id="stud_sub"> <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 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 class="grid_12" > <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div>