?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Settings/ |
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/drafthr/system/application/views/Settings/subacc_settings.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php $this->load->view('header'); ?> <script> $(document).ready(function(){ //Display Loading Image showacc_settings(); }); function showacc_settings() { $("#gl_class").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>'); $("#gl_class").load("<?= site_url('accounting/viewacc_settings/') ?>" ); } function addacc_settings(rwd) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/addacc_settings/') ?>"); } }); } function insertacc_setting() { var customer=document.getElementById('customer').value ; var company=document.getElementById('company').value ; var employee=document.getElementById('employee').value ; var profitloss=document.getElementById('profitloss').value ; var agent=document.getElementById('agent').value ; var salary=document.getElementById('salary').value ; if(validateform('customer','company','employee','profitloss','agent','salary')) { $.post("<?php echo site_url('accounting/insertacc_settings/'); ?>", { 'customer':customer,'company':company,'employee':employee,'profitloss':profitloss,'agent':agent,'salary':salary }, function(data) { alert(data); showacc_settings(); }); } } function updateacc_setting() { var customer=document.getElementById('customer').value ; var company=document.getElementById('company').value ; var employee=document.getElementById('employee').value ; var profitloss=document.getElementById('profitloss').value ; var id=document.getElementById('id').value ; var agent=document.getElementById('agent').value ; var salary=document.getElementById('salary').value ; if(validateform('customer','company','employee','profitloss','agent','salary')) { $.post("<?php echo site_url('accounting/updateacc_settings/'); ?>", { 'customer':customer,'company':company,'employee':employee,'id':id,'profitloss':profitloss,'agent':agent,'salary':salary }, function(data) { alert(data); showacc_settings(); }); } } function deleteacc_settings(rwd,field) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/deletegl_group/') ?>" +"/" +'subacc_setting' + "/" + field,function(){ showacc_settings(); }); } }); } function editacc_settings(rwd,id) { $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data) { if(data==1) { $("#gl_class").load("<?= site_url('accounting/Get_editacc_setting/') ?>"+"/"+id ); } }); } function searchgl_acc(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/viewgl_acc/'); ?>/"+pageno + "/" + seloption + "/" +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> <div style="" id="Main-content"> <div id="gl_class"></div> <div> </div> </div> </div> </div> <?php $this->load->view('footer'); ?> </div> </body> </html>