?
Current Path : /home1/savoy/public_html/oscarerp.com/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/public_html/oscarerp.com/application/views/student/single_student_class.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $student = $this->mastermodel->getdatas('student', 'student_id', '', 'student_id'); $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> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('student/addinstudent/update_student_class/view_student_class/1', $attributes); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_student_class','view_student_class','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Student Class Allocation</h4> </div> </div> <div class="grid_12"> <div class="box"> <div class="header main no-icon">Class Room Details</div> <div class="content no-padding"> <table class="table" > <tr> <th>Class Code</th> <th>Class Room Name</th> </tr> <tr> <td><?= $viewinfo->class_name_code; ?></td> <td><?= $viewinfo->class_room_name; ?></td> </tr> </table> <input type="hidden" name="class_name_id" id="class_name_id" value="<?= $viewinfo->class_name_id; ?>"/> </div> </div> <div class="box"> <div class="header main">Student In <?= $viewinfo->class_name_code; ?></div> <div class="content no-padding" > <table class="table" cellpadding="0" cellspacing="0" id="tbl1"> <tr style="border-bottom: 1px solid #71B4D3;"> <th width="10%">Sl No</th> <th width="25%">Student Name</th> <th width="10%">Student No.</th> <th width="10%">Age</th> <th width="10%">Gender</th> <th width="15%">Nationality</th> <th width="10%">No of Days</th> <th>Remove</th> </tr> <tbody id="list_student_added"> <?php $html1 = ''; $html = ''; $index = 1; $i=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> <a href="#" class="clickimage1" onclick="view_single_student_fee(<?= $value['student_class_id'] ?>)"><?= $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><div class="elements"> <img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" alt="Delete" align = "center" class="clickimage" onclick="delete_student_class('<?= $value['student_class_id']; ?>','<?=$i;?>')" alt="" /> </div> </td> </tr> <?php $index++; $i++; } } else { ?> <td colspan="7" 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"/> </div> <div id="sl"></div> <!--<div class="grid_12 " id="stud" style="width: 100%;" style="display:none"> <div class="box"> <div class="actions"> <div class="actions-left"> <div > <div id="empdiv"></div> </div> </div> <div class="actions-right"> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Process</button> </div> </div> </div> </div>--> <?php echo form_close(); ?> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> </div>