?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/eldertree/application/views/student/add_new_fee_details.php |
<script> function getFeeParticularAmount(payment_type,index) { if(payment_type == "monthly" ) { $('#first_month_div_'+index).show(); $('#first_term_div_'+index).hide(); } else { $('#first_month_div_'+index).hide(); $('#first_term_div_'+index).show(); } } </script> <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <style> #month_payment_list select{ width: 100px; } </style> <?php $this->load->view('documentreadyfunctions'); ?> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <!-- BEGIN FORM--> <h3 class="form-section">Fee Details</h3> <table class="table table-striped table-hover table-bordered" id="student_tb"> <tr> <th>Fee particular</th> <th>No Of Days</th> <th>Payment Period</th> <th>Amount</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i = 1; $fee_particular = $this->mastermodel->search_fee_particular(); $no_of_days = $this->mastermodel->search_no_sessions(); ?> <tr> <td> <select id="fee_particular_id_new_new_<?= $i ?>" name="fee_particular_id_new_new_<?= $i ?>" class="chosen span12 required" onchange="particular_checking(this)"> <option value="">Select</option> <?php foreach ($fee_particular['results']->result_array() as $list) { echo '<option value="' . $list['fee_particular_id'] . '">' . $list['fee_particular_name'] . '</option>'; } ?> </select> </td> <td> <input type="hidden" name="fee_term_no_of_days_new_new_<?= $i ?>" id="fee_term_no_of_days_new_new_<?= $i ?>" class="number" value="<?= $nodays ?>" /> <?= $nodays ?> </td> <!-- <td> <select id="fee_term_no_of_days_new_new_<?= $i ?>" name="fee_term_no_of_days_new_new_<?= $i ?>" class="chosen span12"> <option value="">Select</option> <?php foreach ($no_of_days['results']->result_array() as $list) { echo '<option value="' . $list['no_sessions'] . '">' . $list['no_sessions'] . '</option>'; } ?> </select> </td>--> <td> <select class="chosen span12" name="payment_type_new_new_<?= $i ?>" id="payment_type_new_new_<?= $i ?>" onchange="getFeeParticularAmount(this.value,<?= $i ?>)"> <option value="">Select</option> <option value="monthly">Monthly</option> <option value="term">Term Wise</option> </select> </td> <td> <div id="first_month_div_<?= $i ?>" style="display: none"> <input type="text" name="pay_amount_month_<?= $i ?>" id="pay_amount_month_<?= $i ?>" class="span12" /> </div> <div id="first_term_div_<?= $i ?>" > <input type="text" name="pay_amount_term_<?= $i ?>" id="pay_amount_term_<?= $i ?>" class="span12" /> </div> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; ?> </table> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Due Dates (for Term):</label> <div class="controls"> <input type="text" class="required calfocus span12" name="fee_term_due_date_new_new" id="fee_term_due_date_new_new"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Due Dates (for monthly):</label> <div class="controls"> <div id="month_payment_list"> <?php $start = $term_academic_details->term_start_date; $end = $term_academic_details->term_end_date; $dt = $term_academic_details->term_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;"><?= date('M Y', strtotime($dt)) ?></label> <select name="month_date[]" class="required chosen" style="width: 75px;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 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> <script defer type="text/javascript"> $(document).ready(function() { $(".addRow").btnAddRow({inputBoxAutoNumber:true},function(row) { $(row).find('.calfocus').each(function() { $(this).removeClass(); $(this).addClass('calfocus').addClass('medium'); $(this).datepick({dateFormat: 'dd-mm-yyyy'}); }); $(row).find('select').removeClass('chosen').show(); $(row).find('.chzn-container').remove(); $(row).find('.chosen').chosen(); }); $(".delRow").btnDelRow(); }); </script>