From 68858da5d6166be880f1301f49807a2e52357288 Mon Sep 17 00:00:00 2001 From: arf20 Date: Wed, 20 Mar 2024 16:04:19 +0100 Subject: Add 'setting up' order status --- client.php | 8 ++++---- dbinit.sql | 2 +- manageorders.php | 2 +- order.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client.php b/client.php index 43dd78b..dbab9e8 100644 --- a/client.php +++ b/client.php @@ -14,7 +14,7 @@ $type = $_SESSION["type"]; require_once "config.php"; // Get orders -$sql = "SELECT id, service, name, billing, comments FROM orders WHERE client = ?"; +$sql = "SELECT id, service, name, billing, comments, status FROM orders WHERE client = ?"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_bind_param($stmt, "s", $param_client); $param_client = $clientid; @@ -59,12 +59,12 @@ function getservicebyid($id) {

panel

-

Active services

+

Orders

- + \n"; + echo "\n"; } ?>
serviceinstancebillingcomments
serviceinstancebillingcommentsstatus
".getservicebyid($order["service"])["name"]."".$order["name"]."".$order["billing"]."
".$order["comments"]."
".getservicebyid($order["service"])["name"]."".$order["name"]."".$order["billing"]."
".$order["comments"]."
".$order["status"]."
diff --git a/dbinit.sql b/dbinit.sql index 506729a..b505dbc 100644 --- a/dbinit.sql +++ b/dbinit.sql @@ -28,7 +28,7 @@ CREATE TABLE `arfnet2`.`orders` ( `client` INT NOT NULL , `billing` VARCHAR(255) NOT NULL , `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , - `status` ENUM('active','inactive') NOT NULL , + `status` ENUM('setting up','active','inactive') NOT NULL , `comments` TEXT NOT NULL , PRIMARY KEY (`id`) ); diff --git a/manageorders.php b/manageorders.php index 9452509..49c2e63 100644 --- a/manageorders.php +++ b/manageorders.php @@ -143,7 +143,7 @@ function getclientbyid($id) { echo "

Edit order ".$order["id"]."

\n" ."

\n" ."

\n" - ."

\n" + ."

\n" ."

\n" ."" ."
cancel" diff --git a/order.php b/order.php index 12984ff..5e5675a 100644 --- a/order.php +++ b/order.php @@ -168,7 +168,7 @@ function genoption($id, $name) {


-
+
-- cgit v1.2.3