?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/application/views/student/ |
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/student/edit_student_class.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $stud = array(0); $index = 0; ?> <script type="text/javascript"> function getSessionAmount(session,divid){ var res = session.split("~"); $('#'+divid).val(res[1]); } function checkallstd(status,tag) { $('#'+tag+ ' input').each(function(index,obj){ if(obj.type === 'checkbox') { obj.checked = !status; } }); } </script> <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>Edit Student Class Allocation</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_student_class','view_student_class','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/addinstudent/update_student_class/view_student_class/1', $attributes); ?> <h3 class="form-section">Class Room Details</h3> <table class="table table-striped table-hover table-bordered" > <tr> <th>Class Code</th> <th>Class Room Name</th> </tr> <tr> <td><?= $class_details->class_name_code; ?></td> <td><?= $class_details->class_room_name; ?></td> </tr> </table> <input type="hidden" name="class_name_id" id="class_name_id" value="<?= $class_details->class_name_id; ?>"/> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i><?= $class_details->class_name_code; ?></div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" cellpadding="0" cellspacing="0" id="tbl1"> <tr style="border-bottom: 1px solid #71B4D3;"> <th width="6%">Sl No</th> <th width="25%">Student Name</th> <th width="10%">Student Reg No.</th> <th width="10%">Age</th> <th width="10%">Gender</th> <th width="15%">Nationality</th> <th width="8%">No of Days</th> <th>Edit</th> <th>Delete</th> </tr> <tbody id="list_student_added"> <?php $html1 = ''; $html = ''; $i=1; $index = 1; $active = count($class_students) - (count($cancelled_student) + count($deactivate_student)); $slno1 = $active + 1; $slno2 = $active + count($cancelled_student) + 1; if (count($class_students)) { $temp = ""; foreach ($class_students as $value) { $stud[] = $value['term_id'] . '_' . $value['student_id']; if (in_array($value['student_id'], $cancelled_student)) { $status = 'Cancelled'; } elseif (in_array($value['student_id'], $deactivate_student)) { $status = 'Deactivated'; } else { $status = 'Active'; } ?> <tr id="<?=$i;?>"> <td><?= $index ?></td> <td><?= $value['first_name'] ." ". $value['last_name'] ?></a></td> <td><?= $value['reg_no']; ?></td> <td> <?php /* 'yyyy-mm-dd format' */ $age_details = $this->mastermodel->getAgeDetails($value['dob']); echo $age_details['in_words']; ?> </td> <td><?= $value['gender']; ?></td> <td><?= $this->mastermodel->get_single_field_value('nationality','nationality_name','nationality_id',$value['nationality_id']) ?></td> <td><?= $value['no_of_days'] ?></td> <td><a class="edit" href="#" onclick="student_class_details('student','edit_student_fee','<?= $value['student_class_id']; ?>','student_class_id','edit_student_fee')">Edit</a></td> <td> <a class="delete" href="#" onclick="delete_student_class('<?= $value['student_class_id']; ?>','<?=$i;?>')">Delete</a> </td> </tr> <?php $index++; $i++; } } else { ?> <td colspan="8" style='background-color:#71B4D3;color:white;'> No student is in this Class </td> <?php } ?> </tbody> </table> </div> </div> <input type="hidden" value="<?= implode(',', $stud) ?>" name="list_stud_id" id="list_stud_id" /> <input id="index" name="index" value="<?= $index ?>" type="hidden"/> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>