-
Notifications
You must be signed in to change notification settings - Fork 0
/
memberShip.php
394 lines (376 loc) · 17.1 KB
/
memberShip.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<?php
if (isset($_GET['logout'])) {
session_destroy();
header("Location: login.php");
}
if (isset($_GET["na"])) {
$name = $_GET["name"];
$email = $_GET["email"];
$mobileNo = $_GET["mobileNo"];
$city = $_GET["city"];
$subject = $_GET["subject"];
//database connecet
$server = "localhost";
$username = "root";
$pw = "1234";
$database = "gym";
$port = "3306";
//insert data
$conn = new mysqli($server, $username, $pw, $database, $port);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO contact (name, email, mobileNo, city, subject)
VALUES ('$name', '$email', '$mobileNo','$city','$subject')";
if (mysqli_query($conn, $sql)) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
header("Location: memberShip.php");
mysqli_close($conn);
} elseif (isset($_GET["shad"])) {
$name = $_GET["name"];
$mobileNo = $_GET["mobileNo"];
$city = $_GET["date"];
$subject = $_GET["time"];
//database connecet
$server = "localhost";
$username = "root";
$pw = "1234";
$database = "gym";
$port = "3306";
//insert data
$conn = new mysqli($server, $username, $pw, $database, $port);
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
$sql = "INSERT INTO scheduleit (name, mobileNo, date, time)
VALUES ('$name','$mobileNo','$city','$subject')";
if (mysqli_query($conn, $sql)) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
header("Location: memberShip.php");
mysqli_close($conn);
}
?>
<html>
<head>
<meta charset="UTF-8">
<title>Fit World</title>
<link rel="stylesheet" href="styles/bootstrap.min.css" type="text/css">
<link href="styles/style.css" type="text/css" rel="stylesheet">
<link rel="icon" href="images/icon.png">
<script src="styles/jquery.min.js"></script>
<script src="styles/bootstrap.min.js"></script>
<style>
.mem h2{
color: #fff;
}
</style>
</head>
<body>
<div id="home">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">FITWorld</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#schedule">MAKE YOUR SCHEDULE</a></li>
<li><a href="#packages">PACKAGES</a></li>
<li><a href="#whatWeDo">ABOUT</a></li>
<li><a href="#contact">CONTACT US</a></li>
<li><a href="?logout"><span class="glyphicon glyphicon-log-out"></span>Log Out</a></li>
</ul>
</div>
</div>
</nav>
<br>
<div id="banner">
<h3>
Our Memberships
</h3>
<div>
<h2>
1
</h2>
<h4>
Full Memberships
<br>
<span>
05.00 AM - 10.00 PM
</span>
</h4>
<p>
Excellent choice for busy corporate executives to walk in any
time for the work out, for those who are unable to exercise during
the morning and daytime and for those who prefer to end the day with an energising work out.
</p>
<a href="#packages" class="dtl_btn">Details</a>
<h2>
2
</h2>
<h4>
DAYTIME WORKOUT
<br>
<span>
05.00 AM - 05.00 PM
</span>
</h4>
<p>
Ideal for those wanting to stay active throughout the
day with an early work out, for those who work late hours
and are too tired to work out in the evening, for those who are early birds and for those who
work flexi hours.
</p>
<a href="#packages" class="dtl_btn">Details</a>
<h2>
3
</h2>
<h4>
NON-PEAK WORKOUT
<br>
<span>
09.00 AM - 05.00 PM
</span>
</h4>
<p>
Most suitable for housewives, senior citizens, businessmen and students.
</p>
<a href="#packages" class="dtl_btn">Details</a>
</div>
</div>
</div>
<div id="schedule">
<div id="banner">
<h3>
Make Your Schedule
</h3>
<div class="container">
<form action="memberShip.php?shad" method="GET">
<input class="form-control" type="text" id="name" name="name" placeholder="Name:">
<br> <br>
<input class="form-control" type="text" id="mobileNo" name="mobileNo" placeholder="Mobile No:">
<br> <br>
<input class="form-control" type="date" id="date" name="date" placeholder="Date:">
<br> <br>
<input class="form-control" type="time" id="time" name="time" placeholder="Time:">
<br> <br>
<input type="submit" name="shad" value="Submit">
<br> <br>
</form>
</div>
</div>
</div>
<div id="packages" class="mem">
<h2>
Packages
</h2>
<div id="banner">
<h4>Full Membership</h4>
<table class="memTable" >
<tr>
<th>Packages</th>
<th>ladies Only</th>
<th>Student Only</th>
<th>All</th>
<th>Membership Rate</th>
<th>Introductory Rate</th>
</tr>
<tr>
<td>
Life time
</td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td> <img src="images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td>Rs. 1,000,000.00</td>
<td>Rs. 1,000,000.00</td>
</tr>
<tr>
<td>Executive Ladies Mem(Full)</td>
<td><img src=images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td>Rs. 5,625.00</td>
<td>Rs. 5,625.00</td>
</tr>
<tr>
<td>Executive Mem(Full)</td>
<td> <img src=images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td>Rs. 7,500.00</td>
<td>Rs. 7,500.00</td>
</tr>
<tr>
<td>GX Ladies Membership (35 years and below)</td>
<td> <img src=images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td>Rs. 5,000.00</td>
<td>Rs. 5,000.00</td>
</tr>
<tr>
<td>Day Workout</td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td>Rs. 1,000.00</td>
<td>Rs. 1,000.00</td>
</tr>
<tr>
<td>GX Ladies Membership (35 years and below)</td>
<td> <img src=images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td>Rs. 5,000.00</td>
<td>Rs. 5,000.00</td>
</tr>
</table>
<br>
<br>
<h4>Non-Peack Membership</h4>
<table class="memTable">
<tr>
<th>Packages</th>
<th>ladies Only</th>
<th>Student Only</th>
<th>All</th>
<th>Membership Rate</th>
<th>Introductory Rate</th>
</tr>
<tr>
<td>
Non - Peak Executive
</td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td> <img src="images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td>Rs. 3,750.00</td>
<td>Rs. 3,750.00</td>
</tr>
<tr>
<td>Masters Membership Over 60 Y</td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td> <img src=images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td>Rs. 4,000.00</td>
<td>Rs. 4,000.00</td>
</tr>
<tr>
<td>Non- Peak Lady Executive</td>
<td><img src="images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td> <img src=images/pack_close.png" class="img-responsive" alt="no"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td>Rs. 3,000.00</td>
<td>Rs. 3,000.00</td>
</tr>
</table>
<br>
<br>
<h4>other</h4>
<table class="memTable">
<tr>
<th>Packages</th>
<th>ladies Only</th>
<th>Student Only</th>
<th>All</th>
<th>Membership Rate</th>
<th>Introductory Rate</th>
</tr>
<tr>
<td>
Students (18 years and under)
</td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td> <img src="images/pack_tick.png" class="img-responsive" alt="yes"></td>
<td><img src="images/pack_close.png" class="img-responsive" alt="no"></td>
<td>Rs. 3,000.00</td>
<td>Rs. 3,000.00</td>
</tr>
</table>
</div>
</div>
<div id="whatWeDo" class="about">
<h2>
About Us
</h2>
<div id="banner">
<h4> MY BEST LIFE </h4>
<p>
Providing a quality health care service and giving our members control
over their health is paramount at all Fit World gyms. We help members
prevent and overcome degenerative diseases, achieve their optimum fitness goals,
realize personal lifestyle development objectives and rehabilitate them into good health.
This is accomplished by designing exercise programs which are effective, efficient and motivational.
All of these health care services are being delivered by a team of well trained, committed and passionate
professionals, whilst being managed and guided by some of the most
qualified and respected experts of the health care and fitness industry
</p>
<h4> OUR VISION </h4>
<p>
Empowering people in 100 nations to realize their best life
</p>
<h4>
OUR MISSION
</h4>
<p>
To extend lives, restore good health and enhance physical fitness levels of members so as to
nurture them to have a devoted heart, a purposeful soul and a courageous mind.
</p>
</div>
</div>
<div id="contact" class="footer">
<h2>
Contact Us
</h2>
<p>
Register with us for a free one hour work out and get a first-hand experience of our
dynamic and professional fitness training offered to you and your loved ones.
</p>
<div id="banner">
<div class="container">
<form action="memberShip.php?na" method="GET">
<input class="form-control" type="text" id="fname" name="name" placeholder="Name:">
<br> <br>
<input type="text" id="email" name="email" placeholder="Email:">
<br> <br>
<input type="text" id="mobileNo" name="mobileNo" placeholder="Mobile No:">
<br> <br>
<select id="city" name="city">
<option value="kandana">Kandana</option>
<option value="welisara">Welisara</option>
<option value="ragama">Ragama</option>
<option value="nugegoda">Nugegoda</option>
<option value="maharagama">Maharagama</option>
</select>
<br> <br>
<textarea id="subject" name="subject" placeholder="Message:" style="height:200px"></textarea>
<br> <br>
<input type="submit" name="na" value="Submit">
<br> <br>
</form>
</div>
</div>
<div class="copy">
©All rights reserved | Design by <span><b>GEHAN PASINDHU</b></span>
</div>
</div>
</body>
</html>