?
Current Path : /home1/savoy/www/savoyglobal.net/koaladraft/application/views/master/ |
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/koaladraft/application/views/master/single_fee_term.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('master','viewinmastersearch','search_fee_term','view_fee_term','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Fee Setup Details</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('', $attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Term</label> <div class="single_page"> <?php echo $this->mastermodel->get_single_field_value('term', 'term_name', 'term_id', $viewinfo->fee_term_term_id); ?> </div> </div> <div class="section _100"> <label>Class Session </label> <div class="single_page"> <?php echo $this->mastermodel->get_single_field_value('session', 'session_name', 'session_id', $viewinfo->fee_term_session); ?> </div> </div> <!-- <div class="section _100"> <label>Fee Type Name</label> <div class="single_page"> </div> </div>--> <div class="section _100"> <label>Academic Year</label> <div class="single_page"> <?= $this->mastermodel->get_single_field_value('academic_year','display_name','academic_year_id',$viewinfo->fee_term_academic_year_id) ?> </div> </div> <div class="section _100"> <label> Refundable Bond Amount</label> <div class="single_page"> <?= $viewinfo->refund_bond_amount ?> </div> </div> </div> </div> </div> <div class="grid_12" > <div class="box"> <div class="content no-padding"> <div class="header main">Fee Details</div> <?php $fee_particular = $this->mastermodel->getdatas('fee_particular'); $no_of_days = $this->mastermodel->getdatas('no_sessions'); $particular_list = $this->mastermodel->get_data('fee_term_details', $viewinfo->fee_term_id, 'fee_term_id'); ?> <table class="table" id="student_tb" style="text-align: center"> <tr> <th>Slno</th> <th>Fee particular</th> <th>Term Fee Amount</th> <th>Monthly Fee Amount</th> <th>No Of Days</th> </tr> <?php $i = 0; foreach ($particular_list as $row) { ?> <tr> <td><?= ++$i ?></td> <td> <?php echo $this->mastermodel->get_single_field_value('fee_particular', 'fee_particular_name', 'fee_particular_id', $row['fee_particular_id']); ?> </td> <td style="text-align: right;"> <?= number_format($row['fee_term_amount'], 2) ?> </td> <td style="text-align: right;"> <?= number_format($row['fee_month_amount'], 2) ?> </td> <td style="text-align: right;"> <?= $row['fee_term_no_of_days'] ?> </td> </tr> <?php } ?> </table> <div class="section _100"> <label>Due Dates (for Term)</label> <div class="single_page"> <?= $this->mastermodel->convertdatenormalformat($viewinfo->fee_term_due_date) ?> </div> </div> <div class="section _100"> <label>Payment Date (for monthly)</label> <div id="month_payment_list"> <?php $accademic_details = $this->mastermodel->get_data_srow('academic_year', $viewinfo->fee_term_academic_year_id, 'academic_year_id'); $academic_year_id = $accademic_details->academic_year_id; $term_academic_details = $this->mastermodel->get_data_dual_srow('term_academic_details', $academic_year_id, 'academic_year_id', $viewinfo->fee_term_term_id, 'term_id'); $month_dates = $this->mastermodel->get_data('fee_term_due_date', $viewinfo->fee_term_id, 'fee_term_id'); $month_pay_date = array(); foreach ($month_dates as $value) { $day = strtotime($value['fee_term_monthly_due_date']); $month_pay_date[date('m-Y', $day)] = date('d', $day); } $start = $term_academic_details->term_start_date; $end = $term_academic_details->term_end_date; $dt = $term_academic_details->term_start_date; // $start = $accademic_details->academic_year_start_date; // $end = $accademic_details->academic_year_end_date; // $dt = $accademic_details->academic_year_start_date; $options = " <select> <option></option> </select> "; while (strtotime($dt) <= strtotime($end)) { $month = date('m', strtotime($dt)); $year = date('Y', strtotime($dt)) ?> <label style="float:left;width:80px;margin-top: 5px;"><?= date('M Y', strtotime($dt)) ?></label> <select disabled name="month_date[]" class="required chzn-done" style="width: 50px;clear: right;float: left;margin-bottom:10px;"> <?php for ($i = 1; $i <= $num = cal_days_in_month(CAL_GREGORIAN, $month, $year); $i++) { $day = str_pad($i, 2, 0, STR_PAD_LEFT) ?> <option <?= ($i == $month_pay_date[$month . '-' . $year]) ? "selected" : "" ?> value="<?= $year . '-' . $month . '-' . $day ?>"><?= $day ?></option> <?php } ?> </select> <div class="clear"></div> <?php $dt = date('Y-m-01', strtotime("+1 months", strtotime($dt))); } //echo $end; //echo date('Y-m', strtotime("+1 months", strtotime("09-12-1989"))) ?> </div> </div> </div> </div> </div> <?php echo form_close(); ?>