D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
aviscollection.com
/
admin
/
Filename :
product_sub_category.php
back
Copy
<?php include'config.php'; // $view_res = "select * from product_wearcategory"; $view_res = "SELECT * FROM product_sub_category INNER JOIN product_category ON product_sub_category.product_category=product_category.category_id"; $run_query = mysqli_query($conn, $view_res) or mysqli_error($conn); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Admin, Product Sub Category List | <?php echo $company; ?></title> <?php include'style.php'; ?> </head> <body> <div id="layout-wrapper"> <?php include'header.php';?> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Products Sub Category List</h4> <div class="addItem_div"> <a class="btn btn-info" href="manage-sub-category.php?action=add_category">Add Sub category</a> </div> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);">Admin</a></li> <li class="breadcrumb-item active">Products Sub Category List</li> </ol> </div> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table id="datatable" class='table dt-responsive nowrap'> <thead> <tr> <th>ID</th> <th>Name</th> <th>Category</th> <th>Gender</th> <th>Image</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $sn = 0; if($run_query-> num_rows > 0){ while($row = mysqli_fetch_assoc($run_query)) { $sn++; echo "<tr data-id='1'> <td data-field='item_id' style='width: 80px'> ".$sn.".</td> <td data-field='item_title' class='item_title'>".$row['sub_category_name']."</td> <td data-field='item_category' class='item_title'>".$row['category_name']."</td> <td data-field='item_gender' class='item_title'>".$row['sub_category_gender']."</td> <td data-field='item_data' class='product_img'><img src='product-sub-category/".$row['sub_category_img']."'></img></td> <td data-field='item_status' class='item_status'>".$row['sub_category_status']."</td> <td style='width: 100px'> <a href='manage-sub-category.php?id=".$row['sub_category_id']."&action=edit_category' class='btn btn-outline-success btn-sm edit' title='Edit'> <i class='fas fa-pencil-alt'></i> </a> <a href='manage-sub-category.php?id=".$row['sub_category_id']."&action=delete_category' class='btn btn-outline-danger btn-sm edit' title='Delete'> <i class='fas fa-trash-alt'></i> </a> </td> </tr>"; } } else{ echo "<span style='color:#fe0002;font-size:15px;'>Product list is Empty.</span>"; } ?> </tbody> </table> </div> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <?php include'right-sidebar.php'; ?> <?php include'script.php'; ?> </body> </html>