Skip to content
Snippets Groups Projects
Commit 4e339b95 authored by Husnulzaki Wibisono Haryadi's avatar Husnulzaki Wibisono Haryadi
Browse files

Modify navigation function for convenience

parent 6a4f9318
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
...@@ -42,12 +42,15 @@ ...@@ -42,12 +42,15 @@
margin: 5px 0px 5px 0px; margin: 5px 0px 5px 0px;
} }
.content > div div {
display: inline;
}
.content > div > span { .content > div > span {
float: left; float: left;
} }
.content > div > input[type="text"] { .content > div > input[type="text"] {
width: 200px; width: 100px;
float: right; float: right;
} }
......
...@@ -30,23 +30,17 @@ ...@@ -30,23 +30,17 @@
<h1>Make an Order</h1> <h1>Make an Order</h1>
<div class="submenu_container"> <div class="submenu_container">
<a href="order/select_location.html"> <div class="submenu left" onclick="showSelectDest()">
<div class="submenu left"> Select Destination
Select Destination </div>
</div>
</a> <div class="submenu mid" onclick="showSelectDriver()">
Select a Driver
<a id="xxx"> </div>
<div class="submenu mid" id="xxx">
Select a Driver
</div>
</a>
<a href="order/complete_order.html"> <div class="submenu right" onclick="showCompleteOrder()">
<div class="submenu right"> Complete Order
Complete Order </div>
</div>
</a>
</div> </div>
<form method="post"> <form method="post">
<div class="content" id="select_destination"> <div class="content" id="select_destination">
...@@ -64,7 +58,7 @@ ...@@ -64,7 +58,7 @@
<input type="text" name="preferred_driver"> <input type="text" name="preferred_driver">
</div> </div>
</div> </div>
<div class="button green" id="next"> <div class="button green" id="next" onclick="showSelectDriver()">
Next Next
</div> </div>
</div> </div>
...@@ -89,14 +83,23 @@ ...@@ -89,14 +83,23 @@
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var element = document.getElementById('next'); function showSelectDest() {
// element.onclick = function () { document.getElementById('select_destination').style.display= 'inline';
// alert('hi'); document.getElementById('select_driver').style.display= 'none';
// }; document.getElementById('complete_order').style.display= 'none';
element.onclick = function () { };
document.getElementById('select_destination').style.display='none';
document.getElementById('select_driver').style.display='inline'; function showSelectDriver() {
} document.getElementById('select_driver').style.display= 'inline';
document.getElementById('select_destination').style.display= 'none';
document.getElementById('complete_order').style.display= 'none';
};
function showCompleteOrder() {
document.getElementById('complete_order').style.display='inline';
document.getElementById('select_destination').style.display= 'none';
document.getElementById('select_driver').style.display= 'none';
};
</script> </script>
</body> </body>
</html> </html>
<?php
include '../database/dbconnect.php';
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment