Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/crm/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); if (!isset($_SESSION['uid'])) { header("Location: login.php"); } $se = $_SESSION["uid"]; include 'include/config.php'; $bid = $_GET['id']; ?> <!doctype html> <html lang="en"> <?php include 'include/head.php'; ?> <body> <!-- <body data-layout="horizontal"> --> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'include/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <?php include 'include/menu.php'; ?> <!-- Sidebar --> </div> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <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">Expense</h4> <!-- <div class="page-title-right">--> <!-- <a href="expense_add.php"><button type="submit" class="btn btn-primary w-md">Add</button></a>--> <!--</div>--> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <!-- --> </div> <div class="card-body"> <table id="datatable-buttons" class="table table-bordered dt-responsive nowrap w-100"> <thead> <tr> <th>#</th> <th>Category Name</th> <th>Amount</th> <th>Action</th> </tr> </thead> <tbody> <?php $count = 1; $sql = "select * from expenses where category_name='$bid'"; $sql_res = mysqli_query($con, $sql) or die(mysqli_error($con)); while ($sql_row = mysqli_fetch_assoc($sql_res)){ $cid = $sql_row['category_name']; $sqls = "select * from categories where id='$cid' "; $sql_ress = mysqli_query($con, $sqls) or die(mysqli_error($con)); $sql_rows = mysqli_fetch_assoc($sql_ress); ?> <tr> <td><?php echo $count; ?></td> <td><?php echo $sql_rows['categoryname']; ?></td> <td><?php echo $sql_row['expense_name']; ?></td> <td> <a href="./expense_edit.php?id=<?php echo $sql_row['id']; ?>" class=" text-primary"> <i class="fa fa-edit font-size-18"></i> </a> <a href="./action/delete.php?id=<?php echo $sql_row['id']; ?>&table=<?php echo 'expense'; ?>" class=" text-primary"> <i class="fa fa-trash font-size-18"></i> </a> </td> </tr> <?php $count++; } ?> </tbody> </table> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <?php include 'include/footer.php'; ?> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <?php include 'include/rightsidebar.php'; ?> <!-- /Right-bar --> <!-- Right bar overlay--> <div class="rightbar-overlay"></div> <?php include 'include/bscript.php'; ?> </body> <!-- Mirrored from themesbrand.com/minia/layouts/tables-datatable.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 20 May 2023 06:14:37 GMT --> </html>