Preview: gallery-detail.php
Size: 4.04 KB
/home/ostadcom/public_html/gallery-detail.php
<?php
include "management/php/functions.php";
$id=intval($_GET['id']);
$gallery = $connect -> prepare("select * from `tbl_gallery` where `delete_flag` = 0 and `id` =".$id);
$gallery -> execute();
$galleryRow = $gallery -> fetch(PDO::FETCH_ASSOC);
?>
<!doctype html>
<html lang="fa">
<head>
<title><?php echo $galleryRow['title']; ?>|گروه کارآفرینان استاد</title>
<meta name="description" content="">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7"
crossorigin="anonymous">
<?php include 'head.php'; ?>
<link rel="stylesheet" href="gallery-files/css/jBox.css" />
</head>
<body style="direction: rtl;text-align: right">
<header class="header-area">
<?php include 'menu.php'; ?>
</header>
<?php include 'modals.php'; ?>
<section class="user-area log-in-area pt-5 pb-100">
<div class="container">
<div class="row" dir="ltr">
<div class="col-sm-6 col-lg-4">
<img class="jbox-img" src="<?php echo $galleryRow['image']; ?>" alt="<?php echo $galleryRow['title']; ?>" />
</div>
<?php
$gallery2 = $connect -> prepare("select * from `tbl_gallery_image` where `delete_flag` = 0 and `gallery_id` = ".$id." order by `id` ");
$gallery2 -> execute();
if($gallery2 -> rowCount() > 0){
while($galleryRows2 = $gallery2 -> fetch(PDO::FETCH_ASSOC)){
?>
<div class="col-sm-6 col-lg-4">
<img class="jbox-img" src="<?php echo $galleryRows2['image']; ?>" alt="<?php echo $galleryRow['title']; ?>" />
</div>
<?php
}
}?>
</div>
</div>
</section>
<div class="jbox-container">
<div class="img-alt-text"></div>
<img src="" />
<svg version="1.1" class="jbox-prev" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 306 306" xml:space="preserve">
<g>
<g id="chevron-right">
<polygon points="211.7,306 247.4,270.3 130.1,153 247.4,35.7 211.7,0 58.7,153" />
</g>
</g>
</svg>
<svg version="1.1" class="jbox-next" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 306 306" xml:space="preserve">
<g>
<g id="chevron-right">
<polygon points="94.35,0 58.65,35.7 175.95,153 58.65,270.3 94.35,306 247.35,153" />
</g>
</g>
</svg>
<svg version="1.1" class="jbox-close" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<path d="M512,51.75L460.25,0L256,204.25L51.75,0L0,51.75L204.25,256L0,460.25L51.75,512L256,307.75L460.25,512L512,460.25
L307.75,256L512,51.75z" />
</svg>
</div>
<?php include "footer.php"; ?>
<div class="go-top">
<i class="bx bx-chevrons-up"></i>
<i class="bx bx-chevrons-up"></i>
</div>
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/meanmenu.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/form-validator.min.js"></script>
<script src="assets/js/contact-form-script.js"></script>
<script src="assets/js/ajaxchimp.min.js"></script>
<script src="assets/js/range-slider.min.js"></script>
<script src="assets/js/custom.js"></script>
<script src="gallery-files/js/jquery.min.js"></script>
<script src="gallery-files/js/jBox-min.js"></script>
<script>
var gallery = new jBox();
</script>
</body>
</html>
Directory Contents
Dirs: 22 × Files: 54