-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.php
234 lines (203 loc) · 8.75 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
<?php
require_once 'backend/database.php';
// Report submit
if(isset($_POST['report_submit'])) {
require 'backend/database.php'; // Require database
// Get POST request vars
$email = $_POST['email'];
$description = $_POST['description'];
$sql = "INSERT INTO messages (email, bericht) VALUES ('$email', '$description')";
if($conn->query($sql)) {
// This is only text. Change this later!!
echo "Report verzonden!";
header("Location: contact.php");
}
}
// Report submit
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>VAKJOB.SR</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/animate.css">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet" />
<!-- =======================================================
Theme Name: Company
Theme URL: https://bootstrapmade.com/company-free-html-bootstrap-template/
Author: BootstrapMade
Author URL: https://bootstrapmade.com
======================================================= -->
</head>
<body>
<header>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse.collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-brand">
<a href="index.php"><h1><span>VAKJOB</span>.SR</h1></a>
</div>
</div>
<bs3-
<div class="navbar-collapse collapse">
<div class="menu">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation"><a href="index.php">Home</a></li>
<li role="presentation"><a href="vacatures.php">Vacatures</a></li>
<li role="presentation"><a href="contact.php" class="active">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Registreren <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="registreer_bed.php">Registreer bedrijf</a></li>
<li><a href="registreer_stu.php">Registreer student</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" class="active">Inloggen <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="login_bed.php">Bedrijf login</a></li>
<li><a href="login_stu.php">Student login</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</nav>
</header>
<div id="breadcrumb">
<div class="container">
<div class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li>Contact</li>
</div>
</div>
</div>
<div class="map">
<div id="google-map" data-latitude="5.809915" data-longitude="-55.214434"></div>
</div>
<section id="contact-page">
<div class="container">
<div class="center">
<h2>Neem contact met ons op</h2>
</div>
<div class="row contact-wrap">
<div class="status alert alert-success" style="display: none"></div>
<div class="col-md-6 col-md-offset-3">
<div id="sendmessage">Bedankt voor uw bericht</div>
<div id="errormessage">Er is een fout opgetreden</div>
<div class="well well-lg">
<form action="backend/contact_proc.php" method="POST">
<div class="form-group">
<input type="text" name="name" id="name" class="form-control" placeholder="Naam" data-msg="voer aub meer dan 4 karakters in" />
</div>
<div class="form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Email" data-rule="email" data-msg="voer een geldig email adress in" />
<div class="validation"></div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="onderwerp" id="onderwerp" placeholder="Onderwerp" data-msg="voer minimaal 8 karakters in" />
<div class="validation"></div>
</div>
<div class="form-group">
<textarea class="form-control" name="bericht" id="bericht" rows="5" data-rule="required" data-msg="Please write something for us" placeholder="Uw bericht"></textarea>
<div class="validation"></div>
</div>
<div class="text-center"><button type="submit" name="submit" id="submit" class="btn btn-primary btn-lg" >Verstuur bericht</button></div>
</form>
</div>
</div>
</div>
<!--/.row-->
</div>
<!--/.container-->
</section>
<!--/#contact-page-->
<footer>
<div class="footer">
<div class="container">
<div class="social-icon">
<div class="col-md-5">
<ul class="social-network">
<li><a href="#" class="fb tool-tip" title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" class="twitter tool-tip" title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" class="gplus tool-tip" title="Google Plus"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#" class="linkedin tool-tip" title="Linkedin"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#" class="ytube tool-tip" title="You Tube"><i class="fa fa-youtube-play"></i></a></li>
<li><a data-toggle="modal" data-target="#myModal" title="probleem"><i class="fa fa-exclamation-triangle" aria-hidden="false"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-4 col-md-offset-4">
<div class="copyright">
©VAKJOB.SR. Alle Rechten Voorbehouden.
<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=Company
-->
</div>
</div>
</div>
</div>
<div class="pull-right">
<a href="#home" class="scrollup"><i class="fa fa-angle-up fa-3x"></i></a>
</div>
</div>
</footer>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" class="horizontal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Meld uw probleem</h4>
</div>
<div class="modal-body">
<div class="form-group">
<div class="col-lg-14">
<input type="email" class="form-control" name="email" id="email" placeholder="[email protected]">
</div>
<div class="form-group">
<div class="col-lg-14">
<textarea class="form-control" name="description" placeholder="voer uw bericht hier in"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="submit" name="report_submit" class="btn btn-success">Versturen</button>
<button type="button" class="btn btn-default" data-dismiss="modal">Sluiten</button>
</div>
</form class = "horizontal">
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-2.1.1.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.prettyPhoto.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD8HeI8o-c1NppZA-92oYlXakhDPYR7XMY">
</script>
<script src="js/functions.js"></script>
<script src="contactform/contactform.js"></script>
</body>
</html>