?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/eduplus2/application/views/examination/loadExamDetails.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="row-fluid"> <div class="span12"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Over All Report Cards</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" 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> <div class="row-fluid"> <div class="span12"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Over All Report Cards</div> </div> <div class="portlet-body"> <?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)) { ?> <table class="table table-striped table-hover table-bordered" > <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 chosen"> <option value="">Select</option> <?= $options ?> </select> </td> </tr> <? $i++; } ?> </table> <?php } ?> </div> </div> </div> <div class="form-actions"> <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); ?>"/> <button style="margin-left: 130px;" onclick="return checkSelectedExams()" type="submit" id="submit" class="btn blue" >Generate</button> <input type="reset" class="btn"> </div>