?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/examination/single_evaluation.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Performance evaluation/Exam</div> <div class="tools"> <a href="#" onclick="viewdata('examination','viewinexaminationsearch','search_evaluation','view_evaluation','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('examination/addinexamination/update_evaluation/view_evaluation/1', $attributes); $employee = $this->mastermodel->get_data('employee', '1', 'employee_teacher'); $class = $this->mastermodel->search_class_name(); $exam = $this->examinationmodel->search_exam_master(); ?> <h3 class="formsection">Performance evaluation/Exam Details </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Class Code </label> <div class="controls"><span class="text bold"> <?= $this->mastermodel->get_single_field_value('class_name', 'class_name_code', 'class_name_id', $viewinfo->class_name_id); ?> </span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Exam Name </label> <div class="controls"><span class="text bold"> <?php foreach ($exam['results']->result_array() as $list) { if ($list['exam_master_id'] == $viewinfo->exam_master_id) { echo $list['exam_master_name'];; } } ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Teacher Name </label> <div class="controls"><span class="text bold"> <?php foreach ($employee as $list) { if ($list['employee_id'] == $viewinfo->teacher_id) { echo $list['employee_name']; } } ?> </span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Date Of Test</label> <div class="controls"><span class="text bold"> <?= $this->mastermodel->convertdatenormalformat($viewinfo->evaluation_date); ?> </span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks </label> <div class="controls"> <span class="text bold"> <?= $viewinfo->evaluation_remarks; ?></span> </div> </div> </div> </div> <h3 class="form-section">Performance evaluation/Exam Marks Details</h3> <div class="row-fluid"> <div class="span12"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>Performance evaluation/Exam Details</div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead id="stud_sub_head"> <tr> <td style="text-align: center;width: 120px;height: 30px;">Sl no</td> <td style="text-align: center;">Student Name</td> <td style="text-align: center;width: 60px;">Student Reg No</td> <?php $class_room_id = $this->mastermodel->get_single_field_value('class_name', 'class_room_id', 'class_name_id', $viewinfo->class_name_id); $sub = $this->mastermodel->get_data('subject', $class_room_id, 'class_room_id'); $student = $this->studentmodel->get_student_class_allocation_details($viewinfo->class_name_id, $this->mastermodel->convertdateformat($viewinfo->evaluation_date)); $i = 1; foreach ($sub as $list) { $subjects = $this->mastermodel->get_single_field_value('subject', 'subject_name', 'subject_id', $list['subject_id']); ?> <input type="hidden" name="subject_<?= $i ?>" value="<?= $list['subject_id'] ?>"/> <td style="text-align: center" colspan="2"><?= $subjects; ?></td> <?php $i++; } ?> </tr> <tr> <td colspan="3"> </td> <?php for ($i = 1; $i <= sizeof($sub); $i++) { ?> <td style="text-align: center">Monthly</td> <td style="text-align: center">Sem</td> <?php } ?> </tr> </thead> <tbody id="stud_sub_body"> <?php $j = 1; if (sizeof($student) > 0) { foreach ($student as $row) { $deactivate = $this->studentmodel->check_deactivate($viewinfo->class_name_id, $row['student_id'], $this->mastermodel->convertdatenormalformat($viewinfo->evaluation_date)); $sub_marks = $this->examinationmodel->get_marks($row['student_id'], $viewinfo->evaluation_id); $studnt_name = $this->mastermodel->get_data_srow('student', $row['student_id'], 'student_id'); ?> <tr> <input type="hidden" name="student_id_<?= $j ?>" value="<?= $row['student_id'] ?>"/> <td style="text-align: center;height: 30px;"><?= $j ?></td> <td><?= $studnt_name->first_name . " " . $studnt_name->last_name ?></td> <td style="text-align: center"><?= $studnt_name->reg_no ?></td> <?php $k = 1; if ($deactivate > 0) { foreach ($sub_marks as $list) { ?> <td style="text-align: center;height: 30px;">Deactivate</td> <td style="text-align: center;height: 30px;">Deactivate/> <?php $k++; } } else { foreach ($sub_marks as $list) { ?> <td style="text-align: center;height: 30px;"><?= $list['evaluation_monthly_marks'] ?></td> <td style="text-align: center;height: 30px;"><?= $list['evaluation_semester_marks'] ?></td> <?php $k++; } } if (sizeof($sub) > sizeof($sub_marks)) { $a = sizeof($sub_marks) + 1; for ($i = $a; $i <= sizeof($sub); $i++) { ?> <td style="text-align: center;height: 30px;"><input type="text" style="width: 40px;height: 30px;" name="monthly_marks_<?= $row['student_id'] . $i ?>" id="monthly_marks_<?= $i ?>" /></td> <td style="text-align: center;height: 30px;"><input type="text" style="width: 40px;height: 30px;" name="semester_marks_<?= $row['student_id'] . $i ?>" id="semester_marks_<?= $i ?>"/></td> <?php } } ?> </tr> <?php $j++; } } ?> </tbody> </table> </div> </div> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </div> </div>