?
Current Path : /home1/savoy/public_html/savoyglobal.net/eldertree/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/eldertree/application/views/master/add_fee_terms.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <script> function get_term(academic_year_id) { $('#fee_term_term_id').empty().html('<CENTER><img src="<?=base_url()?>assets/img/loading.gif" class="loading"/></CENTER>'); $('#fee_term_term_id').load("<?=site_url() ?>/master/get_term_id/"+academic_year_id); $('#fee_term_term_id_chzn').remove(); $('#fee_term_term_id').removeClass('chzn-done'); $('#fee_term_term_id').show(); } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Creating new Fee Settings</div> <div class="tools"> <a href="#" onclick="viewdata('master','viewinmastersearch','search_fee_term','view_fee_term','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id'=> 'validateform', 'class'=> 'form-horizontal validate'); echo form_open('master/addinmaster/insert_fee_term/view_fee_term/1', $attributes); ?> <div id="success-panel" class="message" ></div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Academic Year </label> <div class="controls"> <?php $academic_year = $this->mastermodel->search_academic_year(); ?> <select class="chosen required span12" name="fee_term_academic_year_id" id="fee_term_academic_year_id" onchange="get_term(this.value)"> <option value="">Select</option> <?php foreach ($academic_year['results']->result_array() as $list) { ?> <option <?php if ($list['current'] == 1) echo "selected"; ?> value="<?= $list['academic_year_id'] ?>"><?= $list['display_name'] ?></option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Term</label> <div class="controls"> <?php $academic_year_id=$this->mastermodel->get_single_field_value('academic_year', 'academic_year_id', 'current', 1); $term_values = $this->mastermodel->academic_year($academic_year_id); ?> <select id="fee_term_term_id" name="fee_term_term_id" class="chosen valid required span12"> <option value="">Select</option> <?php foreach ($term_values as $list) { ?> <option value="<?= $list['term_id']; ?>"><?= $list['term_name']; ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Class Session</label> <div class="controls"> <?php $session = $this->mastermodel->search_session(); ?> <select name="fee_term_session" id="fee_term_session" class="required chosen span12"> <option value="">Select</option> <?php foreach ($session['results']->result_array() as $list) { ?> <option value="<?= $list['session_id']; ?>"><?= $list['session_name']; ?></option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Refundable Bond Amount</label> <div class="controls"> <input type="text" name="refund_bond_amount" id="refund_bond_amount" class="span12" value="0"/> </div> </div> </div> </div> <button type="button" onclick="loadTermAcademicDetails()" class="btn blue"><i class="icon-ok"></i> Load</button> <div id="load_details"> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div> <script> $(document).ready(function() { FormSamples.init(); $('select').chosen(); }); </script>