-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedbackForm.php
206 lines (163 loc) · 9.32 KB
/
feedbackForm.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<?php
require_once "config/techfestName.php";
require_once "config/configPDO.php";
require_once "./config/Secret.php";
session_start();
$_SESSION['redirect'] = "You must login before sending feedback";
if (!isset($_SESSION['user'])) {
header('location:login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo $techfestName ?> | EVENT FEEDBACK</title>
<!-- First Header Scripts, then Google Recaptcha -->
<?php include_once "includes/headerScripts.php"; ?>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<style>
hr {
border: 1px solid black;
margin-bottom: 25px;
}
</style>
</head>
<body>
<!--Include User Navbar-->
<?php include_once "includes/navbar.php" ?>
<main class="container">
<div class="row">
<section class="col-md-8 mt-5 mb-3 offset-md-2">
<h1 class="font-Staatliches-heading text-center mb-5">
<?php echo $techfestName ?> - FEEDBACK</h1>
<h4 class="font-time text-center">Please take few moments to complete this survey</h4>
<hr class="text-dark">
<form action="" method="post" name="feedbackForm" id="feedbackForm">
<!-- Response Message -->
<div id="responseMessage"></div>
<div class="form-group">
<label class="font-weight-bold">Q.1 Have you participated in any event in GIT SHODH
before?</label>
<br />
<input type="radio" name="attendBefore" class="attendBefore" value="yes">
<label>Yes</label> <br />
<input type="radio" name="attendBefore" class="attendBefore" value="no">
<label>No</label>
</div>
<div class="form-group">
<label class="font-weight-bold">Q.2 How likely are you to attend one of our events in the
future?</label>
<br />
<input type="radio" name="likelyAttend" class="likelyAttend" value="1">
<label class="mr-5">1</label>
<input type="radio" name="likelyAttend" class="likelyAttend" value="2">
<label class="mr-5">2</label>
<input type="radio" name="likelyAttend" class="likelyAttend" value="3">
<label class="mr-5">3</label>
<input type="radio" name="likelyAttend" class="likelyAttend" value="4">
<label class="mr-5">4</label>
<input type="radio" name="likelyAttend" class="likelyAttend" value="5">
<label class="mr-5">5</label>
</div>
<div class="form-group">
<label class="font-weight-bold">Q.3 How likely are you to recommend our events to a
friend?</label>
<br />
<input type="radio" name="likelyRecommendFriend" class="likelyRecommendFriend" value="1">
<label class="mr-5">1</label>
<input type="radio" name="likelyRecommendFriend" class="likelyRecommendFriend" value="2">
<label class="mr-5">2</label>
<input type="radio" name="likelyRecommendFriend" class="likelyRecommendFriend" value="3">
<label class="mr-5">3</label>
<input type="radio" name="likelyRecommendFriend" class="likelyRecommendFriend" value="4">
<label class="mr-5">4</label>
<input type="radio" name="likelyRecommendFriend" class="likelyRecommendFriend" value="5">
<label class="mr-5">5</label>
</div>
<div class="form-group">
<label class="font-weight-bold">Q.4 What did you like most about the event?</label>
<textarea name="likeMost" id="likeMost" cols="30" rows=3 class="form-control"></textarea>
</div>
<div class="form-group">
<label class="font-weight-bold">Q.5 What did you like least about the event?</label>
<textarea name="likeLeast" id="likeLeast" cols="30" rows=3 class="form-control"></textarea>
</div>
<div class="table-responsive">
<label class="font-weight-bold">Q.6 Overall Satisfaction</label>
<table class="table table-bordered">
<thead class="text-center">
<tr>
<th>Parameter</th>
<th>Rating: 1</th>
<th>Rating: 2</th>
<th>Rating: 3</th>
<th>Rating: 4</th>
<th>Rating: 5</th>
</tr>
</thead>
<tbody class="text-center">
<tr>
<td>Location</td>
<td><input type="radio" name="location" class="location" value="1"></td>
<td><input type="radio" name="location" class="location" value="2"></td>
<td><input type="radio" name="location" class="location" value="3"></td>
<td><input type="radio" name="location" class="location" value="4"></td>
<td><input type="radio" name="location" class="location" value="5"></td>
</tr>
<tr>
<td>Events</td>
<td><input type="radio" name="events" class="events" value="1"></td>
<td><input type="radio" name="events" class="events" value="2"></td>
<td><input type="radio" name="events" class="events" value="3"></td>
<td><input type="radio" name="events" class="events" value="4"></td>
<td><input type="radio" name="events" class="events" value="5"></td>
</tr>
<tr>
<td>Events Coordinators</td>
<td><input type="radio" name="coordinators" class="coordinators" value="1">
</td>
<td><input type="radio" name="coordinators" class="coordinators" value="2"></td>
<td><input type="radio" name="coordinators" class="coordinators" value="3"></td>
<td><input type="radio" name="coordinators" class="coordinators" value="4"></td>
<td><input type="radio" name="coordinators" class="coordinators" value="5">
</td>
</tr>
<tr>
<td>Event Fee</td>
<td><input type="radio" name="eventsPrice" class="eventsPrice" value="1"></td>
<td><input type="radio" name="eventsPrice" class="eventsPrice" value="2"></td>
<td><input type="radio" name="eventsPrice" class="eventsPrice" value="3"></td>
<td><input type="radio" name="eventsPrice" class="eventsPrice" value="4"></td>
<td><input type="radio" name="eventsPrice" class="eventsPrice" value="5">
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group">
<label class="font-weight-bold">Q.7 How can we improve this event?</label>
<textarea name="suggestion" id="suggestion" cols="30" rows=3 class="form-control"></textarea>
</div>
<div class="text-center my-2">
<div class="g-recaptcha text-center" data-sitekey=<?php echo $recaptchaSiteKey; ?>>
</div>
</div>
<input type="submit" name="submit" id="submit" class="btn text-center btn-primary btn-block rounded-pill" value="Submit Feedback">
</form>
</section>
</div>
</main>
<!--Include Footer & Footer Scripts-->
<?php
include_once 'includes/footer.php';
include_once "includes/footerScripts.php";
?>
<!-- Javascript -->
<script src="js/feedbackForm.js"></script>
<!-- Close Database Connection -->
<?php $conn = null; ?>
</body>
</html>