/
home
/
sditechnicalteam
/
socialsolargreens.pk
/
File Upload :
llllll
Current File: /home/sditechnicalteam/socialsolargreens.pk/Warehouse-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_once('controller/warehouse_controller.php'); include_once('partial/link.php'); include_once('partial/header.php'); include_once('partial/navbar.php'); $warehouse = new Warehouse(); $warehouse_List = $warehouse->WarehouseList(); ?> <!-- ============================================================== --> <!-- 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?>Create-New-Warehouse.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> Warehouse Table</h5> <hr> <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>AccountNo</th> <th>Name</th> <th>Property Status</th> <th>Phone</th> <th>Address</th> <th>Cnic</th> <th>Action</th> </tr> </thead> <tfoot> <tr> <th>Id</th> <th>AccountNo</th> <th>Name</th> <th>Property Status</th> <th>Phone</th> <th>Address</th> <th>Cnic</th> <th>Action</th> </tr> </tfoot> <tbody> <?php while($row = mysqli_fetch_assoc($warehouse_List)){ // print_r($row); ?> <tr> <td><?= $row['Id']; ?></td> <td><?= $row['AccountNo']; ?></td> <td><?= $row['Name']; ?></td> <td><?= $row['PropertyStatus']; ?></td> <td><?= $row['Phone']; ?></td> <td><?= $row['Address']; ?></td> <td><?= $row['Cnic']; ?></td> <td> <a onclick="return confirm('Are you sure you want to Execute ?');" class="badge badge-success" data-toggle="tooltip" data-placement="left" title="" href="<?=BASE_URL?>Create-New-Warehouse.php?q=Edit&Id=<?= $row['Id']; ?>" data-original-title="Click Me To Edit"><i class="fa fa-edit"></i></a> <a onclick="return confirm('Are you sure you want to Execute ?');" id="sa-warning" class="badge badge-danger" data-toggle="tooltip" data-placement="left" title="" href="<?=BASE_URL?>Create-New-Warehouse.php?q=delete&Id=<?= $row['Id']; ?>" data-original-title="Click Me To Delete"><i class="fa fa-trash-alt"></i></a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <?php include 'partial/footer.php'; ?>
Copyright ©2k19 -
Hexid
|
Tex7ure