This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcome.php
119 lines (102 loc) · 4.31 KB
/
welcome.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
<?php
session_start();
include("connection.php");
include("functions.php");
$user_data = check_login($con);
?>
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>Jukebox | Welcome</title>
<link rel="shortcut icon" type="image/png" href="assets/favicon.png">
<link rel="stylesheet" href="/src/welcome.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&family=Work+Sans:ital,wght@0,100;0,200;0,400;0,500;0,600;1,100&display=swap" rel="stylesheet">
<script src="/src/welcome.js"></script>
<style>
body {
background-image: url('cdn/background.jpg');
background-repeat: no-repeat;
background-size: 100% 100%;
background-attachment: fixed;
font-family: "Roboto",sans-serif;
font-family: 'Work Sans', sans-serif;
}
</style>
</head>
<body>
<div class="banner">
<div class="navbar">
<div class="logo">
<a href="index.php"><img src="cdn/logo.png"></a>
</div>
<div class="dropdown">
<button class="dropbtn waving">
<?php
if($_SESSION['user_role'] === "ADMIN"){
echo 'ADMIN';
}elseif($_SESSION['user_role'] === "ORGANIZER"){
echo 'ORGANIZER';
}elseif($_SESSION['user_role'] === "USER"){
echo 'USER';
}else{
echo 'Internal Error';
die;
}
?>
MENU</button>
<div class="dropdown-content">
<?php
if($_SESSION['user_role'] === "ADMIN"){
echo '<a href="administration.php">User Catalog Tools</a>';
}elseif($_SESSION['user_role'] === "ORGANIZER"){
echo '<a href="organizer.php">Organizer Tools</a>';
}elseif($_SESSION['user_role'] === "USER"){
echo '<a href="concerts.php">Concerts</a>';
echo '<a href="favorites.php">Favorites</a>';
}else{
echo 'Internal Error';
die;
}
?>
<a href="mailto:admin@jukebox.com">Report a problem</a>
</div>
</div>
<div>
<button id="logoutBtn" type="button" class="logoutbtn" title="Sign out from <?php echo $_SESSION['uname'];?>">
<img src="assets/logout.png" alt="Logout">
</button>
</div>
<div>
<span> <img src="/assets/user.png" alt="User icon" class = "userico">
<p class="userinfo">
<?php
printf("%s %s (%s)",$_SESSION['last_name'],$_SESSION['first_name'], $_SESSION['user_role']);
?>
</p>
</span>
</div>
</div>
<div class="content">
<div>
<h1 class = "waving-text wlcmsg"> Welcome
<?php
echo $_SESSION['first_name']
?>
</h1>
</div>
<div>
<img src="assets/favicon.png" class="favi">
<h5 class = "favitext">© 2021 JUKEBOX</h5>
</div>
<div class="caption">
<h4>
-Live Aid 13/7/1985<br>
Queen performing 'Bohemian Rhapsody'
</h4>
</div>
</div>
</div>
</body>