D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
guruglobalpreschool.com
/
admin
/
Filename :
image-gallery.php
back
Copy
<?php include'config.php'; $view_gallery = "select * from image_gallery ig inner join gallery_category gc on ig.image_category = gc.category_id"; $run_query = mysqli_query($conn, $view_gallery); ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Admin, Image Gallery | <?php echo $company; ?></title> <?php include'style.php'; ?> </head> <body> <!-- Begin page --> <div id="layout-wrapper"> <?php include'header.php'; ?> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Image Gallery</h4> <div class="addItem_div"> <a class="btn btn-danger" href="manage-gallery?action=add_image">Add Gallery Photo</a> </div> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);">Admin</a></li> <li class="breadcrumb-item active">Image Gallery</li> </ol> </div> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="table-responsive"> <table class='table table-editable table-nowrap align-middle table-edits'> <thead> <tr> <th>Gallery ID</th> <th>Gallery Title</th> <th>Gallery Type</th> <th>Gallery Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $serial = 0; if($run_query-> num_rows > 0){ while($row = mysqli_fetch_assoc($run_query)) { $item_id = $row['image_id']; $item_name = $row['image_name']; $item_cat = $row['category_name']; $item_img = $row['image_img']; $serial++; echo "<tr data-id='1'> <td data-field='banner_id' style='width: 80px'> ".$serial.".</td> <td data-field='banner_title' class='banner_title'>".$item_name."</td> <td data-field='banner_cat' class='banner_title'>".$item_cat."</td> <td data-field='banner_img' class='banner_img'> <img src='images-gallery/".$item_img."'> </td> <td style='width: 100px'> <a href='manage-gallery.php?id=$item_id&action=edit_image' class='btn btn-outline-secondary btn-sm edit' title='Edit'> <i class='fas fa-pencil-alt'></i> </a> <a href='manage-gallery.php?id=$item_id&action=delete_image' class='btn btn-outline-secondary btn-sm edit' title='Delete'> <i class='fas fa-trash-alt'></i> </a> </td> </tr>"; } } else{ echo "<span style='color:#fe0002;font-size:15px;'>Gallery is Empty.</span>"; } ?> </tbody> </table> </div> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <?php include'right-sidebar.php'; ?> <?php include'script.php'; ?> </body> </html>