?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/savoyglobal.net/sec/application/views/student/update_student_batch_fee.php |
<div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue" style="margin-bottom: 0px;"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Update Student Batch Fee</div> <div class="tools"> <a href="#" onclick="close_fee_modal()" class="remove"></a> </div> </div> <div class="portlet-body form" style="overflow-x: auto;"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/insert_student_wef_course_fee', $attributes); ?> <input type="hidden" value="<?= $student_id ?>" name="student_id"/> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Batch</label> <div class="controls"> <select name="student_batch_id" onchange="load_course_fee_details(this.value)"> <option value="">--select --</option> <?php foreach ($student_batch as $sbatch) { ?> <option value="<?= $sbatch->student_batch_id ?>"><?= $sbatch->batch_no ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid" id="course_fee_details"> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Wef Date</label> <div class="controls"> <input type="text" class="calfocus" name="wef_date" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Amount</label> <div class="controls"> <input type="text" class="" name="amount" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"></div> <div class="span6"> <input type="submit" class="btn btn-primary" value="Add"/> </div> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div> <script> $(document).ready(function(){ $('.calfocus').datepick({ dateFormat : "dd-mm-yyyy" }); $('#validateform').on('submit',function(e){ e.preventDefault(); var url = $(this).attr('action'); var data = $(this).serialize(); $.ajax({ type: "POST", data : data, dataType:"json", url: url, success: function(data) { alert(data.message); $modal.modal('hide'); } }); }); }); function load_course_fee_details(batch_id) { $.ajax({ type: "POST", data : { student_batch_id : batch_id }, dataType:"json", url: "<?= site_url('student/get_student_course_fee_batch') ?>", success: function(data) { $('#course_fee_details').empty().html(data.json_data).show(); } }); } function remove_student_wef_date(student_course_fee_id,obj) { $.ajax({ type: "POST", data : { student_course_fee_id : student_course_fee_id }, dataType:"json", url: "<?= site_url('student/delete_student_course_fee') ?>", success: function(data) { alert(data.message); $(obj).parents('tr').hide(); } }); } </script>