diff options
Diffstat (limited to 'client.php')
-rw-r--r-- | client.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { <h3><?php echo strtoupper($type[0]).substr($type, 1); ?> panel</h3> <div class="row"> <div class="col5"> - <h3>Active services</h3> + <h3>Orders</h3> <table> - <tr><th>service</th><th>instance</th><th>billing</th><th>comments</th></tr> + <tr><th>service</th><th>instance</th><th>billing</th><th>comments</th><th>status</th></tr> <?php foreach ($orders as $order) { - echo "<tr><td>".getservicebyid($order["service"])["name"]."</td><td>".$order["name"]."</td><td>".$order["billing"]."</td><td><pre>".$order["comments"]."</pre></td></tr>\n"; + echo "<tr><td>".getservicebyid($order["service"])["name"]."</td><td>".$order["name"]."</td><td>".$order["billing"]."</td><td><pre>".$order["comments"]."</pre></td><td>".$order["status"]."</tr>\n"; } ?> </table> |