-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsampleItem.php
executable file
·55 lines (47 loc) · 1.43 KB
/
sampleItem.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
require 'server/PHP/requireMaster.php';
session_start();
$user = User::fromSession();
$hotspotName = $_GET['name'];
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>routr</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<!-- Navigation fixed -->
<?php include('server/includes/fixedNav.tpl.php'); ?>
<main>
<!-- Content -->
<section>
<article>
<div class="container">
<div class="item-container">
<?php $database->sampleItemQuery($hotspotName); ?>
<article itemscope itemtype="http://schema.org/Review" class="comments-section">
<h2 class="reviewTitle recommendedReviews">
<span class="highlight" itemprop="itemReviewed">Recommend Reviews for </span> <?php echo $hotspotName; ?>
</h2>
<div class="comment-wrapper">
<?php
$database->showReview($hotspotName);
?>
</div>
<hr/>
<?php include('server/includes/addReview.tpl.php'); ?>
</article>
</div>
</div>
</article>
</section>
</main>
<!-- Footer -->
<?php include('server/includes/footer.tpl.php'); ?>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>