?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/application/views/student/attendance_student.php |
<?php $this->load->view('documentreadyfunctions'); ?> <div class="portlet box blue"> <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 No</td> <td style="text-align: center;" >Gender</td> <td style="text-align: center;" >Nationality</td> <td style="text-align: center;" >Attended Sessions</td> <td style="text-align: center;" >Attendance</td> <td style="text-align: center;">Remarks</td> </tr> <tr> <td colspan="6"> </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); $attended = $this->mastermodel->get_count_attended_class($list['student_id'], $batch); 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>' . $attended . '/' . $list['no_sessions'] . '</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> <td <?php if ($attended >= $list['no_sessions']) {echo "style = 'color:red'";} ?>> <?= $attended . '/' . $list['no_sessions'] ?> </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> <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>