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");
} else {
// Check if success message is set
if (isset($_GET['success']) && $_GET['success'] == 1) {
echo '<div class="alert alert-success">Editor deleted successfully.</div>';
}
// Check if error message is set
elseif (isset($_GET['error']) && $_GET['error'] == 2) {
echo '<div class="alert alert-danger">Error deleting editor. Please try again.</div>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<?php
$title = "Edit Reviewers || 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>Edit Reviewers Details</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">IJSRI Dashboard</a></li>
<li class="breadcrumb-item active">Edit Reviewers Details</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4>Edit Reviewers Details</h4>
</div>
<!-- List all the reviewers for editing -->
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Name</th>
<th>Affiliation</th>
<!-- <th>Expertise</th> -->
<th>Email</th>
<!-- <th>Institute</th> -->
<!-- <th>Photograph</th> -->
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM reviewers";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
echo '<tr>';
echo '<td>' . $row['name'] . '</td>';
echo '<td>' . $row['affiliation'] . '</td>';
// echo '<td>' . $row['expertise'] . '</td>';
echo '<td>' . $row['email'] . '</td>';
// echo '<td>' . $row['institute'] . '</td>';
// echo '<td><img src="../ijsri/assets/img/editors/' . $row['photo'] . '" alt="Editor Image" width="100px"></td>';
echo '<td>
<a href="updatereviewer.php?id=' . $row['id'] . '" class="btn btn-primary" disabled>Edit</a>
<a href="deletereviewer.php?id=' . $row['id'] . '" class="btn btn-danger" onclick="return confirm(\'Are you sure you want to delete this reviewer?\')">Delete</a>
</td>';
echo '</tr>';
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<?php
include 'include/footer.php';
?>
</body>
</html>
