📁
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
3516.7 KB
0644
🗑️
⬇️
✏️
🔒
Editing: process.php
<?php include "header.php"; ?> <div id="layoutSidenav_content"> <main> <div class="container-fluid px-4"> <h1 class="mt-4">Listings Section</h1> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item active">Process Single Listing</li> </ol> <div class="row"> <div class="col-xl-12 col-md-12"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <?php //get the name of the product $use = $_SESSION['idn']; $sqk = "SELECT all* from lest where s='$use'"; $sqlp = mysqli_query($con,$sqk); while($rowe = mysqli_fetch_array($sqlp)) { $see = $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['conditioner']; $trip = $rowe['typer']; $end = $rowe['endd']; $stat = $rowe['status']; $dua = $rowe['duration']; $staff = $rowe['staff']; $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 "; // If the count down is over, write some text if (distance < 0) { clearInterval(x); document.getElementById("'.$see .'").innerHTML = "EXPIRED"; } }, 1000); </script> '; //views per product $sql = "SELECT count(*) As 'total' FROM view WHERE id='$see'"; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); $kan=$dad['total']; //views per bid $sql = "SELECT count(*) As 'total' FROM bid WHERE id='$see' and user!='admin'"; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); $kany=$dad['total']; $sqls = "SELECT all* from bid where id='$see' ORDER BY s DESC LIMIT 1"; $sql2s = mysqli_query($con,$sqls); while($row = mysqli_fetch_array($sql2s)) { $cash = $row['amount']; $usidd = $row['user']; } $sqls = "SELECT all* from user where user='$usidd' ORDER BY s DESC LIMIT 1"; $sql2s = mysqli_query($con,$sqls); while($row = mysqli_fetch_array($sql2s)) { $umail = $row['email']; $umob = $row['phone']; } $rad=$cash-($cash*($ran/100)); $rane=$cash-$rad; ?> <style> .list-group-item span{ color:#0000FF; }</style> <div class="card"> <div class="card-body"> <p><?php include "complete.php"; ?></p> <!-- List group with active and disabled items --> <div class="container" class="fones"> <div class="row"> <div class="project-info-box mt-0"> <h3><?php echo $neme; ?> (<?php echo $trip; ?> Listing)</h3> <p class="mb-0" style="border:0;"><?php echo $deb; ?></p> </div><!-- / project-info-box --> <div class="project-info-box"> <p><b>Price: </b> ₦ <?php echo $per; ?></p> <p><b>Ends In </b></p> <p id="<?php echo $see; ?>" style="border:0;"></p> <p><b>Status:</b><?php echo $stat; ?></p> <p><svg style="opacity: 0.4;" xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="M10 12.438Q11.208 12.438 12.042 11.594Q12.875 10.75 12.875 9.562Q12.875 8.354 12.031 7.521Q11.188 6.688 10 6.688Q8.792 6.688 7.958 7.531Q7.125 8.375 7.125 9.562Q7.125 10.792 7.969 11.615Q8.812 12.438 10 12.438ZM10 11.812Q9.062 11.812 8.406 11.156Q7.75 10.5 7.75 9.562Q7.75 8.625 8.406 7.969Q9.062 7.312 10 7.312Q10.938 7.312 11.594 7.969Q12.25 8.625 12.25 9.562Q12.25 10.5 11.594 11.156Q10.938 11.812 10 11.812ZM10 14.75Q7.375 14.75 5.24 13.333Q3.104 11.917 2 9.562Q3.104 7.208 5.25 5.802Q7.396 4.396 10 4.396Q12.604 4.396 14.75 5.802Q16.896 7.208 18 9.562Q16.896 11.917 14.76 13.333Q12.625 14.75 10 14.75Z"/></svg> <span style="font-weight: 600; color: #999;" ><?php echo $kan; ?> total views</span></p> <p><b>Total Bid:</b> <?php echo $kany; ?></p> <p><b>Current Selling Price:</b> ₦<?php echo $cash; ?></p> <p><b>Current OshoFree Percentage:</b> <?php echo $ran; ?>% - ₦ <?php echo $rane; ?></p> <p><b>Buyer :</b> <?php echo $usidd; ?></p> <p><b>Buyer's Email :</b> <?php echo $umail; ?></p> <p><b>Buyer's Mobile :</b> <?php echo $umob; ?></p> <!-- Vertically centered Modal --> <div class="modal fade" id="myModal" tabindex="-1"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Complete Listing?</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <form method="post" style="text-align:center;"> <input type="text" value="<?php echo $use;?>" name="see" hidden /> <p>100% percent sure you are ready to complete this Listing?</p> </div> <div class="modal-footer"> <button type="submit" name="complete" value="ma" class="btn btn-secondary">Yes,I am</button> <button type="button" class="btn btn-danger" data-bs-dismiss="modal">No,I am not</button> </div></form> </div> </div> </div><!-- End Vertically centered Modal--> </div><!-- / project-info-box --> </div></div></div> <button type="button" class="btn btn-success" data-bs-toggle="modal" data-bs-target="#myModal"><i class="bi bi-check-circle"></i>Complete </button> <br /><br /></div></div> </div></div> </div> </div> </section> </div></div> </div> </main> <?php include "footer.php"; ?>
💾 Save Changes