?
Current Path : /home1/savoy/public_html/oscarerp.com/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/oscarerp.com/application/views/examination/single_evaluation.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('examination','viewinexaminationsearch','search_evaluation','view_evaluation','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Performance evaluation/Exam</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('examination/addinexamination/update_evaluation/view_evaluation/1', $attributes); $employee=$this->mastermodel->get_data('employee','1','employee_teacher'); $class=$this->mastermodel->getdatas('class_name','class_name_id','desc'); $exam=$this->mastermodel->getdatas('exam_master','exam_master_id','desc'); ?> <div class="grid_6"> <div class="box"> <div class="header main">Performance evaluation/Exam Details </div> <div class="content no-padding"> <div class="section _100"> <label>Class Code </label> <div class="single_page"> <?=$this->mastermodel->get_single_field_value('class_name','class_name_code','class_name_id',$viewinfo->class_name_id);?> </div> </div> <div class="section _100"> <label>Exam Name </label> <div> <select name="exam_master_id" id="exam_master_id" class="chzn-done" disabled> <option value="">Select</option> <?php foreach($exam as $list) { ?> <option value="<?=$list['exam_master_id'];?>"<?php if($list['exam_master_id']==$viewinfo->exam_master_id){echo "selected";}?>><?=$list['exam_master_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Teacher Name </label> <div> <select name="teacher_id" id="teacher_id" class="chzn-done" disabled> <option value="">Select</option> <?php foreach($employee as $list) { ?> <option value="<?=$list['employee_id'];?>"<?php if($list['employee_id']==$viewinfo->teacher_id){echo "selected";}?>><?=$list['employee_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Date Of Test</label> <div class="single_page"> <?=$this->mastermodel->convertdatenormalformat($viewinfo->evaluation_date);?> </div> </div> <div class="section _100"> <label>Remarks </label> <div class="single_page"> <?=$viewinfo->evaluation_remarks;?> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Performance evaluation /Exam Marks Details</div> <div style="overflow-x:scroll;"> <table class="table" id="stud_sub"> <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 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(); ?>