-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathreview.php
82 lines (56 loc) · 1.7 KB
/
review.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
session_start();
include('functions.php');
include('connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- common head content -->
<?php require('includes/head.php'); ?>
<title>Home's Magic | REVIEWS</title>
</head>
<body id="result_bg">
<div class="page-container">
<!-- Navbar -->
<?php require('includes/navbar.php'); ?>
<!-- Page Main Content -->
<div class="content-wrap">
<div class="container review">
<div class="row">
<div class="col-lg-4 offset-md-0 col-md-5 offset-sm-1 col-sm-10 restaurant-details">
<?php getReviewRestaurant(); ?>
</div>
<div class="col-lg-8 col-md-7">
<div class="restaurant-reviews">
<?php
getRestaurantReviews();
if (isset($_SESSION['cust_log_id']))
echo "
<button class='btn btn-outline-primary review-btn' data-toggle='modal' data-target='#reviewModal'>
WRITE A REVIEW
</button>";
else
echo "<p>Login to add review</p>";
?>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<?php require('includes/footer.php'); ?>
</div>
<!-- modal for Sign Up -->
<?php require('includes/signupModal.php'); ?>
<!-- modal for Sign In -->
<?php require('includes/signinModal.php'); ?>
<!-- modal for Review -->
<?php require('includes/reviewModal.php'); ?>
<!-- modal for Order -->
<?php require('includes/orderModal.php'); ?>
<!-- Common Custom Script -->
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/review.js"></script>
</body>
</html>