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/items/manage.php
<?php
$this->load->view("partial/header");
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
<script type="text/javascript">
    $(document).ready(function (){
        <?php $this->load->view('partial/bootstrap_tables_locale'); ?>
        table_support.init({
            item_id: <?php echo $this->Employee->get_logged_in_employee_info()->person_id; ?>,
            resource: '<?php echo site_url($controller_name); ?>',
            headers: <?php echo $table_headers; ?>,
            pageSize: <?php echo $this->config->item('lines_per_page'); ?>,
            uniqueId: 'product_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 print_hide">
        <h1>Products</h1>
        <!-- For New Item Button--->
        <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='<?php echo $this->lang->line($controller_name . '_new'); ?>'>
            <span class="fa fa-tag">&nbsp;</span><?php echo $this->lang->line($controller_name . '_new'); ?>
        </button>
        <!-- End For New Item Button--->
    </div>
    <table id="table"></table>
</div>

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