?
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/chart_group.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); ?> <script> $(document).ready(function(){ //Display Loading Image showchart_group(1,'account_name',''); }); function showchart_group(pageno,field,text) { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/viewchart_group/') ?>" +"/" + pageno + "/"+field+"/"+text); } function add_chart_group(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/load_add_page/add_chart_group/') ?>"); } }); } function insert_chart_group() { var acc_name=document.getElementById('accname').value ; var acc_group=document.getElementById('acc_group').value ; var account_code=document.getElementById('account_code').value; var len= account_code.length; if (account_code!=NaN && len<2) { document.getElementById('account_code').value=''; } if(validateform('accname','acc_group','account_code')) { $.ajax({ type: 'POST', url: '<?php echo site_url('accounting/insertchart_group/'); ?>', data: "acc_name="+acc_name+"&acc_group="+acc_group+"&account_code="+account_code+"&parent=0", beforeSend:showloader('gl_class'), success: function(data) { alert(data); showchart_group(1,'account_name',''); } }); } } function updatechart_group(id,pageno,field,text) { var acc_name=document.getElementById('accname').value ; var acc_group=document.getElementById('acc_group').value ; var account_code=document.getElementById('account_code').value; var len= account_code.length; if (account_code!=NaN && len<2) { document.getElementById('account_code').value=''; } if(validateform('accname','acc_group','account_code')) { $.ajax({ type: 'POST', url: '<?php echo site_url('accounting/updatechart_group/'); ?>', data: "acc_name="+acc_name+"&acc_group="+acc_group+"&account_code="+account_code+"&parent=0"+"&id="+id, beforeSend:showloader('gl_class'), success: function(data) { alert(data); showchart_group(1,'account_name',''); } }); } } function delchart_group(rwd,field,pageno) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/deletechart_group/') ?>" +"/" +'chart_master' + "/" + field+ "/" + pageno,function(msg){ if(msg==1) { showchart_group(pageno,field,""); alert("Account Deleted Sucessfully!"); } else { showchart_group(pageno,field,""); $('#errormsg').load("<?php echo site_url('accounting/loaderror/'); ?>"); } }); } }); } function editchart_group(rwd,field,pageno,field1,text) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/Get_editchart_group/') ?>" +"/" + field + "/" + pageno+"/" + field1 + "/" + text); } }); } function searchchart_type(pageno,serctext,seloption) { 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/viewchart_group/'); ?>/"+pageno + "/" + seloption + "/" +serctext ); } </script> <body> <div id="main"> <div id="errormsg" style="position:absolute;margin:15% 0 0 35%; z-index: 999995;"></div> <?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> <div style="" id="Main-content"> <div id="gl_class"> </div> <div> </div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>