diff --git a/controller/register.php b/controller/register.php index 5f3fa7c2a420ceb6a31589f3a2d8e66fc33ed06b..249b9a4fb21fce4f258adeb492c203ce11d810a6 100644 --- a/controller/register.php +++ b/controller/register.php @@ -1,5 +1,4 @@ <?php -//TODO : Setelah submit redirect ke dashboard dengan variable ?id=..., check semua input type gaboleh salah //model include "../model/user.php"; @@ -46,7 +45,6 @@ if(isset($_POST["register"])) { $isDriver = 1; } } - $user -> createUser($name,$username,$email,$password,$phone,$isDriver); $id = 0; $result = $user->getIdByUser($username); diff --git a/css/register.css b/css/register.css index a7573a5e176d65da4d243459e3210df29b2115f2..ce5dc6cd7eb2f36a11e42324fef28538bbb1c0f5 100644 --- a/css/register.css +++ b/css/register.css @@ -10,11 +10,10 @@ display: inline-block; width: 100%; text-align: center; - font-size: 300%; + font-size: 350%; vertical-align: middle; - color: #008800; + color: #02702C; font-weight: bold; - font-family: Arial; } .line { diff --git a/js/edit-profile.js b/js/edit-profile.js index a8fa11689d6861d3762d3a6ab247e931a622340d..0f15c6da0b3b6a9f9b42f3c6acbed4e28d192082 100644 --- a/js/edit-profile.js +++ b/js/edit-profile.js @@ -43,7 +43,7 @@ function checkAllInput() { return false; } if(regex.test(phone.value) === false) { - alert("Phone number must be valid"); + alert("Phone number must be valid (08..)"); return false; } } diff --git a/view/edit-profile.php b/view/edit-profile.php index ee7c76f14be69108a1ec5c378481c15a8c478409..2e4783cca5d7420b49f6509b85dccd1f56d22d30 100644 --- a/view/edit-profile.php +++ b/view/edit-profile.php @@ -1,55 +1,55 @@ <html> <head> - <title>Edit-profile</title> - <link href="../css/primary.css" type="text/css" rel="stylesheet"> - <link href="../css/edit-profile.css" type="text/css" rel="stylesheet"> - <script> - var sessionid = "<?php echo $_GET['id'];?>"; - </script> - <script src="../js/edit-profile.js"></script> - </head> - <body onload="getUserProfile();" onreset="getUserProfile()" onpageshow="getUserProfile()"> - <div class="container"> - <h1>EDIT PROFILE INFORMATION</h1> - <form enctype="multipart/form-data" action="../controller/edit-profile.php?id=<?php echo $_GET['id']?>" - method="post" id="form" name="editForm" onsubmit="return checkAllInput()"> - <input type="hidden" id="userid" value="<?php echo $_GET['id'];?>"> - <div class="edit-image"> - <div class="div-profile-image"> - <img class="profile-image" id="image"> - </div> - <div class="browse-image"> - <label>Update profile picture</label> - <br /> - <br /> - <input type="file" name="image-file" value="browse.." id="image-file"> - </div> + <title>Edit-profile</title> + <link href="../css/primary.css" type="text/css" rel="stylesheet"> + <link href="../css/edit-profile.css" type="text/css" rel="stylesheet"> + <script> + var sessionid = "<?php echo $_GET['id'];?>"; + </script> + <script src="../js/edit-profile.js"></script> + </head> + <body onload="getUserProfile();" onreset="getUserProfile()" onpageshow="getUserProfile()"> + <div class="container"> + <h1>EDIT PROFILE INFORMATION</h1> + <form enctype="multipart/form-data" action="../controller/edit-profile.php?id=<?php echo $_GET['id']?>" + method="post" id="form" name="editForm" onsubmit="return checkAllInput()"> + <input type="hidden" id="userid" value="<?php echo $_GET['id'];?>"> + <div class="edit-image"> + <div class="div-profile-image"> + <img class="profile-image" id="image"> + </div> + <div class="browse-image"> + <label>Update profile picture</label> + <br /> + <br /> + <input type="file" name="image-file" value="browse.." id="image-file"> + </div> + </div> + <div> + <div class="edit-data"> + <label class="form-label">Your Name</label> + <input type="text" name="name" id="name"> + </div> + <div class="edit-data"> + <label class="form-label">Phone</label> + <input type="text" name="phone" id="phone"> + </div> + <div class="edit-data"> + <label class="form-label">Status Driver</label> + <div class="checkbox"> + <label class="switch"> + <input type="checkbox" name="driver" id="driver"> + <span class="slider"></span> + </label> </div> - <div> - <div class="edit-data"> - <label class="form-label">Your Name</label> - <input type="text" name="name" id="name"> - </div> - <div class="edit-data"> - <label class="form-label">Phone</label> - <input type="text" name="phone" id="phone"> - </div> - <div class="edit-data"> - <label class="form-label">Status Driver</label> - <div class="checkbox"> - <label class="switch"> - <input type="checkbox" name="driver" id="driver"> - <span class="slider"></span> - </label> - </div> - </div> - </div> - <div> - <div> - <a class="back" href="dashboard.php?id=<?php echo $_GET['id'];?>">BACK</a> - <input type="submit" value="SAVE" class="save" name="submit"> - </div> - </div> + </div> + </div> + <div> + <div> + <a class="back" href="dashboard.php?id=<?php echo $_GET['id'];?>">BACK</a> + <input type="submit" value="SAVE" class="save" name="submit"> + </div> + </div> </form> </div> </body>