관리-도구
편집 파일: gallery.php
<!DOCTYPE html> <html dir="ltr" lang="en"> <head> <?php include('include/head.php') ?> </head> <body class> <div id="wrapper" class="clearfix"> <div id="preloader"> <div id="spinner"> <img alt src="images/preloaders/5.gif"> </div> <div id="disable-preloader" class="btn btn-default btn-sm">Disable Preloader</div> </div> <?php include('include/header.php') ?> <div class="main-content bg-lighter"> <section class="inner-header divider parallax layer-overlay overlay-dark-5" data-bg-img="images/bg/bg6.jpg"> <div class="container pt-70 pb-20"> <div class="section-content"> <div class="row"> <div class="col-md-12"> <h2 class="title text-white text-center">Gallery</h2> <ol class="breadcrumb text-left text-black mt-10"> <li><a href="index.php">Home</a></li> <li class="active text-gray-silver">Gallery</li> </ol> </div> </div> </div> </div> </section> <!-- =========================================gallery================= --> <section id="gallery" style="overflow-x: hidden;"> <div class="container pt-70 pb-70"> <div class="section-title text-center"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <h2 class="mt-0 line-height-1 text-center mb-10 text-black-333 text-uppercase">Our <span class="text-theme-color-2"> Gallery</span></h2> <!-- <p class="mb-0 pb-0">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem autem<br> voluptatem obcaecati!</p> --> </div> </div> </div> <div class="section-content"> <div class="row"> <?php $sql = mysqli_query($con, "SELECT * FROM `gallery`"); while ($gallery = mysqli_fetch_assoc($sql)) { ?> <div class="col-lg-4 col-md-4 " style="margin-bottom: 20px;"> <img src="media/gallery/<?= $gallery['image'] ?>" alt="<?= $gallery['image_alt_tag'] ?>"> </div> <?php } ?> </div> </div> </div> </section> <!-- =========================================gallery end================= --> </div> <?php include('include/footer.php') ?> <a class="scrollToTop" href="#"><i class="fa fa-angle-up"></i></a> <?php include('include/foot.php') ?> </body> </html>