-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.php
180 lines (163 loc) · 6.68 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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Math Village | Contact</title>
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="images/favicon.png" rel="shortcut icon">
<!--styles-->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/mainstyle.css">
<link rel="stylesheet" href="css/responsive.css">
<!--font-google-->
<link href="https://fonts.googleapis.com/css?family=Arvo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:700" rel="stylesheet">
<!--js-->
<script src="js/login.js"></script>
</head>
<body class="sub-page" id="contact">
<div id="preloader">
<div id="status">
<img alt="logo" src="images/mvlogo-min.png">
</div>
</div>
<div class="container-fluid no-pad">
<div class="nav navbar-inverse" id="sub-page">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="logo-menu" href="index.php"><img src="images/mvlogo.png" alt="Logo"></a>
</div>
<div class="navbar-collapse collapse head">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.php">Home</a></li>
<li><a href="about.php" class="hidden-sm">About</a></li>
<li><a href="getstarted.php">Get started</a></li>
<li><a href="leaderboard.php"class="hidden-md hidden-sm">Leaderboard</a></li>
<li><a href="contact.php" class="active">Contact</a></li>
<li><a href="login.html" id="login-main">Log in</a></li>
<li><a href="game/game.php" class="btn btn-primary hidden-xs" id="game">Play</a></li>
<li>
<div class="dropdown" id="user">
<a data-toggle="dropdown">
<i class="fa fa-user-circle fa-lg" aria-hidden="true"></i>
<i class="fa fa-caret-down" aria-hidden="true"></i>
</a>
<ul class="dropdown-menu">
<li><a id="username"></a></li>
<li role="presentation" class="divider"></li>
<li><a href="game/game.php" class=>Play game</a></li>
<li><a href="profile.php">User profile</a></li>
<li><a onclick="logout()">Sign out
<i class="fa fa-sign-out" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
<?php
if(isset($_SESSION['username'])){
$username = (string)$_SESSION["username"];
echo "<script type='text/javascript'>";
echo "login(\"$username\");";
echo "</script>";
}
?>
<div class="container-fluid contact margin-30">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1 text-center">
<div class="contact-title">
<h1>GET IN TOUCH</h1>
<p>Feel free to contact us if you have further inquiries or support.<br>
We will try to reply to you as soon as possible.</p>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
<div class="alert alert-danger" id="alert"></div>
<h4 class ="alert alert-success text-center" id="contact-success">
We have received your message. Thank you for contacting us.
</h4>
<form class="contact-form red-bg" action="backend/submit.php" method="POST"
onsubmit="event.preventDefault(); return checkForm(this)">
<div class="row">
<div class="col-md-6">
<input type="hidden" name="formname" value="contact"/>
<input type="text" class="form-control" name="name" placeholder="Name">
<input type="email" class="form-control" name="email" placeholder="Email">
<input type="text" class="form-control" name="subject" placeholder="Subject">
</div>
<div class="col-md-6">
<textarea class="form-control" name="message" rows="25" cols="10" id="message"
placeholder=" Message Texts..."></textarea>
</div>
</div>
<input type="submit" class="btn submit-btn" value="SEND MESSAGE">
</form>
</div>
</div>
<div class="row text-center">
<div class="col-md-8 col-md-offset-2">
<div class="col-md-4">
<div class="contact-info">
<h3>CALL US</h3>
<p>+358469430446</p>
</div>
</div>
<div class="col-md-4">
<div class="contact-info">
<h3>EMAIL US</h3>
<p>dang.np.thanh@gmail.com</p>
</div>
</div>
<div class="col-md-4">
<div class="contact-info">
<h3>OUR GITHUB</h3>
<p>https://github.com/<br>jeremydang</p>
</div>
</div>
</div>
</div>
</div>
<footer class="container-fluid blue-bg" id="sub-page">
<div class="row">
<div class="col-sm-4 text-left image hidden-xs">
<a href="index.php"><img src="images/mvlogo.png" alt="Logo"></a>
</div>
<div class="col-sm-4 hidden-xs text-center social">
<ul class="list-inline social">
<li >Connect with us on</li><br>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="col-sm-4 text-right darkgrey">
<p>Math Village © 2017</p>
<p class="hidden-xs"> Created by <a href="https://github.com/jeremydang">Thanh Dang</a></p>
</div>
</div>
</footer>
<!--js-lib-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>