📁
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
3384.36 KB
0644
🗑️
⬇️
✏️
🔒
Editing: ads.php
<?php include "header2.php";?> <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> <style> .round-active { background-color: #00CC00; border-radius: 10px; } .round-active p { color: white; padding: 0px 3px; } .round:hover { background: rgba(35, 226, 35, 0.3); border-radius: 10px; } .tit { font-size: 1.8rem; } .textt { font-size: 1.4rem; } @media (max-width: 600px) { .prd { height: 150px; width: 150px; } .prd-det { position: relative; left: -40px; } .tit { font-size: 0.8rem; } .textt { font-size: 1rem; } } </style> </head> <body> <main id="main"> <div class="container mt-3"> <div class="d-flex flex-row justify-content-around mx-2 pt-3"> <div class="round round-active pt-3"> <a href="ads.php"> <button class="btn-fixed"> <span> <i class='bx bxs-check-circle' style="font-size: 1.3rem;"></i> <p style="font-weight: 600;">Active(<?php $sql = "SELECT count(*) As 'total' FROM product where userid='".$usid."' && status='Approved' "; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); $kany=$dad['total']; echo $kany; ?>)</p> </button> </span> </div> <div class="round pt-3"> <a href="viewing.php"> <button class="btn-fixed"> <span> <i class='bx bxs-edit-alt' style="font-size: 1.rem;"></i> </span> <p style="font-weight: 600;">InReview (<?php $sql = "SELECT count(*) As 'total' FROM product where userid='".$usid."' && status='Review' "; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); $kany=$dad['total']; echo $kany; ?>)</p> </button> </a> </div> <div class="round pt-3"> <a href="decline.php"> <button class="btn-fixed"> <span> <svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M7.75 16.25Q8.625 17.075 9.713 17.538Q10.8 18 12 18Q14.5 18 16.25 16.25Q18 14.5 18 12Q18 9.5 16.25 7.75Q14.5 6 12 6V12ZM12 22Q9.925 22 8.1 21.212Q6.275 20.425 4.925 19.075Q3.575 17.725 2.788 15.9Q2 14.075 2 12Q2 9.925 2.788 8.1Q3.575 6.275 4.925 4.925Q6.275 3.575 8.1 2.787Q9.925 2 12 2Q14.075 2 15.9 2.787Q17.725 3.575 19.075 4.925Q20.425 6.275 21.212 8.1Q22 9.925 22 12Q22 14.075 21.212 15.9Q20.425 17.725 19.075 19.075Q17.725 20.425 15.9 21.212Q14.075 22 12 22ZM12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12Q12 12 12 12ZM12 20Q15.325 20 17.663 17.663Q20 15.325 20 12Q20 8.675 17.663 6.337Q15.325 4 12 4Q8.675 4 6.338 6.337Q4 8.675 4 12Q4 15.325 6.338 17.663Q8.675 20 12 20Z"/></svg> </span> <p style="font-weight: 600;">Failed(<?php $sql = "SELECT count(*) As 'total' FROM product where userid='".$usid."' && status='Failed' "; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); $kany=$dad['total']; echo $kany; ?>)</p> </button> </a> </div> <div class="round pt-3"> <a href="close.php"> <button class="btn-fixed"> <span> <i class="bx bxs-checkbox" style="font-size: 1.1rem; color: white; background: grey; border-radius: 50%; padding: 2px;"></i> </span> <p style="font-weight: 600;">Closed(<?php $sql = "SELECT count(*) As 'total' FROM product where userid='".$usid."' && status='Closed' "; $sql2 = mysqli_query($con,$sql); $dad = mysqli_fetch_assoc($sql2); $kany=$dad['total']; echo $kany; ?>)</p> </button> </a> </div> </div> <style> input:focus { box-shadow: none !important; } </style> <div class="mt-3"> <div class="container-fluid"> <form class="d-flex border"> <i class="bx bx-search btn" style="font-size: 1.8rem;"></i> <input class="form-control border-0" type="search" placeholder="Type your search here" aria-label="Search"> </form> </div> </div> <?php //Edit,Top Or Close if (isset( $_POST['sub'])){ $use = $_POST['see']; $sub= $_POST['sub']; if ($sub =="edit") { session_start(); $_SESSION['seal'] = $use; echo header("location:editad.php"); } if ($sub =="close") { $insert = mysqli_query($con,"UPDATE product SET status= 'Closed' where s ='$use'") or die ('Could not connect: ' .mysqli_error($con)); echo "<script> $(document).ready(function(){ $('#myModal').modal('show'); }); </script>"; } if ($sub =="top") { session_start(); $_SESSION['seal'] = $use; echo header("location:toppay.php"); } } ?> <!-- 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">Advert Closed!</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <p>Advert has been successfully closed</p> </div> <div class="modal-footer"> <button type="button" name="fail" class="btn btn-secondary" data-bs-dismiss="modal">Done</button> </div> </div> </div> </div><!-- End Vertically centered Modal--> <?php include "connect_to_mysqli.php"; $sql ="SELECT all* from product where userid='".$usid."' && status='Approved' ORDER by date DESC"; $sql2 = mysqli_query($con,$sql); while($row = mysqli_fetch_array($sql2)) { $id = $row["s"]; $idea = $row["id"]; $loca= $row["location"]; $da= $row["date"]; $tit= $row["title"]; $per= $row["price"]; $imageURL='../product/'.$row["file_name"]; $nem= $row["cart"]; $ram= $row["range"]; $sqk = "SELECT all* from carte where id='$nem'"; $sqlp = mysqli_query($con,$sqk); while($rowe = mysqli_fetch_array($sqlp)) {$neme = $rowe['name'];} if($loca=="") { echo "";} else { $sq = "SELECT count(*) As 'total' FROM view WHERE id='$idea'"; $sq2 = mysqli_query($con,$sq); $dad = mysqli_fetch_assoc($sq2); $kan=$dad['total']; $sqs = "SELECT count(*) As 'total' FROM room WHERE id='$idea'"; $sq = mysqli_query($con,$sqs); $dad = mysqli_fetch_assoc($sq); $kand=$dad['total']; } echo' <div class="mt-3"> <div class="card mb-3" > <div class="d-flex no-gutters"> <div class="col-3"> <img src="'.$imageURL.'" alt="product image"style="max-width:60%; height: auto;"> </div> <div class="col-6 prd-det"> <div class="card-body px-2"> <h5 class="card-title tit" style="font-weight: 600; text-transform:Uppercase;">'.$tit.'</h5> <p class="card-text mt-2 textt" style="font-weight: 600; color:#00CC00;">'.$ram.'</p> <div class="card-text" style="font-weight: 500; color: #00CC00;">Active<small class="text-muted" style="opacity: 0.5;">| Renewed last: '.$da.'</small></div> <div style="white-space: nowrap; margin-bottom: 10;"> <span style="background: rgba(185, 184, 184, 0.1); border-radius: 5px;" class="small me-3 p-1">'.$kan.' Ads View</span> <span style="background: rgba(185, 184, 184, 0.1); border-radius: 5px;" class="small ms-3 p-1">'.$kand.' chat(s)</span></div> </div> </div> </div> <div class="d-flex justify-content-between m-2 mt-4"> <div style="position: relative; width: 50%;"> <form method="post"> <input type="text" value="'.$id.'" name="see" hidden/> <button style="background: none; border: none; outline: none; color: #00CC00;" type="submit" name="sub" value="edit">Edit</button> <button style="background: none; border: none; outline: none; color: #00CC00; float: right;" type="submit" name="sub" value="close">Close</button> </div> <div> <button style="color: #00CC00; outline: none; border: 1px solid #00CC00; background: none;" type="submit" name="sub" value="top">Top Ad</button> </div></form> </div> </div>'; } ?> </div> </main><!-- End #main --> <?php include "footer2.php";?>
💾 Save Changes