-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontact.php
217 lines (194 loc) · 10.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JobsConnect</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicon -->
<link rel="icon" href="img/jobsConnect.svg" type="image/x-icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&family=Inter:wght@700;800&display=swap" rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="mcss/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="mcss/style.css" rel="stylesheet">
</head>
<body>
<div class="container-xxl bg-white p-0">
<!-- Spinner Start -->
<div id="spinner" class="show bg-white position-fixed translate-middle w-100 vh-100 top-50 start-50 d-flex align-items-center justify-content-center">
<div class="spinner-border text-primary" style="width: 3rem; height: 3rem;" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<!-- Spinner End -->
<?php include 'mainNavbar.php'; ?>
<script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<script>
function sendContact() {
var valid;
valid = validateContact();
if (valid) {
jQuery.ajax({
url: "contact_mail.php",
data: 'userName=' + $("#userName").val() + '&userEmail=' + $("#userEmail").val() + '&subject=' + $("#subject").val() + '&content=' + $(content).val(),
type: "POST",
success: function(data) {
$("#mail-status").html(data);
},
error: function() {}
});
}
}
function validateContact() {
var valid = true;
$(".demoInputBox").css('background-color', '');
$(".info").html('');
if (!$("#userName").val()) {
$("#userName-info").html("(required)");
$("#userName").css('background-color', '#FFFFDF');
valid = false;
}
if (!$("#userEmail").val()) {
$("#userEmail-info").html("(required)");
$("#userEmail").css('background-color', '#FFFFDF');
valid = false;
}
if (!$("#userEmail").val().match(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/)) {
$("#userEmail-info").html("(invalid)");
$("#userEmail").css('background-color', '#FFFFDF');
valid = false;
}
if (!$("#subject").val()) {
$("#subject-info").html("(required)");
$("#subject").css('background-color', '#FFFFDF');
valid = false;
}
if (!$("#content").val()) {
$("#content-info").html("(required)");
$("#content").css('background-color', '#FFFFDF');
valid = false;
}
return valid;
}
</script>
<!-- Header End -->
<div class="container-xxl py-5 bg-dark page-header mb-5">
<div class="container my-5 pt-5 pb-4">
<h1 class="display-3 text-white mb-3 animated slideInDown">Contact</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb text-uppercase">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item text-white active" aria-current="page">Contact</li>
</ol>
</nav>
</div>
</div>
<!-- Header End -->
<!-- Contact Start -->
<div class="container-xxl py-5">
<div class="container">
<h1 class="text-center mb-5 wow fadeInUp" data-wow-delay="0.1s">Contact For Any Query</h1>
<div class="row g-4">
<div class="col-12">
<div class="row gy-4">
<div class="col-md-4 wow fadeIn" data-wow-delay="0.1s">
<div class="d-flex align-items-center bg-light rounded p-4">
<div class="bg-white border rounded d-flex flex-shrink-0 align-items-center justify-content-center me-3" style="width: 45px; height: 45px;">
<i class="fa fa-map-marker-alt text-primary"></i>
</div>
<span>3, Chowbaga Road, Kolkata</span>
</div>
</div>
<div class="col-md-4 wow fadeIn" data-wow-delay="0.3s">
<div class="d-flex align-items-center bg-light rounded p-4">
<div class="bg-white border rounded d-flex flex-shrink-0 align-items-center justify-content-center me-3" style="width: 45px; height: 45px;">
<i class="fa fa-envelope-open text-primary"></i>
</div>
<span>jobs@JobsConnect.com</span>
</div>
</div>
<div class="col-md-4 wow fadeIn" data-wow-delay="0.5s">
<div class="d-flex align-items-center bg-light rounded p-4">
<div class="bg-white border rounded d-flex flex-shrink-0 align-items-center justify-content-center me-3" style="width: 45px; height: 45px;">
<i class="fa fa-phone-alt text-primary"></i>
</div>
<span>+123 456 7890</span>
</div>
</div>
</div>
</div>
<div class="col-md-6 wow fadeInUp" data-wow-delay="0.1s">
<iframe class="position-relative rounded w-100 h-100" src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14742.611868332267!2d88.4187955!3d22.5172!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3a0273f58b9feec5%3A0x30f8067b73c45d8!2sHeritage%20Institute%20of%20Technology!5e0!3m2!1sen!2sin!4v1681857749891!5m2!1sen!2sin" frameborder="0" style="min-height: 400px; border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
</div>
<div id="frmContact" class="col-md-6">
<div id="mail-status"></div>
<div class="wow fadeInUp" data-wow-delay="0.5s">
<p class="mb-4">Any questions or remarks? Just write us a meesage.</p>
<form>
<div class="row g-3">
<div class="col-md-6">
<div class="form-floating">
<input type="text" class="form-control" name="userName" id="userName" placeholder="Your Name">
<label for="name">Your Name</label>
<span id="userName-info" class="info"></span><br />
</div>
</div>
<div class="col-md-6">
<div class="form-floating">
<input type="email" class="form-control" name="userEmail" id="userEmail" placeholder="Your Email">
<label for="email">Your Email</label>
<span id="userEmail-info" class="info"></span><br />
</div>
</div>
</div>
<div class="col-12">
<div class="form-floating">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subject">
<label for="subject">Subject</label>
<span id="subject-info" class="info"></span><br />
</div>
</div>
<div class="col-12">
<div class="form-floating">
<textarea class="form-control" placeholder="Leave a message here" name="content" id="content" style=" height: 150px"></textarea>
<label for="content">Message</label>
<span id="content-info" class="info"></span><br />
</div>
</div>
<div class="col-12">
<button class="btn btn-primary w-100 py-3" type="submit" name="submit" onClick="sendContact();">Send Message</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Contact End -->
<?php include 'mainFooter.php'; ?>
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
</div>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>
</html>