added user reviews functionality-index page
This commit is contained in:
parent
19375cb450
commit
24ff4cf9e7
1 changed files with 21 additions and 14 deletions
|
@ -202,24 +202,31 @@
|
|||
</div>
|
||||
</div>
|
||||
<!--testimonials-->
|
||||
<?php
|
||||
$review_qurey = "SELECT re. *, uc.firstname AS uname, rs.name AS rname FROM `review` re INNER JOIN `user_creds` uc ON re.user_id = uc.id INNER JOIN `rooms` rs ON re.room_id = rs.id ORDER BY `sr_no` DESC LIMIT 3";
|
||||
$review_res = mysqli_query($con, $review_qurey);
|
||||
if(mysqli_num_rows($review_res) == 0){
|
||||
echo 'There is no review at this moment!';
|
||||
} else{
|
||||
while($row = mysqli_fetch_assoc($review_res)){
|
||||
|
||||
$slide .= "
|
||||
<div class='swiper-slide'>
|
||||
<div class='profile'>
|
||||
<p class='testimonials-text'>$row[review]</p>
|
||||
<p class='testimonials-user'>$row[uname]</p>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="panel" data-color="white">
|
||||
<img src="./images/logo.png" class="pre-header-testimonials"/>
|
||||
<div class="swiper swiper-testimonials">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide">
|
||||
<div class="profile">
|
||||
<p class="testimonials-text">I recently had the pleasure of staying at the midtown hotel and was blown away by the exceptional service and comfortable accommodations.
|
||||
I would highly recommend this hotel to anyone looking for a relaxing and enjoyable stay.</p>
|
||||
<p class="testimonials-user">-Jennifer</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="swiper-slide">
|
||||
<div class="profile">
|
||||
<p class="testimonials-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||
<p class="testimonials-user">-anonymous</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $slide ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue