diff --git a/root/.DS_Store b/root/.DS_Store deleted file mode 100644 index 28d70032ffb8020ad55473821aa2576f5d095cee..0000000000000000000000000000000000000000 Binary files a/root/.DS_Store and /dev/null differ diff --git a/root/PR-Ojek.sql b/root/PR-Ojek.sql deleted file mode 100644 index f1d90595f176ee52779b52abfc3ed98506dc1744..0000000000000000000000000000000000000000 --- a/root/PR-Ojek.sql +++ /dev/null @@ -1,51 +0,0 @@ --- Database PR-Ojek - -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` INT NOT NULL, - `name` VARCHAR(50) NOT NULL, - `email` VARCHAR(50) NOT NULL, - `phone` VARCHAR(20) NOT NULL, - `username` VARCHAR(50) NOT NULL, - `password` VARCHAR(20) NOT NULL, - `status` VARCHAR(10) NOT NULL, - `pict` MEDIUMBLOB DEFAULT NULL, - - PRIMARY KEY (`user_id`) -); - -LOCK TABLES `user` WRITE; - -INSERT INTO `user` VALUES ('1','Donald Trump','donaldducktrump@gmail.com','08136','donaldduck','123456','Not_Driver',DEFAULT); -UNLOCK TABLES; - -CREATE TABLE IF NOT EXISTS `driver` ( - `driver_id` INT NOT NULL, - `total_score` DOUBLE(50,1) NOT NULL, - `votes` DOUBLE(50,1) NOT NULL, - - PRIMARY KEY (`driver_id`), - CONSTRAINT `driver_ibfk_1` FOREIGN KEY (`driver_id`) REFERENCES `user` (`user_id`) -); - -CREATE TABLE IF NOT EXISTS `driver_prefloc` ( - `driver_id` INT NOT NULL, - `pref_loc` VARCHAR(50) NOT NULL, - - PRIMARY KEY (`driver_id`), - CONSTRAINT `driver_prefloc_ibfk_1` FOREIGN KEY (`driver_id`) REFERENCES `driver` (`driver_id`) -); - -CREATE TABLE IF NOT EXISTS `order` ( - `order_id` INT NOT NULL, - `dest_city` VARCHAR(50) NOT NULL, - `pick_city` VARCHAR(50) NOT NULL, - `score` DOUBLE(50,1) NOT NULL, - `comment` VARCHAR(140) NOT NULL, - `driver_id` INT NOT NULL, - `cust_id` INT NOT NULL, - `date` DATE NOT NULL, - - PRIMARY KEY (`order_id`), - CONSTRAINT `order_ibfk_1` FOREIGN KEY (`cust_id`) REFERENCES `user` (`user_id`), - CONSTRAINT `order_ibfk_2` FOREIGN KEY (`driver_id`) REFERENCES `driver` (`driver_id`) -); diff --git a/root/css/.DS_Store b/root/css/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 Binary files a/root/css/.DS_Store and /dev/null differ diff --git a/root/css/color_scheme.jpg b/root/css/color_scheme.jpg deleted file mode 100644 index 59a714d5f071528a5223c5b1ccaa94b0394d756b..0000000000000000000000000000000000000000 Binary files a/root/css/color_scheme.jpg and /dev/null differ diff --git a/root/css/color_scheme.txt b/root/css/color_scheme.txt deleted file mode 100644 index 531e3123275ab11c059caf9571f50fe827056c64..0000000000000000000000000000000000000000 --- a/root/css/color_scheme.txt +++ /dev/null @@ -1,12 +0,0 @@ -plum: rgb(65,62,119) -lighter plum: rgb(92,88,138) -pale cobalt blue: rgb(191,216,255) -lime green: rgb(167,180,4) -winter white: rgb(250, 250, 250) -<?php - if (headers_sent()) { - echo "<script> - document.getElementById('error_msg').innerHTML = 'Invalid username or password!'; - </script>"; - } - ?> \ No newline at end of file diff --git a/root/css/default_style.css b/root/css/default_style.css deleted file mode 100644 index cce0a517494e5f0c01c7e5c0e142dde8ed8f88be..0000000000000000000000000000000000000000 --- a/root/css/default_style.css +++ /dev/null @@ -1,34 +0,0 @@ -body { - background-color: rgb(210,210,210); - color: rgb(250,250,250); -} - -.frame { - border: 7px solid rgb(65,62,119); - border-radius: 25px; - background-color: rgb(92,88,138); - margin: 50px auto; -} - -.frame > h1 { - text-align: center; -} - -input{ - width: 100%; - margin: 1px auto 15px; -} - -input[type="checkbox"]{ - width: 0; - margin-right: 10px; -} - -a:link, a:visited { - color: rgb(250,250,250); - text-decoration: none; -} - -a:hover { - color: rgb(167,180,4); -} \ No newline at end of file diff --git a/root/css/history.css b/root/css/history.css deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/css/login.css b/root/css/login.css deleted file mode 100644 index 94aa02419da9dedefc260e60307e4b732ca6db2b..0000000000000000000000000000000000000000 --- a/root/css/login.css +++ /dev/null @@ -1,53 +0,0 @@ -#login_frame { - height: 550px; - width: 400px; -} - -#login_frame > div { - left: 10%; - width: 80%; - height: auto; - position: relative; -} - -#login_frame input[type="submit"] { - border-radius: 40px; - background-color: rgb(191,216,255); - padding: 5px 3px; - display: block; - width: 30%; - border : none; - cursor : pointer; - margin: 0 auto 15px; -} - -#login_frame input[type="submit"]:hover { - opacity: 0.6; -} - -#sign_up_frame { - width: 400px; - height: 550px; -} - -#sign_up_frame input[type="submit"] { - border-radius: 40px; - background-color: rgb(191,216,255); - padding: 5px 3px; - display: block; - width: 30%; - border : none; - cursor : pointer; - margin: 0 auto 15px; -} - -#sign_up_frame input[type="submit"]:hover { - opacity : 0.6; -} - -#sign_up_frame > div { - left: 10%; - width: 80%; - height: auto; - position: relative; -} diff --git a/root/css/order.css b/root/css/order.css deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/css/profile.css b/root/css/profile.css deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/history/driver_history.html b/root/history/driver_history.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/history/order_history.html b/root/history/order_history.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/index.html b/root/index.html deleted file mode 100644 index 69cad08364743e1c86a80b1b8811c49e05f56259..0000000000000000000000000000000000000000 --- a/root/index.html +++ /dev/null @@ -1,6 +0,0 @@ -<html> -<body> -<?php -<p> Test </p> -</body> -</html> diff --git a/root/login/login.html b/root/login/login.html deleted file mode 100644 index 8098f7295a3c060aa42285601f303959ec91473f..0000000000000000000000000000000000000000 --- a/root/login/login.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>Login to OneHundred</title> - <link rel="stylesheet" type="text/css" href="../css/default_style.css"> - <link rel="stylesheet" type="text/css" href="../css/login.css"> -</head> -<body> - <div id="login_frame" class="frame"> - - <h1 style="text-align: center;">--- Login ---</h1> - - <div> - <form method="post"> - Username - <input type="text" name="user_name"><br/> - - Password - <input type="Password" name="user_password"><br/> - - <input type="submit" value="GO!"> - </form> - - <a href="sign_up.html">Don't have an account?</a><br/> - </div> - </div> -</body> -</html> diff --git a/root/login/sign_up.html b/root/login/sign_up.html deleted file mode 100644 index 00be87dffb34de1c2aa8073aaa3f8fb287bb68d2..0000000000000000000000000000000000000000 --- a/root/login/sign_up.html +++ /dev/null @@ -1,35 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>Sign Up</title> - <link rel="stylesheet" type="text/css" href="../css/default_style.css"> - <link rel="stylesheet" type="text/css" href="../css/login.css"> -</head> -<body> - <div id="sign_up_frame" class="frame"> - <h1>-- Sign up --</h1> - - <div> - <form method="post"> - Your name - <input type="text" name="real_name"><br/> - Username - <input type="text" name="real_name"><br/> - Email - <input type="Email" name="real_name"><br/> - Password - <input type="Password" name="real_name"><br/> - Confirm password - <input type="Password" name="real_name"><br/> - Phone number - <input type="text" name="real_name"><br/> - - <input type="checkbox" name="is_driver" value="true">Also sign me up as a driver<br/> - - <input type="submit" value="REGISTER"> - </form> - </div> - </div> - -</body> -</html> \ No newline at end of file diff --git a/root/order/complete_order.html b/root/order/complete_order.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/order/order.html b/root/order/order.html deleted file mode 100644 index 8914b2b4976b8d4040e52b022d9e2b1ba5d16310..0000000000000000000000000000000000000000 --- a/root/order/order.html +++ /dev/null @@ -1,12 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title>U Wanna Call Me Beibh?</title> - <link rel="stylesheet" type="text/css" href="../css/main.css"> -</head> -<body> - <div class="frame"> - <p>test</p> - </div> -</body> -</html> \ No newline at end of file diff --git a/root/order/select_driver.html b/root/order/select_driver.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/order/select_location.html b/root/order/select_location.html deleted file mode 100644 index f211c87d5d057a163af573332a643927e16ef097..0000000000000000000000000000000000000000 --- a/root/order/select_location.html +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE html> -<html> -<head> - <title></title> -</head> -<body> - -</body> -</html> \ No newline at end of file diff --git a/root/profile_page/current_profile.html b/root/profile_page/current_profile.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/profile_page/edit_identity.html b/root/profile_page/edit_identity.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/root/profile_page/edit_location.html b/root/profile_page/edit_location.html deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000