?
Current Path : /home1/savoy/public_html/savoyglobal.net/ccnerp/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/public_html/savoyglobal.net/ccnerp/application/views/master/single_fee_collection.php |
<?php echo form_close(); ?><?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $accademic_details=$this->mastermodel->get_data_srow('academic_year',$viewinfo->fee_collection_academic_year, 'academic_year_year'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmasetersearch','search_fee_collection','view_fee_collection','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Fee collection dates</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>Academic Year</label> <div class="single_page"> <?php echo $viewinfo->fee_collection_academic_year; ?> </div> </div> <div class="section _100"> <label>Payment Date (for term wise)</label> <div> <table> <?php $terms=$this->mastermodel->getdatas('term'); $i=0; foreach($terms as $list) { $i++; $term_date=$this->mastermodel->convertdatenormalformat($this->mastermodel->get_single_field_value_two('fee_collection_term', 'fee_collection_term_date', 'fee_collection_id', $viewinfo->fee_collection_id, 'fee_collection_term_id', $list['term_id'])); ?> <tr><td><?=$list['term_name'];?>: </td> <td><?=$term_date;?></td></tr> <?php } ?> </table> </div> </div> <div class="section _100"> <label>Payment Date (for monthly)</label> <div id="month_payment_list"> <?php $month_dates=$this->mastermodel->get_data('fee_collection_details',$viewinfo->fee_collection_id,'fee_collection_id'); $month_pay_date=array(); foreach ($month_dates as $value) { $day= strtotime($value['fee_collection_date_month']); $month_pay_date[date('m-Y',$day)]=date('d',$day); } $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> <?php echo form_close(); ?>