Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
135 lines (134 loc) · 4.61 KB
/
Copy pathindex.php
File metadata and controls
135 lines (134 loc) · 4.61 KB
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
<?php include ( "inc/connect.inc.php" ); ?>
<?php
ob_start();
session_start();
if (!isset($_SESSION['user_login'])) {
$user = "";
}
else {
$user = $_SESSION['user_login'];
$result = mysql_query("SELECT * FROM user WHERE id='$user'");
$get_user_email = mysql_fetch_assoc($result);
$uname_db = $get_user_email['firstName'];
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Welcome to ebuybd online shop</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="/js/homeslideshow.js"></script>
</head>
<body style="min-width: 980px;">
<div class="homepageheader" style="position: relative;">
<div class="signinButton loginButton">
<div class="uiloginbutton signinButton loginButton" style="margin-right: 40px;">
<?php
if ($user!="") {
echo '<a style="text-decoration: none; color: #fff;" href="logout.php">LOG OUT</a>';
}
else {
echo '<a style="color: #fff; text-decoration: none;" href="signin.php">SIGN IN</a>';
}
?>
</div>
<div class="uiloginbutton signinButton loginButton" style="">
<?php
if ($user!="") {
echo '<a style="text-decoration: none; color: #fff;" href="profile.php?uid='.$user.'">Hi '.$uname_db.'</a>';
}
else {
echo '<a style="text-decoration: none; color: #fff;" href="login.php">LOG IN</a>';
}
?>
</div>
</div>
<div style="float: left; margin: 5px 0px 0px 23px;">
<a href="index.php">
<img style=" height: 75px; width: 130px;" src="image/ebuybdlogo.png">
</a>
</div>
<div class="">
<div id="srcheader">
<form id="newsearch" method="get" action="search.php">
<input type="text" class="srctextinput" name="keywords" size="21" maxlength="120" placeholder="Search Here..."><input type="submit" value="search" class="srcbutton" >
</form>
<div class="srcclear"></div>
</div>
</div>
</div>
<div class="home-welcome">
<div class="home-welcome-text" style="background-image: url(image/homebackgrndimg.png); height: 380px; ">
<h1 style="margin: 0px;">Welcome To eBuyBD</h1>
<h2>Largest Online Shopping In Bangladesh</h2>
</div>
</div>
<div class="home-prodlist">
<div>
<h3 style="text-align: center;">Products Category</h3>
</div>
<div style="padding: 20px 30px; width: 85%; margin: 0 auto;">
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/saree.php">
<img src="./image/product/saree/new-designer-fancy-look-attractive-saree-2-original.jpg" class="home-prodlist-imgi">
</a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/perfume.php">
<img src="./image/product/perfume/Most-Popular-Perfumes-for-Women10.png" class="home-prodlist-imgi">
</a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/hijab.php">
<img src="./image/product/saree/hijab 1.png" class="home-prodlist-imgi"></a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/toilatry.php">
<img src="./image/product/beauty/toiletries.png" class="home-prodlist-imgi"></a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/footwear.php">
<img src="./image/product/footwear/footwear1.png" class="home-prodlist-imgi"></a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/tshirt.php">
<img src="./image/product/saree/tshirts1.png" class="home-prodlist-imgi"></a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/watch.php">
<img src="./image/product/watch/watches1.png" class="home-prodlist-imgi"></a>
</div>
</li>
</ul>
<ul style="float: left;">
<li style="float: left; padding: 25px;">
<div class="home-prodlist-img"><a href="women/ornament.php">
<img src="./image/product/ornament/earrings1.png" class="home-prodlist-imgi"></a>
</div>
</li>
</ul>
</div>
</div>
</body>
</html>