-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshop.php
139 lines (128 loc) · 5.23 KB
/
shop.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
<?php
include ('../classes/userLogin.php');
$user = new userLogin;
if (isset($_POST['logout'])) {
$loggedOut = $user->logOut();
if ($loggedOut) {
header("location: loginPage.php");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Talitsi Shop</title>
<link rel="stylesheet" href="../css/usershop.css">
</head>
<body>
<div class="toppage">
<div class="businessname">
<h2>Talitsi cakes Shop</h2>
</div>
<div class="navbar">
<ul>
<li><a href="frontPage.php">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contacts</a></li>
<li><a href="#">Shop</a></li>
<?php if (isset($_SESSION['authenticated'])) :?>
<li><img src="../images/user.png"><h2><?= $_SESSION['loggedin_user']['fname']?></h2></li>   
<li>
<form action="" method="POST">
<input type="submit" value="logout"name="logout">
</form>
</li>
<?php else: ?>
<li><a href="loginPage.php">Login</a><Span>|</Span></li>
<li><a href="signupPage.php">Signup</a></li>
<?php endif;?>
</ul>
</div>
</div>
<h2>Welcome <?= $_SESSION['loggedin_user']['fname'] ?>,</h2>
<h2 class="shopbody">What we offer</h2>
<div class="shopgallery">
<div class="desserts">
<span><img src="../images/chocodessert.jpg"></span>
<h3>Desserts</h3>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.</p>
<a href="desserts.php">Explore More</a>
</div>
<div class="birthday">
<span class="img"><img src="../images/birthday.jpg" alt=""></span>
<h3>Birthday Cakes</h3>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.</p>
<a href="birthday.php">Explore More</a>
</div>
<div class="cupcakes">
<span class="img"><img src="../images/cupcake2.jpg" alt=""></span>
<h3>Cupcakes</h3>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.</p>
<a href="cupcakes.php">Explore More</a>
</div>
</div>
<footer>
<div class="container">
<div class="aboutussec">
<h2>About Us</h2>
<p>Talitsi Cakes is a business that focuses solely on promoting Sweetness to customers. Lorem ipsum dolor sit amet,
consectetur adipisicing elit. Praesentium quisquam, ullam temporibus inventore autem,
nisi.</p>
<ul class="sci">
<li><a href="#"><img src="../images/facebook.png"></a></li>
<li><a href="#"><img src="../images/instagram.png"></a></li>
<li><a href="#"><img src="../images/twitter.png"></a></li>
<li><a href="#"><img src="../images/linkedin.png"></a></li>
</ul>
</div>
<div class="quicklinkssec">
<h2>Quick Links</h2>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Terms & Conditions</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="quicklinkssec">
<h2>Shop</h2>
<ul>
<li><a href="../frontPage.php">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contacts</a></li>
<li><a href="#">Shop</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Our History</a></li>
</ul>
</div>
<div class="contactssec">
<h2>Contact Us</h2>
<ul class="info">
<li>
<span><img src="../images/placeholder.png"></span>
<span> 56 Gitanga Road <br>
Nairobi, Dago 17161,<br> Kenya</span>
</li>
<li>
<span><img src="../images/icons8-phone-26.png"></span>
<p><a href="tel:+254706111014">+254706111014</a><br>
</p>
</li>
<li>
<span><img src="../images/gmail.png"></span>
<p><a href="mailto:[email protected]">&[email protected]</a><br>
</p>
</li>
</ul>
</div>
</div>
</footer>
<div class="copyrighttext">
<p>Copyright Talitsi Cakes || All Rights Reserved</p>
</div>
</body>
</html>