-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
365 lines (300 loc) · 13.9 KB
/
index.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<?php
include 'admin/includes/conn.php'
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale-1, user-scalable=no">
<link rel="icon" href="img/logo.png" type="image/png">
<title>Portfolio</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="vendors/linericon/style.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="vendors/owl-carousel/owl.carousel.min.css">
<link rel="stylesheet" href="vendors/lightbox/simpleLightbox.css">
<link rel="stylesheet" href="vendors/nice-select/css/nice-select.css">
<link rel="stylesheet" href="vendors/animate-css/animate.css">
<link rel="stylesheet" href="vendors/flaticon/flaticon.css">
<!-- main css -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/responsive.css">
<!-- Animate.css -->
<link rel="stylesheet" href="css/animate.css">
<link href="css/aos.css" rel="stylesheet">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
</head>
<body>
<!--================Header Menu Area =================-->
<header class="header_area">
<div class="main_menu" id="mainNav">
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container box_1620">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand logo_h" href="index.php"><img style="width:30px;" src="img/logo.png" alt=""></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse offset" id="navbarSupportedContent">
<ul class="nav navbar-nav menu_nav ml-auto">
<li class="nav-item active"><a class="nav-link" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#opinion">Opinion</a></li>
<li class="nav-item"><a class="nav-link" href="#autobiography">Auto-Biography</a>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
<li class="nav-item"><a class="nav-link" target="blank" href="admin/index.php">Admin</a>
</ul>
</div>
</div>
</nav>
</div>
</header>
<!--================Header Menu Area =================-->
<!--================Home Banner Area =================-->
<section class="home_banner_area">
<div class="banner_inner">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="home_left_img">
<img src="img/home.jpg" alt="">
</div>
</div>
<div class="col-lg-6">
<div class="banner_content">
<h5>Hello, I'm</h5>
<h2>Munkhondiya</h2>
<p> Writer/Author... </p>
<a class="banner_btn" href="#">Hire me!</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!--================End Home Banner Area =================-->
<!--================Welcome Area =================-->
<section class="welcome_area p_120" id="about">
<div class="container">
<div class="row welcome_inner">
<div class="col-lg-6">
<div class="welcome_text">
<h4>About Myself</h4>
<blockquote class="generic-blockquote">
“Computer Engineering student seeking to gain more hands-on experience. Avid learner who is willing to tackle new challenges and deliver products that make an impact. Outside programming, I enjoy running, reading novels, and listening to podcasts.”
</blockquote>
</div>
</div>
<div class="col-lg-6">
<div class="tools_expert">
<h3>What i do?</h3>
<div class="skill_main">
<div class="skill_item">
<h4>Writing <span class="counter">85</span>%</h4>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="skill_item">
<h4>Research <span class="counter">90</span>%</h4>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="skill_item">
<h4> Advertisment <span class="counter">80</span>%</h4>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--================End Welcome Area =================-->
<!--================Latest Blog Area =================-->
<section class="latest_blog_area p_120" id="opinion">
<div class="container">
<div class="main_title">
<h2>Opinion Column</h2>
</div>
<div class="row latest_blog_inner">
<?php
$query = mysqli_query($con, "select * FROM tblposts where tblposts.Is_Active=1 LIMIT 4 ");
while ($row=mysqli_fetch_array($query)) {
?>
<div class="col-lg-3">
<div class="l_blog_item">
<div class="l_blog_text">
<a href="opinion-details.php?nid=<?php echo htmlentities($row['id'])?>&cid=<?php echo $row["CategoryId"] ?>"><h4> <?php echo $row['PostTitle']; ?> </h4></a>
</div>
<div class="date">
<a href="#"><i class="fa fa-user"></i> Kondwani</a> <span><i class="fa fa-calendar"></i> <?php echo $row['PostingDate']; ?> </a>
</div>
<div class="l_blog_img">
<a href="opinion-details.php?nid=<?php echo htmlentities($row['id']) ?>&cid=<?php echo $row["CategoryId"] ?>"><img src="admin/postimages/<?php echo htmlentities($row['PostImage']); ?>" alt="<?php echo htmlentities($row['PostImage']); ?>" width="275" height="250"></a>
</div>
<hr>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="button-group-area mt-40 view-more">
<a style="width: 50%;" href="blog.php" class="genric-btn success circle">Read More!</a>
</div>
</section>
<!--================End Latest Blog Area =================-->
<!--================Feature Area =================-->
<section class="feature_area p_120" id="autobiography">
<div class="container">
<div class="main_title">
<h2>Auto-biography</h2>
</div>
<div class="testi_inner">
<div class="testi_slider owl-carousel">
<?php
$query = mysqli_query($con, "select * FROM tblupdates where tblupdates.Is_Active=1 LIMIT 4 ");
while ($row=mysqli_fetch_array($query)) {
?>
<div class="item">
<div class="testi_item">
<div id= "link_other" >
<a href="bio-details.php?bid=<?php echo htmlentities($row['id']) ?>"> <img src="admin/postimages/<?php echo htmlentities($row['PostImage']); ?>" alt="<?php echo htmlentities($row['PostImage']); ?>" width="230" height="200"></a>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</section>
<!--================End Feature Area =================-->
<!--================Contact Area =================-->
<section class="contact_area p_120" id="contact">
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="contact_info">
<div class="info_item">
<i class="lnr lnr-home"></i>
<h6>Mzuzu, Malawi</h6>
<p>Katoto</p>
</div>
<div class="info_item">
<i class="lnr lnr-phone-handset"></i>
<h6><a href="#">+265882795006</a></h6>
<p>Mon to Fri 9am to 6 pm</p>
</div>
<div class="info_item">
<i class="lnr lnr-envelope"></i>
<h6><a href="#">info@kho.com</a></h6>
<p>Send us your query anytime!</p>
</div>
</div>
</div>
<div class="col-lg-9">
<form class="row contact_form" action="contact_process.php" method="post" id="contactForm" novalidate="novalidate">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" id="name" name="name" placeholder="Enter your name">
</div>
<div class="form-group">
<input type="email" class="form-control" id="email" name="email" placeholder="Enter email address">
</div>
<div class="form-group">
<input type="text" class="form-control" id="subject" name="subject" placeholder="Enter Subject">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<textarea class="form-control" name="message" id="message" rows="1" placeholder="Enter Message"></textarea>
</div>
</div>
<div class="col-md-12 text-right">
<button type="submit" value="submit" class="btn submit_btn">Send Message</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!--================Contact Area =================-->
<!--================Footer Area =================-->
<footer class="footer_area p_120">
<div class="container">
<div class="row footer_inner">
<div class="col-lg-5 col-sm-6">
<aside class="f_widget ab_widget">
<div class="f_title">
<h3>About Me</h3>
</div>
</aside>
</div>
<div class="col-lg-2">
<aside class="f_widget social_widget">
<div class="f_title">
<h3>Follow Me</h3>
</div>
<p>social</p>
<ul class="list">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
</ul>
</aside>
</div>
</div>
</div>
</footer>
<!--================End Footer Area =================-->
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/popper.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/stellar.js"></script>
<script src="vendors/lightbox/simpleLightbox.min.js"></script>
<script src="vendors/nice-select/js/jquery.nice-select.min.js"></script>
<script src="vendors/isotope/imagesloaded.pkgd.min.js"></script>
<script src="vendors/isotope/isotope-min.js"></script>
<script src="vendors/owl-carousel/owl.carousel.min.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="vendors/counter-up/jquery.waypoints.min.js"></script>
<script src="vendors/counter-up/jquery.counterup.min.js"></script>
<script src="js/mail-script.js"></script>
<!--gmaps Js-->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCjCGmQ0Uq4exrzdcL6rvxywDDOvfAu6eE"></script>
<script src="js/gmaps.min.js"></script>
<script src="js/theme.js"></script>
<script src="js/aos.js"></script>
<script>
$(function() {
AOS.init();
});
$(window).on('load', function() {
AOS.refresh();
});
</script>
<script>
$(".navbar-collapse a").click(function(){
$(".navbar-collapse").collapse('hide');
});
</script>
<script>
window.onload = function(){
var anchors = document.getElementById('link_other').getElementsByTagName('a');
for (var i=0; i<anchors.length; i++){
anchors[i].setAttribute('target', '_blank');
}
}
</script>
</body>
</html>