EVOLUTION-NINJA
Edit File: product_list.php
<?php $this->load->view('includes/admin_dashboard_header');?> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-3.6.0.min.js'); ?>"></script> <script type="text/javascript" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script> <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css" /> <div id="wrapper"> <!-- Navigation --> <?php $this->load->view('includes/admin_menu');?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <!-- <h1 class="page-header"> Dashboard <small>Statistics Overview</small> </h1> <ol class="breadcrumb"> <li class="active"> <i class="fa fa-user" aria-hidden="true"></i> Manage Users </li> </ol>--> </div> </div> <!-- /.row --> <h3 class="page-title"> Product List </h3> <br> <div class="row"> <div class="portlet-body" id="productgrid"> <table class="table table-striped table-bordered table-hover" id="sample_122"> <thead> <tr> <th> Sr.No.</th> <th> Item</th> <th> Item Code</th> <th> Item Description</th> <th> List Price</th> <th> HSN Code</th> <th> Action</th> </tr> </thead> <tbody> <?php $i=1; ?> <?php if(isset($confirmed_data)) { foreach($confirmed_data as $key=>$c_data){ ?> <tr> <td style="text-transform: uppercase !important"><?php echo $i; ?></td> <td style="text-transform: uppercase !important"><?php echo $c_data->item; ?></td> <td style="text-transform: uppercase !important" ><input type="hidden" class="product_type<?php echo $key;?> pd_type" value="<?php echo $c_data->item; ?>"><?php echo $c_data->item_code; ?></td> <td style="text-transform: uppercase !important"><?php echo $c_data->item_description; ?></td> <td style="text-transform: uppercase !important"><?php echo $c_data->list_price; ?></td> <td style="text-transform: uppercase !important"><?php echo $c_data->hsn_code; ?></td> <td style="text-transform: uppercase !important"><a href="<?php echo site_url(); ?>controller/edit_product?id=<?php echo $c_data->id;?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Edit</a></td> </tr> <?php $i++; } } ?> </tbody> </table> </div> </div> </div> <!-- /.row end--> </div> <!-- /.container-fluid --> </div> <script> $(document).ready(function() { $('#sample_122').DataTable( { "pagingType": "full_numbers" } ); } ); </script> <?php $this->load->view('includes/admin_dashboard_footer');?>