?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/application/views/accounting/ |
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/eduplus2/application/views/accounting/list_payment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); //$this->load->view('documentreadyfunctions'); $this->load->view('accounting/accountingfunctions'); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { var transaction_type='<?=$transaction_type?>'; $('.calfocus1').datepick({dateFormat: 'dd-mm-yyyy',onClose:function(){ if(transaction_type=="PV"){ var cheque_date=$('#cheque_date').val(); var now = new Date(); var today = new Date(); now.setDate(now.getDate()+60); var date = cheque_date.split("-") ; var new_date= new Date(date[2],date[1]- 1,date[0]); var new_date1= new Date(now.getFullYear(),now.getMonth(),now.getDate()); var today1= new Date(today.getFullYear(),today.getMonth(),today.getDate()); if( new_date < today1 || new_date > new_date1) { $('#cheque_date').val(''); $("#cheque_no_date").fadeIn(900,0); $("#cheque_no_date").html('Date should be within 60 date from Today'); $("#cheque_no_date").fadeOut(2000,0); } } }}); }); </script> <?php if($type==2) { ?> <table class="table table-striped table-hover table-bordered"> <tr> <th>Cheque Date</th> <th>Cheque No</th> <th>Cheque Info</th> <th>Bank Drawn</th> </tr> <tr> <td> <input class="required calfocus1 span12" type="text" name="cheque_date" id="cheque_date"/> <div style="padding: 0 5px;width:127px;display: block;height: 9px;"><span style="color: red;" id="cheque_no_date"></span></div> </td> <td> <input class="span12 required num_only" type="text" name="cheque_no" id="cheque_no" onblur="check_unique_cheque('<?=$transaction_type?>',0)" /><br/> <div style="color: red;padding: 0 5px;width:200px;display: block;height: 25px;"><span id="cheque_no_info"></span></div> </td> <td> <textarea class=" required span12" name="cheque_info" id="cheque_info"></textarea> </td> <td> <textarea class=" required span12" name="bank_drawn" id="bank_drawn"></textarea> </td> </tr> </table> <?php } else if($type==3) { ?> <table class="table table-striped table-hover table-bordered"> <tr> <th>Credit Card Holder Name</th> <th>Credit Card No</th> </tr> <tr> <td> <input class="required " type="text" name="holder_name" id="holder_name"/> <div style="padding: 0 5px;width:127px;display: block;height: 9px;"> <!-- <span style="color: red;" id="cheque_no_date"></span></div>--> </td> <td> <input class="w_90 required " type="text" name="card_no" id="card_no" /><br/> <div style="color: red;padding: 0 5px;width:200px;display: block;height: 25px;"> <!-- <span id="cheque_no_info"></span></div>--> </td> </tr> </table> <?php } else if ($type == 4) { ?> <table class="table table-striped table-hover table-bordered"> <tr> <th>Description</th> <td> <textarea name="bank_transfer_description" id="bank_transfer_description" style="width:250px;"></textarea> </td> </tr> </table> <?php } ?>