?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/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/www/savoyglobal.net/sibs_draft/system/application/views/Accounting/bankpayment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); $this->load->view('Accounting/accounting_common_function'); ?> <script> $(document).ready(function(){ //Display Loading Image showunpostbank_pay(1); }); function load_account(val) { $("#loadpaymentlist").empty().html(); if(val==3) { document.getElementById('otherpay').style.display='block'; document.getElementById('hideother').style.display='none'; document.getElementById('bank_trans_type').value='other'; } else { document.getElementById('otherpay').style.display='none'; document.getElementById('hideother').style.display='block'; document.getElementById('bank_trans_type').value='payment'; $("#bankloadacc").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#bankloadacc").load("<?= site_url('accounting/loadacc_type/') ?>" +"/" + val); } } function loadpayment(val) { $("#loadpaymentlist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#loadpaymentlist").load("<?= site_url('accounting/loadpayment_list/') ?>" +"/" + val); } function loadpayment_acc_no(val) { document.getElementById('otherpay').style.display='block'; document.getElementById('bank_trans_type').value='other'; val=val.split('~'); var i; for(i=0;i<document.all('acc_desc').length;i++) { if(document.all('acc_desc').options[i].value==val[2]) { document.all('acc_desc').selectedIndex=i; document.getElementById('acc_code').value=val[2]; } } } function showpayment_page(pagenum) { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/viewbankpayment_pages/view_bankpayment/') ?>" +"/" + pagenum); } function showunpostbank_pay(pagenum) { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/viewunpostedbank_deposit/view_unposted_bank_payment/') ?>" +"/" + pagenum + "/"+1); } function addpayment_page() { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/viewaccount_page/add_bankpayment') ?>"); } function del_payment(refid,pageno) { $("#gl_class").load("<?= site_url('accounting/delete_trans_data/') ?>" +"/" +'1' + "/" + refid+ "/" + pageno,function(){ showpayment_page(pageno); }); } function view_payment(refid) { $(".anchor").colorbox({width:"66%",height:"70%", inline:true, href:"#combo"}); $("#combo").load("<?= site_url('accounting/viewsinglepayment/1/') ?>" +"/" + refid,function(){ }); } function validations() { if(!validateform('ref')) { return false; } else { var val=document.getElementById('count').value; if(val<=0) { alert('Pay for atleast one Premium') return false; } } } function viewthis_unpost(id) { $(".clickimage1").colorbox({width:"66%",height:"70%", inline:true, href:"#color"}); $("#color").load("<?= site_url('accounting/viewsingleunpostbank/1/') ?>" +"/" + id); } function del_unpost(rwd,field,pageno) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/deleteunpost_journal/unposted_pay_dep') ?>" +"/" + field,function(data){ showunpostbank_pay(pageno) }); } }); } function process_unpostbank_trans(ref) { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/post_bank_trans/') ?>"+"/" + ref,function(data){ $.fn.colorbox.close(); showunpostbank_pay(1); }); } function edit_bankpayment(refid) { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/Geteditbankpay/edit_bank_payment/') ?>/"+refid); } function search_unposted_bank_payment(seloption,serctext) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>'); $('#gl_class').load("<?php echo site_url('accounting/search_unposted_bank_payment/view_unposted_bank_payment/'); ?>/"+ seloption + "/" +1+ "/"+serctext); } function search_posted_bank_payment(seloption,serctext) { serctext = serctext.replace(/ /g,"~"); serctext = serctext.replace(/\//g,"_"); $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>'); $('#gl_class').load("<?php echo site_url('accounting/search_posted_bank_payment/view_bankpayment/'); ?>/"+ seloption + "/1/"+serctext); } </script> <body> <div id="main"> <?php $this->load->view('menu'); ?> <div id="middle"> <?php $this->load->view('leftbar'); ?> <div id="center-column"> <?php $this->load->view('topbar'); ?> <div id="addmenu" style="display: none"> <div id="color"></div> </div> <div style="" id="Main-content"> <div id="gl_class"></div> <div> </div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html> <div id="noname" style="display:none" > <div id='combo' style='padding:10px; background:#fff;'></div> </div>