-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacting.php
172 lines (147 loc) · 7.17 KB
/
contacting.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
<? require_once("config.php");?>
<? require_once("views/helper.php");?>
<? require_once("views/init.php");?>
<body>
<div class="box-layout">
<? require_once("views/header.php");?>
<div class="submenu">
<div class="container d-flex justify-content-between">
<h3 class="text-black">Холбоо барих</h3>
<ul class="submenu-ul">
<li><a href="#">Хаяг байршил</a></li>
<li><a href="#">Нээлттэй ажлын байр</a></li>
</ul>
</div>
</div>
<!-- Start Page Header Section -->
<section class="bg-page-header" style="background:url('assets/images/contact-bg.jpg'); background-size:cover;">
<div class="page-header-overlay">
<div class="container">
<div class="row">
<div class="page-header">
<div class="page-title">
<h2>Холбоо барих хэсэг</h2>
</div>
<!-- .page-title -->
<div class="page-header-content">
<ol class="breadcrumb">
<li><a href="index">Нүүр хуудас</a></li>
<li>Холбогдох</li>
</ol>
</div>
<!-- .page-header-content -->
</div>
<!-- .page-header -->
</div>
<!-- .row -->
</div>
<!-- .container -->
</div>
<!-- .page-header-overlay -->
</section>
<!-- End Page Header Section -->
<!-- Start Contact us Section -->
<section class="bg-contact-us">
<div class="container">
<div class="row">
<div class="contact-us">
<div class="row">
<div class="col-lg-8">
<h3 class="contact-title">Cанал хүсэлт илгээх</h3>
<?
$name = protect($_POST["name"]);
$email = protect($_POST["email"]);
$tel = protect($_POST["tel"]);
$subject = protect($_POST["subject"]);
$message = protect($_POST["message"]);
$sql = "INSERT INTO feedback (title,content,name,contact,email) VALUES ('$subject','$message','$name','$tel','$email')";
if (mysqli_query($conn,$sql))
{
?>
<div class="alert alert-success">
Амжилттай илгээгдлээ.
</div>
<?
}
else
{
?>
<div class="alert alert-danger">
Алдаа гарлаа
</div>
<?
}
?>
</div>
<div class="col-lg-4">
<h3 class="contact-title">Contact Info</h3>
<ul class="contact-address">
<li>
<i class="flaticon-placeholder"></i>
<div class="contact-content">
<p><?=settings("address");?></p>
</div>
</li>
<li>
<i class="flaticon-vibrating-phone"></i>
<div class="contact-content">
<p><?=settings("tel");?></p>
</div>
</li>
<li>
<i class="flaticon-message"></i>
<div class="contact-content">
<p><?=settings("email");?></p>
</div>
</li>
</ul>
</div>
</div>
<!-- .row -->
</div>
<!-- .contact-us -->
</div>
<!-- .row -->
</div>
<!-- .container -->
</section>
<!-- End Contact us Section -->
<!-- STart Maps Section -->
<div id="map"></div>
<!-- End Maps Section -->
<? require_once("views/footer.php");?>
<!-- Start Scrolling -->
<div class="scroll-img"><i class="fa fa-angle-up" aria-hidden="true"></i></div>
<!-- End Scrolling -->
</div>
<!-- Start Pre-Loader-->
<div id="loading">
<div id="loading-center">
<div id="loading-center-absolute">
<div class="object" id="object_one"></div>
<div class="object" id="object_two"></div>
<div class="object" id="object_three"></div>
<div class="object" id="object_four"></div>
</div>
</div>
</div>
<!-- End Pre-Loader -->
<script type="text/javascript" src="assets/js/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="assets/js/jquery.waypoints.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.counterup.min.js"></script>
<script type="text/javascript" src="assets/js/swiper.min.js"></script>
<script type="text/javascript" src="assets/js/plugins.isotope.js"></script>
<script type="text/javascript" src="assets/js/isotope.pkgd.min.js"></script>
<script type="text/javascript" src="assets/js/lightcase.js"></script>
<script type="text/javascript" src="assets/js/jquery.nstSlider.js"></script>
<script type="text/javascript" src="assets/js/jquery.flexslider.js"></script>
<script type="text/javascript" src="assets/js/custom.isotope.js"></script>
<script type="text/javascript" src="assets/js/custom.map.js"></script>
<script type="text/javascript" src="assets/js/custom.js"></script>
<!-- Map Api -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqVIkdttPNjl5c5hKlc_Hk3bfXQQlf2Rc&callback=initMap">
</script>
</body>
</html>