?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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/sec_old/application/views/student/attendance_student.php |
<?php $this->load->view('documentreadyfunctions'); ?> <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;" >Attendance</td> <td style="text-align: center;">Remarks</td> </tr> <tr> <td colspan="5"> </td> <td style="text-align: center;">P/A (mark absent)</td> <td style="text-align: center;"></td> </tr> </thead> <tbody> <?php $html=""; $j = 1; $k = 0; $l = 1; foreach ($students as $list) { $deactivate = $this->studentmodel->check_deactivate($batch, $list['student_id'], $date); 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>'. $list['nationality'] .'</td> <td style="text-align: center;"><input type="hidden" name="attendance'.$j.'" value="deactivate" />Deactivated</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($batch, $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><?= $list['nationality'] ?></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" name="attendance<?= $j ?>" /></td> <?php } ?> <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>