?
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_batch.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('student','viewinstudentsearch','search_student_batch','view_student_batch','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Batch Allocation Details</h4> </div> </div> <?php $course = $this->mastermodel->get_data_srow('course', $viewinfo->course_id, 'course_id'); $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('master/addinmaster/update_batch/view_batch/1', $attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main">Batch Details </div> <div class="content no-padding"> <div class="section _100"> <label>Class Code </label> <div class="single_page"> <label> <?= $viewinfo->batch_no ?> </label> </div> </div> <div class="section _100"> <label> Course Name</label> <div class="single_page"> <label> <?= $course->course_name ?> </label> </div> </div> <div class="section _100"> <label> Teacher</label> <div class="single_page"> <label> <?php $teacher=$this->mastermodel->get_teacher_batch($viewinfo->batch_id,date("d-m-Y")); if(!empty($teacher)) echo $teacher->employee_name; ?> </label> </div> </div> <div class="section _100"> <label> Course Code</label> <div class="single_page"> <label> <?= $course->course_code ?> </label> </div> </div> <div class="section _100"> <label>Batch Start date</label> <div class="single_page"> <?= $this->mastermodel->convertdatenormalformat($viewinfo->start_date) ?> </div> </div> </div> </div> </div> <div id="sl"></div> <div class="grid_12" style="min-height: 400px;"> <div id="salpay"></div> <div id="salary_box" style="list-style: none;"> <div class="grid_12" > <div class="box"> <div class="header main">Student Details</div> <div class="content no-padding" > <table class="table" cellpadding="0" cellspacing="0" id="tbl1"> <tr > <th>Sl No</th> <th>Student Name</th> <th>Student No</th> <th>Gender</th> <th>Nationality</th> <th >Status</th> <th>Batch Allocation Date</th> <th>Registration Fee</th> <th>Course Fee</th> <th >Books Fees</th> <th>Sessions</th> <th>Monthly Payment</th> </tr> <?php $slno = 1; $html1=''; $html=''; $active=count($batch_students)-(count($cancelled_student)+count($deactivate_student)); $slno1=$active+1; $slno2=$active+count($cancelled_student)+1; foreach ($batch_students as $student) { if (in_array($student['student_id'], $cancelled_student)) { $status = 'Cancelled'; $html='<tr class="cancelled_tr"> <td>'.$slno2.'</td> <td> '.$student['first_name'] . ' ' . $student['last_name'].' </td> <td> '. $student['reg_no'] .' </td> <td> '.$student['gender'] .' </td> <td> '.$student['nationality'] .' </td> <td> '. $status.' </td> <td> '.$this->mastermodel->convertdatenormalformat($student['date']).' </td> <td style="text-align: right;">'. number_format($student['registration_fee'], 2) .'</td> <td style="text-align: right;">'. number_format($student['course_fee'], 2) .'</td> <td style="text-align: right;">'. number_format($student['books_fee'], 2) .'</td> <td style="text-align: right;">'. $student['no_sessions'] .'</td> <td style="text-align: right;">'. number_format($student['session_amount'], 2) .'</td> </tr>'.$html; $slno2++; } elseif (in_array($student['student_id'], $deactivate_student)) { $status = 'Deactivated'; $html1='<tr class="deactivated_tr"> <td>'.$slno1.'</td> <td> '.$student['first_name'] . ' ' . $student['last_name'].' </td> <td> '. $student['reg_no'] .' </td> <td> '.$student['gender'] .' </td> <td> '.$student['nationality'] .' </td> <td> '. $status.' </td> <td> '.$this->mastermodel->convertdatenormalformat($student['date']).' </td> <td style="text-align: right;">'. number_format($student['registration_fee'], 2) .'</td> <td style="text-align: right;">'. number_format($student['course_fee'], 2) .'</td> <td style="text-align: right;">'. number_format($student['books_fee'], 2) .'</td> <td style="text-align: right;">'. $student['no_sessions'] .'</td> <td style="text-align: right;">'. number_format($student['session_amount'], 2) .'</td> </tr>'.$html1;$slno1++; } else { $status = 'Active'; ?> <tbody> <tr> <td><?= $slno; ?></td> <td> <?= $student['first_name'] . ' ' . $student['last_name'] ?> </td> <td> <?= $student['reg_no'] ?> </td> <td> <?= $student['gender'] ?> </td> <td> <?= $student['nationality'] ?> </td> <td> <?= $status; ?> </td> <td> <?= $this->mastermodel->convertdatenormalformat($student['date']) ?> </td> <td style="text-align: right;"><?= number_format($student['registration_fee'], 2) ?></td> <td style="text-align: right;"><?= number_format($student['course_fee'], 2) ?></td> <td style="text-align: right;"><?= number_format($student['books_fee'], 2) ?></td> <td style="text-align: right;"><?= $student['no_sessions'] ?></td> <td style="text-align: right;"><?= number_format($student['session_amount'], 2) ?></td> </tr> </tbody> <?php $slno++; } } echo $html1; echo $html; ?> </table> </div> </div> </div> </div> </div> <?php echo form_close(); ?>