-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontact.php
367 lines (342 loc) · 13.6 KB
/
contact.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
<!DOCTYPE html>
<?php
session_start();
include("functions.php");
?>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flattern - Flat and trendy bootstrap site template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- css -->
<link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400italic,700|Open+Sans:300,400,600,700" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/bootstrap-responsive.css" rel="stylesheet" />
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="css/jcarousel.css" rel="stylesheet" />
<link href="css/flexslider.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link href="skins/default.css" rel="stylesheet" />
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png" />
<link rel="shortcut icon" href="ico/favicon.png" />
<!-- =======================================================
Theme Name: Flattern
Theme URL: https://bootstrapmade.com/flattern-multipurpose-bootstrap-template/
Author: BootstrapMade.com
Author URL: https://bootstrapmade.com
======================================================= -->
</head>
<body>
<div id="wrapper">
<!-- start header -->
<header>
<div class="container ">
<div class="row nomargin">
<div class="span12">
<div class="headnav">
<ul>
<li><a href="#mySignup" data-toggle="modal"><i class="icon-user"></i> Sign up</a></li>
<li><a href="#mySignin" data-toggle="modal">Sign in</a></li>
<?php if(isset($_SESSION['role'])) { ?>
<li><a href='logout.php'>Logout</a></li>
<?php } ?>
</ul>
</div>
<!-- Signup Modal -->
<?php
print_message();
echo "<br>";
if(isset($_SESSION['role']))
{
echo $_SESSION['role'];
}
?>
<div id="mySignup" class="modal styled hide fade" tabindex="-1" role="dialog" aria-labelledby="mySignupModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 id="mySignupModalLabel">Create an <strong>account</strong></h4>
</div>
<div class="modal-body">
<form class="form-horizontal" method="post" action="register.php" >
<div class="control-group">
<label class="control-label" for="inputEmail">Email</label>
<div class="controls">
<input type="text" name="username" placeholder="Email">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputSignupPassword">Password</label>
<div class="controls">
<input type="password" name="password" placeholder="Password">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputSignupPassword2">Confirm Password</label>
<div class="controls">
<input type="password" name="password2" placeholder="Password">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" name="submit" value="Submit" class="btn">Sign up</button>
</div>
<p class="aligncenter margintop20">
Already have an account? <a href="#mySignin" data-dismiss="modal" aria-hidden="true" data-toggle="modal">Sign in</a>
</p>
</div>
</form>
</div>
</div>
<!-- end signup modal -->
<!-- Sign in Modal -->
<div id="mySignin" class="modal styled hide fade" tabindex="-1" role="dialog" aria-labelledby="mySigninModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 id="mySigninModalLabel">Login to your <strong>account</strong></h4>
</div>
<div class="modal-body">
<form class="form-horizontal" method="post" action="login.php">
<div class="control-group">
<label class="control-label" for="inputText">Username</label>
<div class="controls">
<input type="text" name="username" placeholder="Username">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputSigninPassword">Password</label>
<div class="controls">
<input type="password" name="password" placeholder="Password">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Sign in</button>
</div>
<p class="aligncenter margintop20">
Forgot password? <a href="#myReset" data-dismiss="modal" aria-hidden="true" data-toggle="modal">Reset</a>
</p>
</div>
</form>
</div>
</div>
<!-- end signin modal -->
<!-- Reset Modal -->
<div id="myReset" class="modal styled hide fade" tabindex="-1" role="dialog" aria-labelledby="myResetModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 id="myResetModalLabel">Reset your <strong>password</strong></h4>
</div>
<div class="modal-body">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputResetEmail">Email</label>
<div class="controls">
<input type="text" id="inputResetEmail" placeholder="Email">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Reset password</button>
</div>
<p class="aligncenter margintop20">
We will send instructions on how to reset your password to your inbox
</p>
</div>
</form>
</div>
</div>
<!-- navbar -->
</div>
</div>
<div class="row">
<div class="span4">
<div class="logo">
<a href="index.html"><img src="img/logo.png" alt="" class="logo" /></a>
</div>
</div>
<div class="span8">
<div class="navbar navbar-static-top">
<div class="navigation">
<nav>
<ul class="nav topnav">
<li>
<a href="index.php">Home </a>
</li>
<li>
<a href="history.php">History </a>
</li>
<li>
<a href="about.php">About us</a>
</li>
<li>
<a href="portfolio-2cols.php">Portfolio</a>
</li>
<li>
<a href="contact.php">Contact </a>
</li>
<li class="dropdown">
<a href="#">News<i class="icon-angle-down"></i></a>
<ul class="dropdown-menu">
<li><a href="blog-left-sidebar.php">Team news</a></li>
<li><a href="blog-right-sidebar.html">Scoreboard</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#">Members<i class="icon-angle-down"></i></a>
<ul class="dropdown-menu">
<li><a href="fans.php">Fans</a></li>
<li><a href="players.php">Players</a></li>
</ul>
</li>
<?php if(isset($_SESSION['role'])){ ?>
<li>
<a href="profile.php">Profile</a>
</li>
<?php } ?>
</ul>
</nav>
</div>
<!-- end navigation -->
</div>
</div>
</div>
</div>
</header>
<!-- end header -->
<section id="inner-headline">
<div class="container">
<div class="row">
<div class="span4">
<div class="inner-heading">
<h2>Get in touch</h2>
</div>
</div>
<div class="span8">
<ul class="breadcrumb">
<li><a href="#"><i class="icon-home"></i></a><i class="icon-angle-right"></i></li>
<li class="active">Contact</li>
</ul>
</div>
</div>
</div>
</section>
<section id="content">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d22864.11283411948!2d-73.96468908098944!3d40.630720240038435!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c24fa5d33f083b%3A0xc80b8f06e177fe62!2sNew+York%2C+NY%2C+USA!5e0!3m2!1sen!2sbg!4v1540447494452" width="100%" height="380" frameborder="0" style="border:0" allowfullscreen></iframe>
<div class="container">
<div class="row">
<div class="span12">
<h4>Get in touch with us by filling <strong>contact form below</strong></h4>
<?php
if(isset($_SESSION['role']))
{
?>
<form method="post" action="contactus.php" role="form" class="contactForm">
<div class="span12 margintop10 form-group">
<textarea class="form-control" name="message" rows="12" data-rule="required" data-msg="Please write something for us" placeholder="Message"></textarea>
<div class="validation"></div>
<p class="text-center">
<button class="btn btn-large btn-theme margintop10" type="submit" name="submit" value="submit2">Submit message</button>
</p>
</div>
</div>
</form>
<?php
}
else{
?>
<h4>Please sign in to contact us</h4>
<?php } ?>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="span3">
<div class="widget">
<h5 class="widgetheading">Browse pages</h5>
<ul class="link-list">
<li><a href="about.html">About our company</a></li>
<li><a href="blog-left-sidebar.php">News</a></li>
<li><a href="players.php">Meet our team</a></li>
<li><a href="portfolio-2cols.php">Explore our portfolio</a></li>
</ul>
</div>
</div>
<div class="span3">
<div class="widget">
<h5 class="widgetheading">Get in touch with us</h5>
<address>
<strong>Leicester Club,Pte Ltd</strong><br>
Filbert Way, Leicester LE2 7FL, Ηνωμένο Βασίλειο
</address>
<p>
<i class="icon-phone"></i> +44 344 815 5000 <br>
<i class="icon-envelope-alt"></i>[email protected]
</p>
</div>
</div>
</div>
</div>
<div id="sub-footer">
<div class="container">
<div class="row">
<div class="span6">
<div class="copyright">
<p>
<span>© Flattern - All right reserved.</span>
</p>
<div class="credits">
<!--
All the links in the footer should remain intact.
You can delete the links only if you purchased the pro version.
Licensing information: https://bootstrapmade.com/license/
Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/buy/?theme=Flattern
-->
Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a>
</div>
</div>
</div>
<div class="span6">
<ul class="social-network">
<li><a href="https://www.facebook.com/lcfc/" data-placement="bottom" title="Facebook"><i class="icon-facebook icon-square"></i></a></li>
<li><a href="#" data-placement="bottom" title="Twitter"><i class="icon-twitter icon-square"></i></a></li>
<li><a href="#" data-placement="bottom" title="Google plus"><i class="icon-google-plus icon-square"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</footer>
</div>
<a href="#" class="scrollup"><i class="icon-chevron-up icon-square icon-32 active"></i></a>
<!-- javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jcarousel/jquery.jcarousel.min.js"></script>
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/jquery.fancybox-media.js"></script>
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/portfolio/jquery.quicksand.js"></script>
<script src="js/portfolio/setting.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/jquery.nivo.slider.js"></script>
<script src="js/modernizr.custom.js"></script>
<script src="js/jquery.ba-cond.min.js"></script>
<script src="js/jquery.slitslider.js"></script>
<script src="js/animate.js"></script>
<!-- Template Custom JavaScript File -->
<script src="js/custom.js"></script>
</body>
</html>