?
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/edit_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>Updating 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_entry"> <?=$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="required"> <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=""> <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> <input name="evaluation_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->evaluation_date);?>" id="evaluation_date" type="text" class="calfocus required" /> </div> </div> </div> </div> </div> <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>Monthly Exam (Max Marks) </label> <div> <input type="text" name="month_max_mark" id="month_max_mark" class="required num_only" value="<?=$viewinfo->month_max_mark?>"/> </div> </div> <div class="section _100"> <label>Semester Exam (Max Marks) </label> <div> <input type="text" name="sem_max_mark" id="sem_max_mark" class="required num_only" value="<?=$viewinfo->sem_max_mark?>"/> </div> </div> <div class="section _100"> <label>Remarks </label> <div> <textarea value="<?=$viewinfo->evaluation_remarks;?>" name="evaluation_remarks" id="evaluation_remarks" type="text"></textarea> </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) { $std_student = $this->examinationmodel->get_std_subjects($list['subject_id'], $viewinfo->evaluation_id); $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;"><input type="text" style="width: 40px;height: 30px;" name="monthly_marks_<?= $row['student_id'] . $k ?>" style="width: 120px;height: 30px;" readonly value="deactivate" /></td> <td style="text-align: center;height: 30px;"><input readonly style="width: 40px;height: 30px;" name="semester_marks_<?= $row['student_id'] . $k ?>" id="remark_<?= $i ?>" type="text" value="deactivate"/> <?php $k++; } } else { foreach ($sub_marks as $list) { ?> <td style="text-align: center;height: 30px;"><input type="text" style="width: 40px;height: 30px;" name="monthly_marks_<?= $row['student_id'] . $k ?>" id="monthly_marks_<?= $i ?>" value="<?= $list['evaluation_monthly_marks'] ?>" /></td> <td style="text-align: center;height: 30px;"><input type="text" style="width: 40px;height: 30px;" name="semester_marks_<?= $row['student_id'] . $k ?>" id="semester_marks_<?= $i ?>" type="text" value="<?= $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> <div class="grid_12" > <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset" /> <input type="hidden" name="evaluation_id" value="<?= $viewinfo->evaluation_id ?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close(); ?>