?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/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/koaladraft/application/views/accounting/list_payment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <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) { ?> <div class="content no-padding"> <div class="header main"> Payment Details</div> <table class="table"> <tr> <th>Cheque Date</th> <th>Cheque No</th> <th>Cheque Info</th> </tr> <tr> <td> <input class="required calfocus1 " 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="w_90 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" name="cheque_info" id="cheque_info"></textarea> </td> </tr> </table> </div> <?php } else if($type==3) { ?> <div class="content no-padding"> <div class="header main"> Payment Details</div> <table class="table"> <tr> <th>Wire Info</th> <td> <input class="w_90 required" type="text" name="wire_info" id="wire_info" style="width:250px;"/> </td> </tr> </table> </div> <?php } ?>