/
home
/
sditechnicalteam
/
socialsolargreens.pk
/
File Upload :
llllll
Current File: /home/sditechnicalteam/socialsolargreens.pk/Purchase-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/purchase_controller.php'); include_once('partial/link.php'); include_once('partial/header.php'); include_once('partial/navbar.php'); $purchase = new Purchase(); $purchase_List = $purchase->PurchaseList(); ?> <!-- ============================================================== --> <!-- 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-Purchase.php"><i class="fa fa-plus-circle"></i> Create New Purchase</a> </div> <div class="col-12" style="margin-top:20px"> <div class="card"> <div class="card-body"> <h5><i class="fa fa-table"></i> Purchase Table</h5> <hr> <div id="datatable_wrapper" class="dataTables_wrapper dt-bootstrap4"><table id="datatable" class="table table-striped table-bordered nowrap dataTable" style="border-collapse: collapse; border-spacing: 0; width: 100%;" role="grid" aria-describedby="datatable_info"> <thead> <tr role="row"> <th class="sorting_desc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-sort="descending" aria-label="Invoice No: activate to sort column ascending" style="width: 68.7031px;">Invoice No</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Invoice Ref: activate to sort column ascending" style="width: 71.6875px;">Invoice Ref</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Date: activate to sort column ascending" style="width: 61.6406px;">Date</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Vendor Name: activate to sort column ascending" style="width: 91.3281px;">Vendor Name</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Tourer Name: activate to sort column ascending" style="width: 86.0312px;">Tourer Name</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Grand Total: activate to sort column ascending" style="width: 77.8281px;">Grand Total</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="First Paid Amount: activate to sort column ascending" style="width: 116.688px;">First Paid Amount</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Note: activate to sort column ascending" style="width: 30.9219px;">Note</th> <th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" aria-label="Action: activate to sort column ascending" style="width: 42.6875px;">Action</th> </tr> </thead> <tfoot> <tr><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"><div class="position-relative"><input type="text" class="searchformcontrol" placeholder=""><span class="searchspan bx bx-search-alt"></span></div></th><th rowspan="1" colspan="1"></th></tr> </tfoot> <tbody> <?php while($row = mysqli_fetch_assoc($purchase_List)){ // print_r($row); ?> <tr role="row" class="odd"> <td class="sorting_1"><?= $row['InvId']; ?></td> <td><?= $row['InvRef']; ?></td> <td><?= $row['Date']; ?></td> <td><?= $row['Name']; ?></td> <td><?= $row['TourName']; ?></td> <td><?= $row['GTotal']; ?></td> <td><?= $row['Paid']; ?></td> <td><?= $row['Note']; ?></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-Purchase.php?q=Edit&InvId=<?= $row['InvId']; ?>" 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-Purchase.php?q=delete&InvId=<?= $row['InvId']; ?>" 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