/home3/vehiclea/public_html/sreemahadevgroup9/gallery.php
<?php
$_SESSION['active'] = 'gallery';
include('header.php');
?>
<link href="vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="vendor/aos/aos.css" rel="stylesheet">
<link href="vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<?php
$limit = 10;
$sql = executework("SELECT COUNT(id) FROM gallery");
$row = mysqli_fetch_row($sql);
$total_records = $row[0];
$total_pages = ceil($total_records / $limit);
if(!empty($_GET['page']))
{
$page = $_GET["page"];
$start_from = ($page-1) * $limit;
?>
<div class="hero-wrap" style="background-image: url('images/bg_1.jpg');">
<div class="overlay"></div>
<div class="container">
<div class="row no-gutters slider-text align-items-center justify-content-center">
<div class="col-md-9 ftco-animate text-center">
<h6 class="breadcrumbs"><span class="mr-2"><a href="index.php">Home</a></span> <span>Gallery</span></h6>
<h1 class="mb-3 bread">GALLERY</h1>
</div>
</div>
</div>
</div>
<section id="portfolio" class="portfolio sections-bg">
<div class="section-full bg-white content-inner-2" style="background-image:url(error-404.html);">
<div class="container" data-aos="fade-up">
<div class="portfolio-isotope" data-portfolio-filter="*" data-portfolio-layout="masonry" data-portfolio-sort="original-order" data-aos="fade-up" data-aos-delay="100">
<div>
</div>
<div class="row gy-4 portfolio-container">
<?php
$select_gallery = executework("SELECT * FROM gallery limit $start_from,$limit");
while($row = mysqli_fetch_array($select_gallery)){
?>
<div class="col-xl-4 col-md-6 portfolio-item">
<div class="portfolio-wrap">
<a href="Dashboard/<?= $row['image']?>" data-gallery="portfolio-gallery-app" class="glightbox">
<img src="Dashboard/<?= $row['image']?>" alt="" width="450px" height="300px"></a>
<div class="portfolio-info">
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
if($limit > 9){
?>
<div class="row mt-5">
<div class="col text-center">
<div class="block-27">
<ul>
<?php if(!empty($total_pages)):for($i=1; $i<=$total_pages; $i++):
if($i == 1):?>
<li id="<?php echo $i;?>"><a href='gallery.php?page=<?php echo $i;?>'><?php echo $i;?></a></li>
<?php else:?>
<li id="<?php echo $i;?>"><a href='gallery.php?page=<?php echo $i;?>'><?php echo $i;?></a></li>
<?php endif;?>
<?php endfor;endif;?>
</ul>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</section>
<?php
}
else{
?>
<div class="hero-wrap" style="background-image: url('images/bg_1.jpg');">
<div class="overlay"></div>
<div class="container">
<div class="row no-gutters slider-text align-items-center justify-content-center">
<div class="col-md-9 ftco-animate text-center">
<h6 class="breadcrumbs"><span class="mr-2"><a href="index.php">Home</a></span> <span>Gallery</span></h6>
<h1 class="mb-3 bread">GALLERY</h1>
</div>
</div>
</div>
</div>
<section id="portfolio" class="portfolio sections-bg">
<div class="section-full bg-white content-inner-2" style="background-image:url(error-404.html);">
<div class="container" data-aos="fade-up">
<div class="portfolio-isotope" data-portfolio-filter="*" data-portfolio-layout="masonry" data-portfolio-sort="original-order" data-aos="fade-up" data-aos-delay="100">
<div>
</div>
<div class="row gy-4 portfolio-container">
<?php
$select_gallery = executework("SELECT * FROM gallery limit $limit");
while($row = mysqli_fetch_array($select_gallery)){
?>
<div class="col-xl-4 col-md-6 portfolio-item">
<div class="portfolio-wrap">
<a href="Dashboard/<?= $row['image']?>" data-gallery="portfolio-gallery-app" class="glightbox">
<img src="Dashboard/<?= $row['image']?>" alt="" width="450px" height="300px"></a>
<div class="portfolio-info">
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</section>
<section>
<div>
<?php
if($limit > 9){
?>
<div class="row mt-5">
<div class="col text-center">
<div class="block-27">
<ul>
<?php if(!empty($total_pages)):for($i=1; $i<=$total_pages; $i++):
if($i == 1):?>
<li id="<?php echo $i;?>"><a href='gallery.php?page=<?php echo $i;?>'><?php echo $i;?></a></li>
<?php else:?>
<li id="<?php echo $i;?>"><a href='gallery.php?page=<?php echo $i;?>'><?php echo $i;?></a></li>
<?php endif;?>
<?php endfor;endif;?>
</ul>
</div>
</div>
</div>
<?php
}
?>
</div>
</section>
<?php
}
?>
<section id="video" style="margin-top: 20px;">
<!-- <div class="container" style="margin-bottom: 20px;"> -->
<div class="container">
<div class="row">
<div class="container">
<div class="row justify-content-center mb-5 pb-3">
<div class="col-4 col-md-12 heading-section text-center ftco-animate">
<!-- <span class="subheading">Special Offers</span> -->
<h2 class="mb-4">Videos</h2>
</div>
</div>
</div>
<?php
$select_video = executework("SELECT * FROM video");
while($select_videoData = mysqli_fetch_array($select_video)){
$video = $select_videoData['video_link'];
?>
<div class="col-lg-4 col-md-6 video-img">
<h2><?php echo $select_videoData["name"] ?></h2>
<iframe width="355" height="240" src="<?php echo $video ?>" frameborder="0" allowfullscreen></iframe>
</div>
<?php
}
?>
</div>
</div>
</section>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="vendor/aos/aos.js"></script>
<script src="vendor/glightbox/js/glightbox.min.js"></script>
<script src="vendor/purecounter/purecounter_vanilla.js"></script>
<script src="vendor/swiper/swiper-bundle.min.js"></script>
<script src="vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="vendor/php-email-form/validate.js"></script>
<script src="js/main1.js"></script>
<style>
/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-flters {
padding: 0 0 20px 0;
margin: 0 auto;
list-style: none;
text-align: center;
}
.portfolio .portfolio-flters li {
cursor: pointer;
display: inline-block;
padding: 0;
font-size: 18px;
font-weight: 500;
margin: 0 10px;
line-height: 1;
transition: all 0.3s ease-in-out;
}
.portfolio .portfolio-flters li:hover,
.portfolio .portfolio-flters li.filter-active {
color: var(--color-primary);
}
.portfolio .portfolio-flters li:first-child {
margin-left: 0;
}
.portfolio .portfolio-flters li:last-child {
margin-right: 0;
}
@media (max-width: 575px) {
.portfolio .portfolio-flters li {
font-size: 14px;
margin: 0 5px;
}
}
.portfolio .portfolio-wrap {
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
border-radius: 10px;
height: 100%;
overflow: hidden;
}
.portfolio .portfolio-wrap img {
transition: 0.3s;
position: relative;
z-index: 1;
}
.portfolio .portfolio-wrap .portfolio-info {
/*padding: 25px 20px;*/
background-color: #fff;
position: relative;
border-top: 1px solid #f3f3f3;
z-index: 2;
}
.portfolio .portfolio-wrap .portfolio-info h4 {
font-size: 18px;
font-weight: 600;
padding-right: 50px;
}
.portfolio .portfolio-wrap .portfolio-info h4 a {
color: var(--color-default);
transition: 0.3s;
}
.portfolio .portfolio-wrap .portfolio-info h4 a:hover {
color: var(--color-primary);
}
.portfolio .portfolio-wrap .portfolio-info p {
color: #6c757d;
font-size: 14px;
margin-bottom: 0;
padding-right: 50px;
}
.portfolio .portfolio-wrap:hover img {
transform: scale(1.1);
}
/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
width: 100%;
}
.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
width: 12px;
height: 12px;
background-color: rgba(255, 255, 255, 0.7);
opacity: 1;
}
.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
background-color: var(--color-primary);
}
.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
width: 48px;
height: 48px;
}
.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
color: rgba(255, 255, 255, 0.8);
background-color: rgba(0, 0, 0, 0.2);
font-size: 24px;
border-radius: 50%;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
transition: 0.3s;
}
.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
background-color: rgba(0, 0, 0, 0.6);
}
@media (max-width: 575px) {
.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
display: none;
}
}
.portfolio-details .portfolio-info h3 {
font-size: 22px;
font-weight: 700;
margin-bottom: 20px;
padding-bottom: 20px;
position: relative;
}
.portfolio-details .portfolio-info h3:after {
content: "";
position: absolute;
display: block;
width: 50px;
height: 3px;
background: var(--color-primary);
left: 0;
bottom: 0;
}
.portfolio-details .portfolio-info ul {
list-style: none;
padding: 0;
font-size: 15px;
}
.portfolio-details .portfolio-info ul li {
display: flex;
flex-direction: column;
padding-bottom: 15px;
font-size: 16px;
}
.portfolio-details .portfolio-info ul strong {
text-transform: uppercase;
font-weight: 400;
color: #9c9c9c;
font-size: 12px;
}
.portfolio-details .portfolio-info .btn-visit {
padding: 8px 40px;
background: var(--color-primary);
color: #fff;
border-radius: 50px;
transition: 0.3s;
}
.portfolio-details .portfolio-info .btn-visit:hover {
background: #009d8b;
}
.portfolio-details .portfolio-description h2 {
font-size: 26px;
font-weight: 700;
margin-bottom: 20px;
}
.portfolio-details .portfolio-description p {
padding: 0;
}
.portfolio-details .portfolio-description .testimonial-item {
padding: 30px 30px 0 30px;
position: relative;
background: white;
height: 100%;
margin-bottom: 50px;
}
.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
width: 90px;
border-radius: 50px;
border: 6px solid #fff;
float: left;
margin: 0 10px 0 0;
}
.portfolio-details .portfolio-description .testimonial-item h3 {
font-size: 18px;
font-weight: bold;
margin: 15px 0 5px 0;
padding-top: 20px;
}
.portfolio-details .portfolio-description .testimonial-item h4 {
font-size: 14px;
color: #6c757d;
margin: 0;
}
.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
color: #009d8b;
font-size: 26px;
line-height: 0;
}
.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
display: inline-block;
left: -5px;
position: relative;
}
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
display: inline-block;
right: -5px;
position: relative;
top: 10px;
transform: scale(-1, -1);
}
.portfolio-details .portfolio-description .testimonial-item p {
font-style: italic;
margin: 0 0 15px 0 0 0;
padding: 0;
}
</style>
<?php include('footer.php');?>
@LwBee Strong Bypass
Upload File
Create New File