Viewing file: testimonials.php (22.44 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'header.php';
// How many adjacent pages should be shown on each side?
$adjacents = 3;
/*
First get total number of rows in data table.
If you have a WHERE clause in your query, make sure you mirror it here.
*/
$total_pages_sql = $con->query("SELECT COUNT(*) as total FROM placed_students order by id desc");
$result = mysqli_fetch_assoc($total_pages_sql);
$total_pages = $result['total'];
if (isset($_GET['page'])) {
$page = $_GET['page'];
} else {
$page = 1;
}
/* Setup vars for query. */
$limit = 9; //how many items to show per page
if ($page)
$start = ($page - 1) * $limit; //first item to display on this page
else
$start = 0; //if no page var is given, set start to 0
/* Get data. */
$query = "SELECT * FROM placed_students order by id desc LIMIT $start, $limit";
$data = $con->query($query);
/* Setup page vars for display. */
if ($page == 0)
$page = 1; //if no page var is given, default to 1.
$prev = $page - 1; //previous page is page - 1
$next = $page + 1; //next page is page + 1
$lastpage = ceil($total_pages / $limit); //lastpage is = total pages / items per page, rounded up.
$lpm1 = $lastpage - 1; //last page minus 1
/*
Now we apply our rules and draw the pagination object.
We're actually saving the code to a variable in case we want to draw it more than once.
*/
$pagination = "";
if ($lastpage > 1) {
$pagination .= "<div class=\"pagination\" style='float: right;margin: 30px;'>";
//previous button
if ($page > 1)
$pagination .= "<a href=\"?page=$prev\">previous</a>";
else
$pagination .= "<a class=\"disabled\">previous</a>";
//pages
if ($lastpage < 7 + ($adjacents * 2)) { //not enough pages to bother breaking it up
for ($counter = 1; $counter <= $lastpage; $counter++) {
if ($counter == $page)
$pagination .= "<a href='#' class=\"current\">$counter</a>";
else
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
}
}
elseif ($lastpage > 5 + ($adjacents * 2)) { //enough pages to hide some
//close to beginning; only hide later pages
if ($page < 1 + ($adjacents * 2)) {
for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) {
if ($counter == $page)
$pagination .= "<a href='#' class=\"current\">$counter</a>";
else
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
}
$pagination .= "...";
$pagination .= "<a href=\"?page=$lpm1\">$lpm1</a>";
$pagination .= "<a href=\"?page=$lastpage\">$lastpage</a>";
}
//in middle; hide some front and some back
elseif ($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) {
$pagination .= "<a href=\"?page=1\">1</a>";
$pagination .= "<a href=\"?page=2\">2</a>";
$pagination .= "...";
for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) {
if ($counter == $page)
$pagination .= "<a href='#' class=\"current\">$counter</a>";
else
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
}
$pagination .= "...";
$pagination .= "<a href=\"?page=$lpm1\">$lpm1</a>";
$pagination .= "<a href=\"?page=$lastpage\">$lastpage</a>";
}
//close to end; only hide early pages
else {
$pagination .= "<a href=\"?page=1\">1</a>";
$pagination .= "<a href=\"?page=2\">2</a>";
$pagination .= "...";
for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) {
if ($counter == $page)
$pagination .= "<a href='#' class=\"current\">$counter</a>";
else
$pagination .= "<a href=\"?page=$counter\">$counter</a>";
}
}
}
//next button
if ($page < $counter - 1)
$pagination .= "<a href=\"?page=$next\">next</a>";
else
$pagination .= "<a class=\"disabled\">next</a>";
$pagination .= "</div>\n";
}
?>
<style>
</style>
<section class="bnner_sec-rs gallery">
<div class="container">
<div class="row">
<div class="col-12">
<div class="banner-sec">
<div class="hdng gall">
<h1 style="text-transform: uppercase;"><span>Latest</span> Testimonials from Srishti Campus</h1>
<p></p>
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="latestnews">
<div class="why" style="margin: 20px 0px;">
<h3>Introducing Online Training
<span class="enroleBtns"><a class="view" href="online-training.php">ENROLL NOW</a></span></h3>
</div>
<div class="row" id="page" >
<!-- <video style="box-shadow: 0 0 5px #00000030;" width="500px" height="283" poster="images/poster.jpg" controls>
<source src="video/testimonial hd.mp4" type="video/mp4">
</video> -->
<div class="col-lg-6 px-5 py-5">
<img src="images/shini_as.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-shini_as" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/aug_1_sec.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-aug_1_sec" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/aug_1_first.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-aug_1_first" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/april_18_2023_1.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-RADHUL" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/april_18_2023_4.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-ALINSMOHAN" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/april_18_2023_3.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-INDURAJ" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/april_18_2023_2.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-DINESH" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/surya.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-surya" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/sourav.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-sourav" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/renald.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-renald" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/gopika.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-gopika" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/ajith.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-ajith" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/sreekanth.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-sreekanth" >
</div>
<div class="col-lg-6 px-5 py-5">
<img src="images/leeba.png" style="cursor:pointer; border-radius: 60px; border-left: 10px solid #0f4eb1;" data-toggle="modal" data-target="#exampleModal-leeba" >
</div>
<!-- <iframe width="520" height="315" src="https://www.youtube.com/embed/L3I7r2PFhT0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>-->
<!-- <video style="box-shadow: 0 0 5px #00000030;margin-left: 15px;" width="500px" height="283" poster="images/poster.jpg" controls>
<source src="video/Testimonial by Leeba.mp4" type="video/mp4">
</video> -->
<!-- <iframe style="margin-left: 15px;" width="520" height="315" src="https://www.youtube.com/embed/jJjCWacAi9U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>-->
<?php
//while ($row1 = mysqli_fetch_assoc($data)) {
?>
<!-- <div class="news">
<div class="placement-news">
<div class="arn"><img class="placedpic" src="placedstudents/<?php //echo $row1['image']; ?>" style="width:100px;" alt="image"/></div>
<h2><?php //echo $row1['title']; ?></h2>
<p><?php// echo $row1['description']; ?></p>
</div>
</div> -->
<?php
// }
?>
</div>
<?= $pagination ?>
</div>
</div>
</div>
</div>
</section>
<div class="modal fade " id="exampleModal-leeba" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/L3I7r2PFhT0?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-sreekanth" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/jJjCWacAi9U?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-gopika" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/6k2pd8te3HY?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-ajith" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/EJ_Y3Abfipo?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-renald" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/-gn7gPpxoMs?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-sourav" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/qFkKbeR_wsE?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-surya" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/RCYfGfLlChc?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-DINESH" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/RRvNoHQV2aQ?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-INDURAJ" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/0B4HBtxlw6E?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-ALINSMOHAN" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/LPNbOi79I3I?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-RADHUL" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/sGlz9A7fUAc?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-aug_1_first" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/nXA7OPrWojU?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-aug_1_sec" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/aHBKU-0ddx4?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<div class="modal fade " id="exampleModal-shini_as" aria-hidden="true" aria-labelledby="exampleModalToggleLabel" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="close-popup">
<ul class="soc_icns">
<li> <a id="close_clic" href="" data-dismiss="modal" aria-label="Close"> <i class="fas fa-times" aria-hidden="true"></i> </a> </li>
</ul>
</div>
<div class="modal-body">
<iframe style="" width="100%" height="400" src="https://www.youtube.com/embed/p2TeuosFxQs?si=FjAatPzkRBtaqrhW?autoplay=1&mute=1" title="YouTube video player" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
|