Closed norhusna closed 3 years ago
<?php include("../functions.php");
if((!isset($_SESSION['uid']) && !isset($_SESSION['username']) && isset($_SESSION['user_level'])) ) header("Location: login.php");
if($_SESSION['user_level'] != "admin") header("Location: login.php");
?> <!DOCTYPE html>
All sales data here.
Today | RM |
This Week | RM |
This Month | RM |
All Time | RM |
Order # | Menu | Item Name | Quantity | Status | Total (RM) | Date | query($displayOrderQuery)) { $currentspan = 0; $total = 0; //if no order if ($orderResult->num_rows == 0) { echo "
---|---|---|---|---|---|---|
There are currently no order right now. | ||||||
# ".$orderRow['orderID']." | "; } echo "".$orderRow['menuName']." | ".$orderRow['menuItemName']." | ".$orderRow['quantity']." | "; if ($currentspan == $rowspan) { $color = "badge"; switch ($orderRow['status']) { case 'waiting': $color = "badge badge-warning"; break; case 'preparing': $color = "badge badge-primary"; break; case 'ready': $color = "badge badge-success"; break; case 'cancelled': $color = "badge badge-danger"; break; case 'finish': $color = "badge badge-success"; break; case 'Completed': $color = "badge badge-success"; break; } echo "".$orderRow['status']." | "; echo "".getSalesTotal($orderRow['orderID'])." | "; echo "".$orderRow['order_date']." | "; echo ""; } echo "
change request approved
Ensuring that the financial flow is more detail and precise