Skip to content
Snippets Groups Projects
Commit d8d1b63c authored by fildfreeze's avatar fildfreeze
Browse files

add star rate

parent 98b20aca
Branches
No related merge requests found
......@@ -7,7 +7,8 @@
<html>
<head>
<title>History</title>
<link rel="stylesheet" href="css/history.css">
<link rel="stylesheet" type="text/css" href="css/history.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<div class="contentBox">
......@@ -45,8 +46,12 @@
echo $image.'<div class="date">' . date('l', strtotime($row['time'])) . ', ' . date('F jS Y', strtotime($row['time'])) . '</div>';
echo '<div class="name"> ' . $row['name']. '</div>';
echo '<div class="route"> ' . $row['picking_point'] . '-' . $row['destination'] . '</div>';
echo '<div class="rating"> Gave ' . $row['rating'] . ' stars</div>';
echo '<div class="comment"> and left comment: </div>';
echo '<div class="rating"> You rated: ';
for ($x = 0; $x <= $row['rating']; $x++) {
echo '<i class="material-icons" style="font-size:12px; display:inline-block">star_border</i>';
}
echo '</div>';
echo '<div class="comment"> You commented: </div>';
echo '<div class="comment">' . $row['comment'] . '</div>';
echo '</div>';
$idx++;
......
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