?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/koaladraft/application/views/master/add_fee_collection.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function get_class_name() { var class_array = ($("#class_room_id").val()).split("~"); $("#class_name_code").val(class_array[1]+'/'+$("#class_name_academic_year").val()); } function get_academics_months(value){ var divid="month_payment_list"; var data=value.split("~"); $("#"+divid).empty().html('<CENTER><img src="<?= base_url() ?>assets/images/loading.gif" class="loading"/></CENTER>'); $("#"+divid).load("<?= site_url() ?>/"+'master'+'/'+'list_payment_months'+'/'+data[0]); } function check_pay_date(){ var pay_term_date=$('#term_date').val(); var acc_date=$('#academic_year').val(); var data=acc_date.split("~"); var dateFrom = data[1]; var dateTo = data[2]; var dateCheck = pay_term_date; var d1 = dateFrom.split("-"); var d2 = dateTo.split("-"); var c = dateCheck.split("-"); var from = new Date(d1[0], d1[1]-1, d1[2]); // -1 because months are from 0 to 11 var to = new Date(d2[0], d2[1]-1, d2[2]); var check = new Date(c[2], c[1]-1, c[0]); if(acc_date!=""){ if(check >= from && check <= to){ addformdata('validateform'); } else{ alert("Select Date Between "+d1[2]+"-"+d1[1]+"-"+d1[0]+" & " +d2[2]+"-"+d2[1]+"-"+d2[0]); return false; } } else{ alert("Select Academic Year"); return false; } } </script> <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_collection','view_fee_collection','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating Fee collection dates</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('master/addinmaster/insert_fee_collection/view_fee_collection/1', $attributes); $accademic_year = $this->mastermodel->getacademicyear(); ?> <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> <select onchange="get_academics_months(this.value)" class="required chzn-done" name="academic_year" id="academic_year"> <option value="">Select</option> <?php foreach ($accademic_year as $list) { ?> <option value="<?= $list['academic_year_id'] . '~' . $list['academic_year_start_date'] . '~' . $list['academic_year_end_date'] ?>"><?= $list['academic_year_year'] ?></option> <?php } ?> </select> </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++; ?> <tr><td><input type="hidden" style="float:left;" name="term_id_<?=$i;?>" id="term_id_<?=$i;?>" value="<?=$list['term_id'];?>" /><div class="single_page"><?=$list['term_name'];?></div></td> <td><input type="text" style="float:left;" name="term_date_<?=$i;?>" id="term_date_<?=$i;?>" class="required calfocus medium1" /></td></tr> <?php } ?> </table> </div> </div> <div class="section _100"> <label>Payment Date (for monthly)</label> <div id="month_payment_list"> </div> </div> </div> <div class="actions"> <?php // ?> <div class="actions-left"> <input type="reset" /> <input type="hidden" name="resfunction" value="search_class_name"/> <input type="hidden" name="tab_name" value="class_name"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close(); ?>