Skip to content
Snippets Groups Projects
Commit 851b1c64 authored by Muhammad Umar Fariz Tumbuan's avatar Muhammad Umar Fariz Tumbuan
Browse files

Membuat css front-end untuk halaman select driver

parent 2eab9a17
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
...@@ -73,7 +73,6 @@ img.history_pict { ...@@ -73,7 +73,6 @@ img.history_pict {
border-radius: 50%; border-radius: 50%;
display: inline; display: inline;
margin: 0; margin: 0;
} }
button.hide_hist_button { button.hide_hist_button {
......
...@@ -81,11 +81,6 @@ div.step_name { ...@@ -81,11 +81,6 @@ div.step_name {
margin: 5px; margin: 5px;
} }
.content div {
margin-bottom: 15px;
vertical-align: middle;
}
.content span { .content span {
width: 35%; width: 35%;
margin-right: auto; margin-right: auto;
...@@ -106,8 +101,8 @@ div.step_name { ...@@ -106,8 +101,8 @@ div.step_name {
} }
#select_driver div { #select_driver h2 {
border: 0.5px solid black; margin: 7px 0;
} }
#preferred_driver { #preferred_driver {
...@@ -122,3 +117,57 @@ div.step_name { ...@@ -122,3 +117,57 @@ div.step_name {
background-color: #465d43; background-color: #465d43;
} }
#driver_table_container {
overflow-y: auto;
height: inherit;
}
img.driver_pict {
width: 100px;
height: 100px;
border-radius: 50%;
display: inline;
margin: 0;
}
table.driver_table {
margin-top: 5px;
width: 100%;
padding: 0;
border-collapse: collapse;
}
table.driver_table th, td {
padding: 0 5px;
border-collapse: collapse;
}
table.driver_table p {
margin: 0 0 5px 0;
padding: 0;
width: 40%;
font-size: 12px;
font-style: "Lucida Console", Monaco, monospace;
}
td.driver_column {
padding-top: 5px;
padding-left: 30px;
}
table.driver_table tr td.driver_column {
vertical-align: top;
}
table.driver_table p.driver_username {
font-size: 20px;
}
div.choose_driver {
float: right;
border: 0.5px solid black;
border-radius: 5px;
width: 50%;
text-align: center;
padding: 5px;
}
\ No newline at end of file
...@@ -40,15 +40,19 @@ ...@@ -40,15 +40,19 @@
$driver_rating = ($driver_votes == 0) ? 0 : $row['total_score']/$row['votes']; $driver_rating = ($driver_votes == 0) ? 0 : $row['total_score']/$row['votes'];
echo echo
" "
<table id='tbl_pref_driver'> <table class='driver_table'>
<colgroup>
<col style='width: 20%;'>
<col style='width: 80%;'>
</colgroup>
<tr> <tr>
<td> <td>
<img class='driver_pict' src='../profile/getProfilePict.php?id=".$driver_id."' <img class='driver_pict' src='../profile/getProfilePict.php?id=".$driver_id."'
</td> </td>
<td> <td class='driver_column'>
<p class='driver_username'>".$driver_name."</p> <p class='driver_username'>".$driver_name."</p>
<p class='driver_rating'>&starf;".$driver_rating." (".$driver_votes." votes)</p> <p class='driver_rating'>&starf;".$driver_rating." (".$driver_votes." votes)</p>
<div class='button green' onclick='chooseDriver(".$driver_id.")'> <div class='choose_driver green' onclick='chooseDriver(".$driver_id.")'>
I CHOOSE YOU I CHOOSE YOU
</div> </div>
</td> </td>
...@@ -70,7 +74,7 @@ ...@@ -70,7 +74,7 @@
<script> <script>
document.getElementById("order_link").setAttribute("class", "menu menu_active"); document.getElementById("order_link").setAttribute("class", "menu menu_active");
</script> </script>
<div class="order_container"> <div class="order_container">
<div class="subheader"> <div class="subheader">
<div class="title"><h1>Make an Order</h1></div> <div class="title"><h1>Make an Order</h1></div>
...@@ -104,22 +108,26 @@ ...@@ -104,22 +108,26 @@
</div> </div>
</div> </div>
<form method="post" id="submit_select_drv" action=<?php echo "complete_order.php?id=".$user_id ?>>
<?php echo $ppoint . $dest; ?> <div id="driver_table_container">
<div class="content" id="select_driver"> <form method="post" id="submit_select_drv" action=<?php echo "complete_order.php?id=".$user_id ?>>
<div id="preferred_driver"> <?php echo $ppoint . $dest; ?>
<h2>Preferred driver</h2>
<?php ShowPrefDrv($prefdrv, $con) ?> <div class="content" id="select_driver">
</div> <div id="preferred_driver">
<div id="other_driver"> <h2>Preferred driver</h2>
<h2>Other drivers</h2> <?php ShowPrefDrv($prefdrv, $con) ?>
</div>
<div id="other_driver">
<h2>Other drivers</h2>
</div>
<input type="hidden" name="picking_point" value=<?php echo $ppoint ?>>
<input type="hidden" name="destination" value=<?php echo $dest?>>
<input type="hidden" name="selected_driver" id="selected_driver">
</div> </div>
<input type="hidden" name="picking_point" value=<?php echo $ppoint ?>> </form>
<input type="hidden" name="destination" value=<?php echo $dest?>> <?php mysqli_close($con) ?>
<input type="hidden" name="selected_driver" id="selected_driver"> </div>
</div>
</form>
<?php mysqli_close($con) ?>
</div> </div>
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
......
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