-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
298 lines (195 loc) · 8.54 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
<?php
require'db.php';
if(isset($_COOKIE['cookieName'])){
$cookie = $_COOKIE['cookieName'];
echo $_COOKIE['cookieName'];
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Fashion Blog</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<!-- Font -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<!-- Stylesheets -->
<link href="common-css/bootstrap.css" rel="stylesheet">
<link href="common-css/ionicons.css" rel="stylesheet">
<link href="common-css/layerslider.css" rel="stylesheet">
<link href="01-homepage/css/styles.css" rel="stylesheet">
<link href="01-homepage/css/responsive.css" rel="stylesheet">
<script type="text/javascript">
function active()
{
var searchBar = document.getElementById('searchBar');
if(searchBar.value == 'Search')
{
searchBar.value='';
}
}
</script>
</head>
<body>
<header>
<div class="top-menu">
<ul class="left-area welcome-area">
<li class="hello-blog">Hello nice people, welcome to my blog</li>
<li ><a href="#" >contact@[email protected]</a></li>
</ul><!-- left-area -->
<ul class="right-area welcome-area">
<?php
if(isset($_COOKIE['cookieName']))
{
echo '<li><a href="#">'.$_COOKIE['cookieName']. '</a></li>';
echo '<li><a href="logout.php">Logout</a></li>';
}
else
{
echo '<li><a href="REGanamika.php">Registration</a></li>';
echo '<li><a href="LOGanamika.php">User Login</a></li>';
}
?>
</ul>
<ul>
</ul>
</div><!-- top-menu -->
<div class="middle-menu center-text"><a href="#" class="logo"><img src="images/logo.png" alt="Logo Image"></a></div>
<div class="search_box">
</div>
<div class="bottom-area">
<div class="menu-nav-icon" data-nav-menu="#main-menu"><i class="ion-navicon"></i></div>
<ul class="main-menu visible-on-click" id="main-menu">
<li><a href="category_homepage.php?cat=Designer"><i>DESIGNERS</i></a></li>
<li><a href="category_homepage.php?cat=Celebrity"><i>CELEBRITY</i></a></li>
<li><a href="category_homepage.php?cat=Cloth"><i>CLOTHINGSTYLE</i></a></li>
<li><a href="category_homepage.php?cat=Lifestyle"><i>LIFESTYLE</i></a></li>
<li>
<form action="search_result.php" method="GET">
<input type="text" value="Search" id="searchBar" name="search" onfocus="this.value = '';" onmousedown="active();" onblur="if (this.value == '') {this.value = 'Search';}">
<input type="submit" id="searchBtn" value="Go">
</form>
</li>
</ul><!-- main-menu -->
</div><!-- conatiner -->
</header>
<div class="main-slider">
<div id="slider">
<div class="ls-slide" data-ls="bgsize:cover; bgposition:50% 50%; duration:4000; transition2d:104; kenburnsscale:1.00;">
<img src="images/slider-1-1600x800.jpg" class="ls-bg" alt="" />
</div><!-- ls-slide -->
<div class="ls-slide" data-ls="bgsize:cover; bgposition:50% 50%; duration:4000; transition2d:104; kenburnsscale:1.00;">
<img src="images/win.jpg" class="ls-bg" alt="" />
</div><!-- ls-slide -->
</div><!-- slider -->
</div><!-- main-slider -->
<section class="section blog-area">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-12">
<div class="blog-posts">
<?php
$sql = "SELECT * FROM post_table WHERE `category` = 'Festival'";
$act = $db->query($sql);
$i = 1;
while ($data =$act -> fetch_assoc()) {
?>
<div class="single-post">
<div class="image-wrapper"><img src="images/<?php echo $data['image'] ?>" alt="Blog Image"></div>
<p class="date"><em><?php echo $data['date'] ?></em></p>
<h3 class="title"><a href="singlePostDisplay.php?id=<?php echo $data['post_id']; ?>"><b class="light-color"><?php echo $data['post_title'] ?></b></a></h3>
<p> <?php echo $data['details'] ?></p>
<a class="btn read-more-btn" href="singlePostDisplay.php?id=<?php echo $data['post_id']; ?>"><b>READ MORE</b></a>
</div><!-- single-post -->
<?php $i = $i + 1; ?>
<?php } ?>
<div class="row">
<?php
$sql = "SELECT * FROM post_table WHERE `category` = 'Fashion'";
$act = $db->query($sql);
$i = 1;
while ($data =$act -> fetch_assoc()) {
?>
<div class="col-lg-6 col-md-12">
<div class="single-post">
<div class="image-wrapper"><img src="images/<?php echo $data['image'] ?>" alt="Blog Image" height="220" width="120"></div>
<h6 class="date"><em><?php echo $data['date']; ?></em></h6>
<h3 class="title"><a href="singlePostDisplay.php?id=<?php echo $data['post_id']; ?>"><b class="light-color"><?php echo $data['post_title']; ?></b></a></h3>
<p> <?php echo $data['details'] ?> </p>
<a class="btn read-more-btn" href="singlePostDisplay.php?id=<?php echo $data['post_id']; ?>"><b>READ MORE</b></a>
</div><!-- single-post -->
</div><!-- col-sm-6 -->
<?php } ?>
</div><!-- row -->
</div><!-- blog-posts -->
</div><!-- col-lg-4 -->
<div class="col-lg-4 col-md-12">
<div class="sidebar-area">
<div class="sidebar-section about-author center-text">
<div class="author-image"><img src="images/ana.jpg" alt="Autohr Image"></div>
<ul class="social-icons">
<li><a href="https://www.facebook.com/anamika.mou.399" target="_blank"><i class="ion-social-facebook-outline"></i></a></li>
<li><a href="https://www.instagram.com/anamika.mou/?fbclid=IwAR3Mg28-fweDypy2soGWB4k7tBI_BY10czOAldwsbq1AN9DRPM7pGcywrHI" target="_blank"><i class="ion-social-instagram-outline"></i></a></li>
</ul><!-- right-area -->
<h4 class="author-name"><b class="light-color">Anamika Mou</b></h4>
<p>Hey ! I am Anamika.I am studying CSE at East West University,Dhaka,Bangladesh.I have huge interest on Fashion and i love fashion! check out my blog and trust me you'll not be bore ;) <3</p>
<div class="signature-image"><img src="images/signature-image.png" alt="Signature Image"></div>
</div><!-- sidebar-section about-author -->
<div class="sidebar-section category-area">
<h4 class="title"><b class="light-color">Categories</b></h4>
<a class="category" href="sub_category.php?sub_cat=Person">
<img src="images/person.jpg" alt="Category Image">
<h6 class="name">PERSON</h6>
</a>
<a class="category" href="sub_category.php?sub_cat=Season">
<img src="images/category-2-400x150.jpg" alt="Category Image">
<h6 class="name"> SEASON</h6>
</a>
<a class="category" href="sub_category.php?sub_cat=Festival">
<img src="images/category-3-400x150.jpg" alt="Category Image">
<h6 class="name">FESTIVAL</h6>
</a>
</div><!-- sidebar-section category-area -->
<div class="sidebar-section latest-post-area">
<h4 class="title"><b class="light-color">Others</b></h4>
<div class="latest-post" href="#">
<?php
$i = 2;
$sql = "SELECT * FROM post_table WHERE `category` = 'Designer'";
$act = $db->query($sql);
while ($data =$act -> fetch_assoc()) {
?>
<div class="l-post-image"><img src="images/<?php echo $data['image'] ?>"></div>
<div class="post-info">
<a class="btn category-btn" href="singlePostDisplay.php?id=<?php echo $data['post_id']; ?>">DESIGNER</a>
<h5><a href="#"><b class="light-color"><?php echo $data['post_title']; ?></b></a></h5>
<h6 class="date"><em><?php echo $data['date']; ?></em></h6>
</div>
</div>
<?php } ?>
</div><!-- sidebar-section latest-post-area -->
</div><!-- about-author -->
</div><!-- col-lg-4 -->
</div><!-- row -->
</div><!-- container -->
</section><!-- section -->
<footer>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="footer-section">
<p class="copyright">Developed by Wahid Hasan and Anamika Mou</p>
</div><!-- footer-section -->
</div><!-- col-lg-4 col-md-6 -->
</div><!-- row -->
</div><!-- container -->
</footer>
<!-- SCIPTS -->
<script src="common-js/jquery-3.1.1.min.js"></script>
<script src="common-js/tether.min.js"></script>
<script src="common-js/bootstrap.js"></script>
<script src="common-js/layerslider.js"></script>
<script src="common-js/scripts.js"></script>
</body>
</html>