-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrating_subhall.php
162 lines (124 loc) · 5.73 KB
/
rating_subhall.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/rating.css">
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="assets/js/rating.js"></script>
</body>
</html>
<?php
session_start();
$user_id= $_SESSION['userId'];
require ('inc/head.php');
?>
<body>
<?php require ('inc/preloader_area.php');
require ('inc/top_Bar.php');
?>
<?php
if(isset($_SESSION['userId'])){
$userid=$_SESSION['userId'];
require ('inc/LoginHeader.php');
}else{
require ('inc/Header.php');
}
$shallId=$_GET['shallId'];
require('admin/handlers/db.php');
$sql="SELECT * FROM subhalls where id=$shallId";
$sqlResult=mysqli_query($conn,$sql);
$hallData=mysqli_fetch_assoc($sqlResult);
$hallid= $hallData['hall_id'];
$sql="SELECT * FROM halls where id=$hallid";
$sqlResult=mysqli_query($conn,$sql);
$hall=mysqli_fetch_assoc($sqlResult);
include_once 'rating.php';
$rating = new Rating();
?>
<script src= "assets/js/rating.js"></script>
<!-- ========== Breadcumb start============= -->
<div class="breadcrumb-section">
<div class="container">
<div class="row d-flex justify-content-center align-items-center text-center">
<div class="col-lg-8">
<h2 class="breadcrumb-title wow fadeInLeft" data-wow-duration="1.5s" data-wow-delay=".2s">Rating</h2>
<nav aria-label="breadcrumb">
<ol class="breadcrumb d-flex justify-content-center">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Rating</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<!-- ========== Breadcumb end============= -->
<!-- ========== Room & Suits start============= -->
<div class="contact-page mb-120 overflow-hidden">
<div class="container-fluid px-0">
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="section-title text-center">
<br>
<br>
<br>
<h2>What do you think About <?php echo $hall['name'];?> - <?php echo $hallData['name'];?> ?</h2>
<br>
<br>
</div>
<style>
.form-center {
margin: 0 auto;
width: 50%;
text-align: center;
}
</style>
<form action="admin/handlers/insertRating_subhall.php" enctype="multipart/form-data" method="POST">
<div class="row g-4">
<div class="form-inner">
<i>Click Me! =>
</i>
<i class="fa fa-star fa-lg star-grey rateButton" aria-hidden="true"></i>
<i class="fa fa-star fa-lg star-grey rateButton" aria-hidden="true"></i>
<i class="fa fa-star fa-lg star-grey rateButton" aria-hidden="true"></i>
<i class="fa fa-star fa-lg star-grey rateButton" aria-hidden="true"></i>
<i class="fa fa-star fa-lg star-grey rateButton" aria-hidden="true"></i>
<input type="hidden" class="form-control" id="rating" name="rating" value="1">
<input type="hidden" class="form-control" id="user_id" name="user_id" value="<?= $user_id?>" >
<input type="hidden" class="form-control" id="hall_id" name="hall_id" value="<?= $hallData['id']?>" >
<input type="hidden" name="action" value="saveRating">
</div>
<div class="col-md-12">
<div class="form-inner">
<textarea name="description" id="description" placeholder="Your message" cols="30" rows="10"></textarea>
</div>
<div class="form-inner">
<br>
<button class="btn btn-outline-secondary" type="submit" id="saveReview" >Send</button>
</div>
</div>
<div class="col-md-12 d-flex justify-content-center">
<div class="form-group">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- ========== Room & Suits end============= -->
<?php require ('inc/footer.php');
require('inc/js_file_link.php'); ?>
</body>
</html>