From 211a2486175b2b40568118ad1797b6c0755a5dd4 Mon Sep 17 00:00:00 2001 From: aldrichvalentino <aldrich.vh97@gmail.com> Date: Sat, 7 Oct 2017 08:35:41 +0700 Subject: [PATCH] fixed routing page from login to profile and order page --- controller/orderController.php | 2 +- view/edit-profile.php | 2 +- view/index.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/orderController.php b/controller/orderController.php index 77e0c4bf..17ecd07b 100644 --- a/controller/orderController.php +++ b/controller/orderController.php @@ -80,5 +80,5 @@ if(isset($_POST['pickup'])){ $comment = $_POST['comment']; $transaction = new Order(); $transaction->setTransaction($userId, $driverId, $pickup, $destination, $date, $rating, $comment); - header('Location: ../view/dashboard.php?id='.$userId); + header('Location: ../view/order.php?id='.$userId); } diff --git a/view/edit-profile.php b/view/edit-profile.php index 2e4783cc..aa0ef86f 100644 --- a/view/edit-profile.php +++ b/view/edit-profile.php @@ -46,7 +46,7 @@ </div> <div> <div> - <a class="back" href="dashboard.php?id=<?php echo $_GET['id'];?>">BACK</a> + <a class="back" href="profile.php?id=<?php echo $_GET['id'];?>">BACK</a> <input type="submit" value="SAVE" class="save" name="submit"> </div> </div> diff --git a/view/index.php b/view/index.php index 2a45e490..dd4496a2 100644 --- a/view/index.php +++ b/view/index.php @@ -7,9 +7,9 @@ $result = $result->fetch_assoc(); if($count == 1) { if ($result['isDriver']) { - header("location:dashboard.php?id=" . $result["id"]); + header("Location: profile.php?id=" . $result["id"]); } else { - header("location:dashboard.php?id=" . $result["id"]); + header("Location: order.php?id=" . $result["id"]); } } else { echo "<script>alert('Username dan/atau password yang anda masukkan salah.')</script>"; -- GitLab