-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPractical_13_buyer.php
More file actions
75 lines (75 loc) · 2.02 KB
/
Practical_13_buyer.php
File metadata and controls
75 lines (75 loc) · 2.02 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
<?php
session_start();
if (!isset($_SESSION['user_id']) || $_SESSION['role'] !== 'buyer') {
header("Location: Practical_13_Login.html");
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Buyer Dashboard | HAC Services</title>
<style>
body {
font-family: Arial, sans-serif;
background: #fffde7;
margin: 0;
padding: 0;
}
.container {
max-width: 700px;
margin: 50px auto;
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
h1, h2 {
text-align: center;
color: #f9a825;
}
ul {
list-style: none;
padding: 0;
}
li {
padding: 10px;
background: #fff9c4;
margin: 10px 0;
border-radius: 6px;
text-align: center;
}
a {
text-decoration: none;
color: #f57f17;
font-weight: bold;
}
.logout {
display: block;
margin: 20px auto;
width: fit-content;
padding: 10px 20px;
background: #f44336;
color: white;
border-radius: 6px;
}
.logout:hover {
background: #d32f2f;
}
</style>
</head>
<body>
<div class="container">
<h1>Buyer Dashboard</h1>
<h2>Welcome, Buyer!</h2>
<ul>
<li><a href="buyer_browse.php">Browse Available Listings</a></li>
<li><a href="save_favorite.php">Save Favorite Listings</a></li>
<li><a href="buyer_favorites.php">My Favorites</a></li>
<li><a href="contact_broker.php">Contact Brokers</a></li>
<li><a href="edit_profile.php">Edit Profile</a></li>
</ul>
<a href="Practical_13_Logout.php" class="logout">Logout</a>
</div>
</body>
</html>