?
Current Path : /home1/savoy/www/savoyglobal.net/sec/draft/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/sec/draft/application/views/student/edit_student_batch.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 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 blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Update Student Batch Allocation</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_student_batch','view_student_batch','<?= $_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_batch/view_student_batch/1', $attributes); ?> <h3 class="form-section">Batch Details</h3> <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;"> <tr> <th>Batch Code</th> <th>Course Name</th> <th>Teacher</th> <th>Change Date of Allotment</th> </tr> <tr> <td><?= $viewinfo->batch_no; ?></td> <td> <?= $viewinfo->course_code; ?></td> <td> <?php $teacher = $this->mastermodel->get_teacher_batch($viewinfo->batch_id, date("d-m-Y")); if (!empty($teacher)) echo $teacher->employee_name; ?> </td> <td><input class="m-wrap required calfocus" type="text" name="date" id="date" style="width:inherit;"/></td> </tr> </table> <input type="hidden" name="batch_id" id="batch_id" value="<?= $viewinfo->batch_id; ?>"/> <input type="hidden" name="course_id" id="course_id" value="<?= $viewinfo->course_id ?>"/> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Student in <?= $viewinfo->batch_no; ?></div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;"> <thead> <th width="10%"> <input style="width:15px;" type="checkbox" id="list_check_all" name="list_check_all" checked onclick="checkallstd(this.checked,'list_student_added')"/>Mark </th> <th width="30">Student Name</th> <th width="10%">Student No</th> <th width="10%">Gender</th> <th width="10%">Nationality</th> <th width="10%">Status</th> <th width="15%">No of Sessions</th> <th width="10%">Registration Fee</th> <th width="10%">Books Fee</th> <th width="15%">Recurring</th> <th width="10%">Course Fee / WEF Date</th> </thead> <tbody id="list_student_added"> <?php if (count($batch_students)) { foreach ($batch_students as $value) { $stud[] = $value['student_id']; $index++; $scf = $this->studentmodel->get_student_current_course_fee($value['student_batch_id'], 1); if (!empty($scf)) { $wef_date = $this->mastermodel->convertdatenormalformat($scf->scf_wef_date); $course_amount = $scf->scf_course_fee; } else { $wef_date = date("d-m-Y"); $course_amount = $value['course_fee']; } if (in_array($value['student_id'], $cancelled_student)) { $status = 'Cancelled'; ?> <tr class="cancelled_tr"> <td> <input name="select_student" <?= $index ?> id="select_student<?= $index ?>" checked style="width:15px;" type="checkbox" /> <input name="student_batch_id<?= $index ?>" id="student_batch_id<?= $index ?>" value="<?= $value['student_batch_id'] ?>" type="hidden"/> </td> <td> <?= $value['first_name'] . ' ' . $value['last_name'] ?> <input name="student_id <?= $index ?>" id="student_id <?= $index ?>" type="hidden" value="<?= $value['student_id'] ?>"/> </td> <td> <?= $value['reg_no'] ?> </td> <td> <?= $value['gender'] ?> </td> <td> <?= $value['nationality'] ?> </td> <td> <?= $status ?> </td> <td> <div style="height:10px"></div> <select name="session<?= $index ?>" id="session<?= $index ?>" class="chzn-done small_textbox"> <option value="">Select</option><?php if (isset($sections)) { foreach ($sections as $list) { echo '<option value="' . $list['no_sessions_id'] . '"'; if ($list['no_sessions_id'] == $value['no_sessions']) echo "selected"; echo'>' . $list['no_sessions'] . '</option>'; } } ?> </select> </td> <td> <input name="register_fee<?= $index ?>" id="register_fee<?= $index ?>" type="text" class="medium_textbox m-wrap" value="<?= $value['registration_fee'] ?>" /> </td> <td> <input name="books_fee<?= $index ?>" id="course_fee<?= $index ?>" type="text" class="required auto medium_textbox m-wrap" value="<?= $value['books_fee'] ?>" /> </td> <td> <input type="checkbox" name="recurring<?= $index ?>" <?php if ($value['recurring'] == 1) { echo "checked"; } ?> /> </td> <td> <input name="course_fee<?= $index ?>" id="course_fee<?= $index ?>" type="text" class="required auto medium_textbox m-wrap" value="<?= $value['course_fee'] ?>" /> </td> </tr> <?php } elseif (in_array($value['student_id'], $deactivate_student)) { $status = 'Deactivated'; ?> <tr class="deactivated_tr"> <td> <input name="select_student<?= $index ?>" id="select_student<?= $index ?>" checked style="width:15px;" type="checkbox" /> <input name="student_batch_id<?= $index ?>" id="student_batch_id<?= $index ?>" value="<?= $value['student_batch_id'] ?>" type="hidden"/> </td> <td> <?= $value['first_name'] . ' ' . $value['last_name'] ?> <input name="student_id<?= $index ?>" id="student_id<?= $index ?>" type="hidden" value="<?= $value['student_id'] ?>"/> </td> <td> <?= $value['reg_no'] ?> </td> <td> <?= $value['gender'] ?> </td> <td> <?= $value['nationality'] ?> </td> <td> <?= $status ?> </td><td> <div style="height:10px"></div> <select name="session<?= $index ?>" id="session<?= $index ?>" class="medium_textbox"> <option value="">Select</option> <?php if (isset($sections)) { foreach ($sections as $list) { echo '<option value="' . $list['no_sessions_id'] . '"'; if ($list['no_sessions_id'] == $value['no_sessions']) echo "selected"; echo'>' . $list['no_sessions'] . '</option>'; } } ?> </select> </td> <td> <input name="register_fee<?= $index ?>" id="register_fee<?= $index ?>" type="text" class=" auto m-wrap small_textbox" value="<?= $value['registration_fee'] ?>" /> </td> <td> <input name="books_fee<?= $index ?>" id="books_fee<?= $index ?>" type="text" class="required auto m-wrap small_textbox" value="<?= $value['books_fee'] ?>" /> </td> <td> <input type="checkbox" name="recurring<?= $index ?>" <?php if ($value['recurring'] == 1) { echo "checked"; } ?> /> </td> <td> <input name="course_fee<?= $index ?>" id="course_fee<?= $index ?>" type="text" class="required auto m-wrap small_textbox" value="<?= $value['course_fee'] ?>" /> </td> <?php } else { $status = 'Active'; ?> <tr > <td> <input name="select_student<?= $index ?>" id="select_student<?= $index ?>" checked style="width:15px;" type="checkbox" /> <input name="student_batch_id<?= $index ?>" id="student_batch_id<?= $index ?>" value="<?= $value['student_batch_id'] ?>" type="hidden"/> </td> <td> <?= $value['first_name'] . ' ' . $value['last_name'] ?> <input name="student_id<?= $index ?>" id="student_id<?= $index ?>" type="hidden" value="<?= $value['student_id'] ?>"/> </td> <td> <?= $value['reg_no']; ?> </td> <td> <?= $value['gender']; ?> </td> <td> <?= $value['nationality']; ?> </td> <td> <?= $status; ?> </td> <td> <div style="height:10px"></div> <select name="session<?= $index ?>" id="session<?= $index ?>" class="small_textbox"> <option value="">Select</option> <?php if (isset($sections)) { foreach ($sections as $list) { echo '<option value="' . $list['no_sessions_id'] . '~' . '"'; if ($list['no_sessions_id'] == $value['no_sessions']) echo "selected"; echo'>' . $list['no_sessions'] . '</option>'; } } ?> </select> </td> <td> <input name="register_fee<?= $index ?>" id="register_fee<?= $index ?>" type="text" class=" auto m-wrap small_textbox" value="<?= $value['registration_fee'] ?>" /> </td> <td> <input name="books_fee<?= $index ?>" id="course_fee<?= $index ?>" type="text" class="auto m-wrap small_textbox" value="<?= $value['books_fee'] ?>" /> </td> <td> <input type="checkbox" name="recurring<?= $index ?>" <?php if ($value['recurring'] == 1) { echo "checked"; } ?> /> </td> <td> <input name="course_fee<?= $index ?>" id="course_fee<?= $index ?>" type="text" class="required auto m-wrap small_textbox" value="<?= $course_amount ?>" /> <input type="text" class="required calfocus m-wrap medium_textbox" name="course_fee_date<?= $index ?>" id="course_fee_date<?= $index ?>" value="<?= $wef_date ?>" /> </td> </tr> <?php } } } else { ?> <td colspan="11"> No student is in this batch </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"/> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="student_batch"/> <input type="hidden" name="resfunction" value="search_student_batch"/> <!-- <input type="hidden" name="parent_id" id="parent_id" class="" value="<?= $viewinfo->parent_id ?>"/> --> <button type="submit" class="btn blue" onclick="addformdata('validateform')"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('student','viewinstudentsearch','search_student_batch','view_student_batch','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>