-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
216 lines (187 loc) · 7.51 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
<?php
session_start();
include_once 'admin/database.php';
?>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>ASB Fashion</title>
<link rel="icon" href="img/favicon2.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- animate CSS -->
<link rel="stylesheet" href="css/animate.css">
<!-- owl carousel CSS -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<!-- font awesome CSS -->
<link rel="stylesheet" href="css/all.css">
<link rel="stylesheet" href="css/nice-select.css">
<!-- flaticon CSS -->
<link rel="stylesheet" href="css/flaticon.css">
<link rel="stylesheet" href="css/themify-icons.css">
<!-- font awesome CSS -->
<link rel="stylesheet" href="css/magnific-popup.css">
<!-- swiper CSS -->
<link rel="stylesheet" href="css/slick.css">
<!-- swiper CSS -->
<link rel="stylesheet" href="css/price_rangs.css">
<!-- style CSS -->
<link rel="stylesheet" href="css/style.css">
</head>
<body class="bg-white">
<!--::header part start::-->
<?php include_once 'include/header.php'; ?>
<!-- Header part end-->
<!--================Home Banner Area =================-->
<!-- breadcrumb start-->
<section class="breadcrumb breadcrumb_bg">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-12">
<div class="breadcrumb_iner">
<div class="breadcrumb_iner_item">
<p>Home / Contact</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- breadcrumb start-->
<!-- ================ contact section start ================= -->
<section class="contact-section padding_top">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="contact-title">Get in Touch</h2>
</div>
<div class="col-lg-8">
<form method="POST" class="" id="contactForm">
<div class="row" style="margin-bottom: 30px;">
<div class="col-sm-12">
<div class="form-group">
<textarea class="form-control w-100" name="msg" id="message" cols="30" rows="5"
onfocus="this.placeholder = ''" onblur="this.placeholder = 'Enter Message'"
placeholder='Enter Message'></textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="name" id="name" type="text" onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter your name'" placeholder='Enter your name'>
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<input class="form-control" name="email" id="email" type="email" onfocus="this.placeholder = ''"
onblur="this.placeholder = 'Enter email address'" placeholder='Enter email address'>
</div>
</div>
<?php
if(isset($_POST['contact'])){
$sql = 'INSERT INTO massage (name,email,msg,`date`) VALUES ("'.$_POST['name'].'","'.$_POST['email'].'","'.$_POST['msg'].'",now())';
if ($conn->query($sql) === TRUE) {
echo '<small style="text-align:center;color:#428bca"> Thank you for your feedback. We will get back to you soon.</small>';
} else {
echo '<small style="text-align:center;color:#428bca">Please Try Again Later</small>';
}
}
?>
</div>
<div class="form-group mt-3">
<button type="submit" name="contact" value="contact" class="btn_3 ">Send Message</button>
</div>
</form>
</div>
<div class="col-lg-4">
<div class="media contact-info">
<span class="contact-info__icon"><i class="ti-home"></i></span>
<div class="media-body">
<h3>Galle Road</h3>
<p>Panadura</p>
</div>
</div>
<div class="media contact-info">
<span class="contact-info__icon"><i class="ti-tablet"></i></span>
<div class="media-body">
<h3>+94 11 22 54875</h3>
<p>Mon to Fri 9am to 6pm</p>
</div>
</div>
<div class="media contact-info">
<span class="contact-info__icon"><i class="ti-email"></i></span>
<div class="media-body">
<h3>ASBfashion@gmail.com</h3>
<p>Send us your query anytime!</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ================ contact section end ================= -->
<!-- subscribe_area part start-->
<section class="instagram_photo">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="instagram_photo_iner">
<div class="single_instgram_photo">
<img src="img/instagram/inst_1.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_2.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_3.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_4.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_5.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!--::subscribe_area part end::-->
<!--::footer_part start::-->
<?php include_once 'include/footer.php'; ?>
<!--::footer_part end::-->
<!-- jquery plugins here-->
<!-- jquery -->
<script src="js/jquery-1.12.1.min.js"></script>
<!-- popper js -->
<script src="js/popper.min.js"></script>
<!-- bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<!-- easing js -->
<script src="js/jquery.magnific-popup.js"></script>
<!-- swiper js -->
<script src="js/swiper.min.js"></script>
<!-- particles js -->
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<!-- slick js -->
<script src="js/slick.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/contact.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<!--<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/mail-script.js"></script>
<!-- custom js -->
<script src="js/custom.js"></script>
</body>
</html>