Repository navigation
Expand file tree
/
Copy pathuserpage.php
More file actions
64 lines (57 loc) · 1.67 KB
/
Copy pathuserpage.php
File metadata and controls
64 lines (57 loc) · 1.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Dashboard</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: linear-gradient(to right, #4CAF50, #45a049);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
#dashboard-container {
background-color: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
}
#logout-btn {
padding: 10px 20px;
background-color: #fff;
color: #4CAF50;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-top: 20px;
transition: background-color 0.3s ease, color 0.3s ease;
}
#logout-btn:hover {
background-color: #4CAF50;
color: #fff;
}
</style>
</head>
<body>
<div id="dashboard-container">
<h2>Welcome, <?php echo $userInfo['username']; ?>!</h2>
<h3>Your Orders:</h3>
<ul>
<?php foreach ($userInfo['orders'] as $order) : ?>
<li><?php echo $order; ?></li>
<?php endforeach; ?>
</ul>
<form action="logout.php" method="post">
<input type="submit" id="logout-btn" value="Logout">
</form>
</div>
</body>
</html>