📁
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
5576.58 KB
0644
🗑️
⬇️
✏️
🔒
Editing: trash_display.php
<?php $sql = "SELECT * from stocks where status='trash' GROUP BY group_id"; $sql2 = mysqli_query($con,$sql); while ($row = mysqli_fetch_array($sql2)) { $ord=$row['id']; $imageURL='stocks/'.$row["media"]; $cat=$row["category"]; $store = $row["store"]; $retail=$row['retail_price']; $wholesales=$row['wholesales_price'] ; $group=$row['group_id'] ; $promo=$row['promo']; $special=$row['special_promo']; $fast=$row['fast_promo']; $flash=$row['flash_promo']; $date=date('Y-m-d'); //Get media $sqlm = "SELECT * from stock_images WHERE id='$group' order by s ASC "; $sql2m = mysqli_query($con,$sqlm); while($rowa = mysqli_fetch_array($sql2m)) {$imageURL=$rowa["media"];} echo " <tr bgcolor='#fff' class='".$disable."'> <td><div class='dropdown'> <button class='btn btn-primary btn-sm dropdown-toggle' type='button' id='dropdownMenuButton1' data-toggle='dropdown'> Actions </button> <div class='dropdown-menu dropdown-menu-right'> <h6 class='dropdown-header'>Actions</h6> <button data-toggle='modal' data-target='#delete".$row['id']."' class='dropdown-item' style='display: ".$view.";'>Restore Stock</button> </div></td> <td> <i class='fa fa-server' style='font-size:14px; color:#FFC700; display:".$vardisplay.";'></i> </td> <td width='200px' ><img src='stocks/".$imageURL."' alt='' style='width: 50px;'> <br>" . $row['group_id'] . "</td> <td width='200px' >" . $row['name'] . "</td> <td width='200px'>₦" . $retail . "</td> <td width='200px'>₦" . $wholesales. "</td> <div class='modal fade' id='delete".$row['id']."' role='dialog' tabindex='-1'> <div class='modal-dialog modal-dialog-scrollable modal-dialog-centered'> <div class='modal-content'> <div class='modal-header'> <h4 class='modal-title w-100 text-center' style='color:black;'>Restore Item?</h4> </div> <div class='modal-body w-100 text-center' style='color:#FFFFFF;'> <p style='color:black; font-weight:600;'>Are you sure you want to restore this Item(" . $row['name'] . ")</p> <p><form action='' method='post' > <input type='text' name='orderid' value='" . $row['group_id'] . "' required hidden /> <button style='background-color:#FF339A;' value='restore' class='btn btn-sm btn-primary shadow-sm' type='submit' name='submin'>Yes,Restore</button></p> <p><button style='background-color:red;' value='delete' class='btn btn-sm btn-primary shadow-sm' type='submit' name='submin'>No,Delete Completely </button></p></form> <p><button class='btn btn-sm btn-primary shadow-sm' data-dismiss='modal'>No,Keep Stock In Trash</button></p> </div> </div> </div> </div></tr>";} ?>
💾 Save Changes