Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
session_start();
require 'include/PHPHelper.php';
if (!isset($_SESSION['userID'])) {
header("location: login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<?php
$title = "All Sectors || 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>All Sectors</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Dashboard</a></li>
<li class="breadcrumb-item">Sectors</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">All Sectors</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">Sector 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 `sectors`";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_assoc($result)) {
echo '<tr>
<td>' . $row['id'] . '</td>
<td>' . $row['sectorName'] . '</td>
<td>
<a href="editsector.php?id=' . $row['id'] . '" class="btn btn-primary btn-sm">Edit</a>
</td>
';
}
?>
</tbody>
</table>
</div>
<h5 class="card-title"><a href="addsector.php">Add New Sector</a></h5>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<?php
include 'include/footer.php';
?>
</body>
</html>
