-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserProfileDisp.php
More file actions
133 lines (118 loc) · 4.02 KB
/
userProfileDisp.php
File metadata and controls
133 lines (118 loc) · 4.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile - Event Hive</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
background: linear-gradient(90deg, rgb(189, 222, 230) 0%, rgb(172, 197, 237) 83%);
font-family: 'Arial', sans-serif;
margin: 0;
}
.navbar {
background-color: rgba(255, 255, 255, 0.0); /* Transparent white */
border-bottom: 0px solid #e9ecef;
font-family: 'Roboto', sans-serif;
font-weight: 200;
color: white; /* Change navbar text color to white */
position: relative; /* Set position to relative to stack on top of video */
z-index: 1; /* Ensure navbar is above video */
}
.navbar-nav .nav-link {
color: white !important; /* Change navbar link text color to white */
font-weight: 400;
}
.navbar-brand {
font-weight: 400; /* Set font weight to normal */
color: white !important; /* Change navbar brand text color to white */
}
.container {
background-color: #fff; /* Container background color */
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
margin-top: 20px;
background: linear-gradient(90deg, rgb(189, 222, 230) 0%, rgb(172, 197, 237) 83%);
}
.profile-header {
text-align: center;
}
.btn-green {
background-color: #4CAF50;
color: #fff;
}
.btn-red {
background-color: #FF5722;
color: #fff;
}
.btn-secondary {
background-color: #3366ff;
color: #fff;
}
.action-buttons {
display: flex;
justify-content: space-between;
}
video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1; /* Place the video behind other content */
}
.container
{
background-color: rgba(255, 255, 255, 0.0); /* Transparent white */
}
</style>
</head>
<body>
<video autoplay muted loop>
<source src="./image/soft_blur_bg.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="#">EventHive</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="profile.php"><i class="fas fa-user"></i> Home</a>
</li>
</ul>
</div>
</nav>
</body>
</html>
<?php
session_start();
$id = $_SESSION['UserId'];
if(isset($id)){
require 'eventClass.php';
$obj = new db();
$r = $obj->fetchOne($id);
?>
<div class="container">
<div class="profile-header">
<h2>Hello,<?php echo $r['studentName'] ?> </h2>
<p>Manage your profile here</p>
</div>
<div class="action-buttons">
<a href="userUpdate.php" class="btn btn-green btn-lg">Update Profile</a>
<a href="userDelete.php" class="btn btn-red btn-lg">Delete Account</a>
</div>
<div class="text-center mt-3">
<a href="logout.php" class="btn btn-secondary btn-lg">Logout</a>
</div>
</div>
<?php
}else{
header('location:login.php');
}
?>