📁
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
12167 KB
0644
🗑️
⬇️
✏️
🔒
Editing: promo.php
<?php include "header.php"; ?> <main id="main" class="main"> <div class="pagetitle"> <h1>All Promoted Adverts</h1> <nav> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Home</a></li> <li class="breadcrumb-item active">All Promoted Adverts</li> </ol> </nav> </div><!-- End Page Title --> <!-- Recent Sales --> <div class="col-12"> <div class="card recent-sales overflow-auto"> <div class="card-body"> <h5 class="card-title">All Adverts<span>| PromotedOnly</span></h5> <table class="table table-borderless"> <thead> <tr> <th scope="col">Id</th> <th scope="col">User</th> <th scope="col">Product</th> <th scope="col">Price</th> <th scope="col">Status</th> </tr> </thead> <tbody> <?php //get the all unreviewed product $sqk = "SELECT all* from product where app='Yes'&& promo!='Free' ORDER BY Date"; $sqlp = mysqli_query($con,$sqk); while($rowe = mysqli_fetch_array($sqlp)) { $tit = $rowe['title']; $neme = $rowe['name']; $pro = $rowe['promo']; $per = $rowe['price']; $stat = $rowe['status']; $imageURL='../product/'.$rowe["file_name"]; $imageUR='products/'.$rowe["fila_name"]; if($stat =="Approved") { $pend ="badge bg-success";} elseif($stat =="Review") { $pend ="badge bg-warning";} elseif($stat =="Failed") { $pend ="badge bg-danger";} echo ' <tr> <th scope="row">'. $rowe['id'].'</th> <td>'. $rowe['userid'].'</td> <td>'.$neme.'</td> <td>₦ '.$per.'</td> <td><span class="'.$pend.'">'.$stat.'</span></td> </tr>'; } ?> </tbody> </table> </div> </div> </div><!-- End Recent Sales --> </main> <?php include "footer.php"; ?>
💾 Save Changes