?
Current Path : /home1/savoy/public_html/savoyglobal.net/ccnerp/application/views/examination/ |
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/ccnerp/application/views/examination/loadexamdetails.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="grid_12"> <div class="box"> <div class="header main no-icon">Over All Report Card <span></span> </div> <div class="content no-padding"> <table class="table" id="student_exam_table"> <tr> <th>Select</th> <th>Exam Name</th> <th>Days Per Semester</th> <th>Days Absent</th> <th>Days Late</th> </tr> <?php $exam_master_id = array(); if (!empty($exam_details)) { foreach ($exam_details as $list) { $exam_master_id[] = $list['exam_master_id']; $sem_id = 0; $days_per_sem = 0; $days_absent = 0; $days_late = 0; if (isset($student_sem_details[$list['exam_master_id']])) { $sem = $student_sem_details[$list['exam_master_id']]; $sem_id = $sem['student_sem_id']; $days_per_sem = $sem['no_days_per_sem']; $days_absent = $sem['no_days_absent']; $days_late = $sem['no_days_late']; } ?> <tr> <td><input type="checkbox" checked onchange="setRequired('select_<?= $list['exam_master_id'] ?>')" name="select[]" id="select_<?= $list['exam_master_id'] ?>" value="<?= $list['exam_master_id'] ?>" class="select_exam"/> <input type="hidden" name="sem_id_<?= $list['exam_master_id'] ?>" value="<?= $sem_id ?>"/> </td> <td><?= $list['exam_master_name'] ?></td> <td><input class="required" type="text" value="<?= $days_per_sem ?>" class="select_exam_<?= $list['exam_master_id'] ?> num_only" name="days_per_sem_<?= $list['exam_master_id'] ?>"/></td> <td><input class="required" type="text" value="<?= $days_absent ?>" class="select_exam_<?= $list['exam_master_id'] ?>" name="days_absent_<?= $list['exam_master_id'] ?>"/></td> <td><input class="required" type="text" value="<?= $days_late ?>" class="select_exam_<?= $list['exam_master_id'] ?>" name="days_late_<?= $list['exam_master_id'] ?>"/></td> </tr> <? } } else { echo "<tr><td colspan='5'>No Result found</td></tr>"; } ?> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header main no-icon">Over All Report Card <span></span> </div> <?php $effort_selected=array(); foreach ($student_effort as $value) { $effort_selected[$value['subject_id']]=$value['effort_id']; } $options = ""; foreach ($effort as $list) { $options.='<option value="' . $list['effort_behavior_id'] . '">' . $list['effort_behavior_status'] . '</option>'; } if (!empty($exam_details)) { ?> <div class="content no-padding"> <table class="table" > <tr> <th>Subject</th> <th>Effort/Behavior</th> </tr> <?php $i = 1; foreach ($subject_list as $key => $value) { if(isset($effort_selected[$key])){ $ef_id=$effort_selected[$key]; ?> <script> $('#effort_id_<?= $i ?>').val(<?=$ef_id?>); </script> <?php } ?> <tr> <td><?= $value ?><input type="hidden" name="sub_id_<?= $i ?>" value="<?= $key ?>"/></td> <td> <select id="effort_id_<?= $i ?>" name="effort_id_<?= $i ?>" class="required chzn-done"> <option value="">Select</option> <?= $options ?> </select> </td> </tr> <? $i++; } ?> </table> </div> <div class="actions"> <div class="actions-left"> <input type="hidden" name="title" value="Overall Report Card"/> <input type="hidden" name="sub_list" value="<?= $i ?>"/> <input type="hidden" name="master" value="<?= implode(',', $exam_master_id); ?>"/> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="return checkSelectedExams()">Generate</button> </div> </div> <?php } ?> </div> </div>