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/kpma/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("includes/config.php");; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- <title> Form Elements</title> --> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> <!-- Font Awesome --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> </head> <body class="hold-transition sidebar-mini"> <div class="wrapper"> <!-- Navbar --> <?php require "includes/nav.php" ?> <!-- /.navbar --> <!-- Main Sidebar Container --> <?php require "includes/sidebar.php" ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Banner Form</h1> </div> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active">Banner Form</li> </ol> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="container-fluid"> <div class="row"> <!-- left column --> <div class="col-md-12"> <!-- general form elements --> <div class="card card-primary"> <div class="card-header"> <div class="row"> <div class="col-md-6"> <h3 class="card-title">View Banner</h3> </div> <div class="col-md-6 text-right"> <a href="banner.php" class="btn btn-primary waves-effect waves-light"> <i class="fa fa-plus"></i> ADD </a> </div> </div> </div> <!-- /.card-header --> <!-- form start --> <?php if(isset($_SESSION['status']) && $_SESSION != ''){ ?> <div class="alert alert-warning alert-dismissible fade show" role="alert"> <strong>Hey!</strong> <?php echo $_SESSION['status']; ?> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php unset($_SESSION['status']); } ?> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="row"> <div class="col-md-10"></div> <div class="col-md-2" style="padding: 13px;"> <!--<a href="docter_add.php"><button type="button" class="btn btn-primary waves-effect waves-light">--> <!--<i class="fa fa-plus"></i> Add--> <!-- </button></a>--> </div> <br> </div> <table id="datatable-buttons" class="table table-bordered dt-responsive nowrap w-100"> <thead> <tr> <th>#</th> <!-- <th>Heading 1</th> <th>Heading 2</th> <th>Content</th> --> <th>Image</th> <!-- <th>Business Growth % </th> <th>Marketing % </th> --> <th>Action</th> </tr> </thead> <tbody> <?php $query = "SELECT * FROM banners"; $query_run =mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ // $id = $row['category_id']; // $category_query = "SELECT cat_name FROM categories WHERE id = '$id'"; // $category_result = mysqli_query($conn, $category_query); // $category = mysqli_fetch_assoc($category_result); ?> <tr> <td><?php echo $row['id']; ?></td> <!-- <td><?php echo $row['heading1']; ?></td> <td><?php echo $row['heading2']; ?></td> <td><?php echo $row['content']; ?></td> --> <td><img src="<?php echo "banner/". $row['photo']; ?>" height="50" alt=""></td> <!-- <td><?php echo $row['business_growth']; ?></td> <td><?php echo $row['marketing']; ?></td> --> <!-- <td> <textarea cols="40" rows="4"><?php echo $row['description']; ?></textarea> </td> --> <td> <a href="update-banner.php?id=<?php echo $row['id']; ?>" class="btn btn-info">EDIT</a> </td> <td> <form action="add_banner.php" method="post"> <input type="hidden" name="delete_id" value="<?php echo $row['id']; ?>"> <input type="hidden"name="del_banner" value="<?php echo $row['photo']; ?>"> <button type="submit" name="delete_banner" class="btn btn-danger">DELETE</button> </form> </td> </tr> <?php }} ?> </tbody> </table> </div> </div> </div> <!-- end col --> </div> </div> <!-- /.card --> </div> </div> </div> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <!-- <footer class="main-footer"> <div class="float-right d-none d-sm-block"> <b>Version</b> 3.2.0 </div> <strong>Copyright © 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong> All rights reserved. </footer> --> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Control sidebar content goes here --> </aside> <!-- /.control-sidebar --> </div> <!-- ./wrapper --> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- bs-custom-file-input --> <script src="plugins/bs-custom-file-input/bs-custom-file-input.min.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="dist/js/demo.js"></script> <!-- Page specific script --> <script> $(function () { bsCustomFileInput.init(); }); </script> </body> </html>