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/editeditor.php

<?php
session_start();
require 'include/PHPHelper.php';
if (!isset($_SESSION['userID'])) {
    header("location: login.php");
}else {
    if (isset($_POST['submit'])) {
       
      
    }
    // 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 Books || 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 Editors Details</h1>
            <nav>
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="index.php">IJSRI Dashboard</a></li>
                   
                    <li class="breadcrumb-item active">Edit Editors 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 Editors Details</h4>
                        </div>
                        
                          <!--list all the books so that admin can edit and delete from button-->
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-hover">
                                    <thead>
                                        <tr>
                                            <!-- <th>Editors ID</th> -->
                                            <th>Name</th>
                                            <th>Designation</th>
                                            <th>Department</th>
                                            <th>Email</th>
                                            <th>Profile Link</th>
                                            <th>Institute</th>
                                            <th>Photograph</th>
                                            <th>Actions</th>
                                        </tr>
                                    </thead>
                                    <tbody>
 <?php
        $sql = "SELECT * FROM editorial_board";
        $result = mysqli_query($conn, $sql);
        if (mysqli_num_rows($result) > 0) {
            while ($row = mysqli_fetch_assoc($result)) {
                echo '<tr>';
                // echo '<td>' . $row['id'] . '</td>';
                echo '<td>' . $row['name'] . '</td>';
                echo '<td>' . $row['designation'] . '</td>';
                echo '<td>' . $row['department'] . '</td>';
                echo '<td>' . $row['email'] . '</td>';
                echo '<td>' . $row['profile_link'] . '</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="updateeditor.php?id=' . $row['id'] . '" class="btn btn-primary">Edit</a> 
                        <a href="deleteeditor.php?id=' . $row['id'] . '" class="btn btn-danger" onclick="return confirm(\'Are you sure you want to delete this Editor?\')">Delete</a>
                    </td>';
                echo '</tr>';
            }
        }
        ?>

                                    </tbody>
                                </table>
                            </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.