/
home
/
sditechnicalteam
/
socialsolargreens.pk
/
File Upload :
llllll
Current File: /home/sditechnicalteam/socialsolargreens.pk/Product-List.php
<?php session_start(); // Check if the user is logged in, otherwise redirect to login page if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) { header('Location: index.php'); exit; } ?><?php //include 'partial/db.php'; include_once('controller/ProductController.php'); include_once('partial/link.php'); include_once('partial/header.php'); include_once('partial/navbar.php'); $Product = new ProductController(); $Product_List = $Product->ProductList(); // print_r($Product_List); // die; ?> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container"> <!-- start page title --> <div class="row"> <div class="col-md-12"> <a class="btn btn-success fa-pull-right " style="margin-left:30px" href="<?=BASE_URL?>Product/Create.php"><i class="fa fa-plus-circle"></i> Create New</a> </div> <div class="col-12" style="margin-top:20px"> <div class="card"> <div class="card-body"> <h5><i class="fa fa-table"></i> Product Type Table</h5> <hr> <div style="overflow-x:auto"> <table id="datatable" class="table table-striped table-bordered nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <thead> <tr> <th>Id</th> <th>Type Name</th> <th>Name</th> <th>Watt</th> <th>Cost Price</th> <th>Sale Price</th> <th>Opening Stock</th> <th>Action</th> </tr> </thead> <tfoot> <tr> <th>Id</th> <th>Type Name</th> <th>Name</th> <th>Watt</th> <th>Cost Price</th> <th>Sale Price</th> <th>Opening Stock</th> <th>Action</th> </tr> </tfoot> <tbody> <?php while($row = mysqli_fetch_assoc($Product_List)){ ?> <tr> <td><?= $row['Id']; ?></td> <td><?= $row['TypeName']; ?></td> <td><?= $row['Name']; ?></td> <td><?= $row['Watt']; ?></td> <td><?= $row['Cp']; ?></td> <td><?= $row['Sp']; ?></td> <td><?= $row['OpStock']; ?></td> <td> <a onclick="return confirm('AreyousureyouwanttoExecute.php');" class="badge badge-success" data-toggle="tooltip" data-placement="left" title="Click Me To Edit" href="<?=BASE_URL?>Create-New-Product.php?q=Edit&id=<?= $row['Id']; ?>"><i class="fa fa-edit"></i></a> <!-- <a onclick="return confirm('AreyousureyouwanttoExecute.php');" class="badge badge-success" data-toggle="tooltip" data-placement="left" title="Click Me To Edit" href="<?=BASE_URL?>Create-New-Product-Type.php?q=Delete&id=<?= $row['Id']; ?>"><i class="fa fa-trash-alt"></i></a> --> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <?php include 'partial/footer.php';?>
Copyright ©2k19 -
Hexid
|
Tex7ure