MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/crm_cafsindia_com/application/views/company_code/manage.php
<?php $this->load->view("partial/header");?>

<script type="text/javascript">
    $(document).ready(function (){
        <?php $this->load->view('partial/bootstrap_tables_locale'); ?>
        table_support.init({
            resource: '<?php echo site_url($controller_name); ?>',
            headers: <?php echo $table_headers; ?>,
            pageSize: <?php echo $this->config->item('lines_per_page'); ?>,
            uniqueId: 'code_id',
        });
    });
</script>

<div id="toolbar">
    <div class="pull-left btn-toolbar">
       <?php $emp_role = $this->session->userdata('emp_role'); ?>
      <?php if($emp_role === "1"){ ?>
        <button id="delete" class="btn btn-default btn-sm">
            <span class="fa fa-trash-o">&nbsp;</span><?php echo $this->lang->line("common_delete"); ?>
        </button>
      <?php } ?>
    </div>
</div>

<div id="table_holder">
    <div id="title_bar" class="btn-toolbar">
        <h1>Company Codes</h1>
        <button class='btn btn-info btn-sm pull-right modal-dlg' data-btn-submit='<?php echo $this->lang->line('common_submit') ?>' data-href='<?php echo site_url($controller_name . "/view"); ?>'
                title='Add Company Code'>
            <span class="fa fa-user-plus">&nbsp</span> Add Company Code
        </button>
    </div>
    <table id="table"></table>
</div>

<?php $this->load->view("partial/footer"); ?>