forked from COP-4710/Event_Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRSOdetails.php
More file actions
63 lines (59 loc) · 1.26 KB
/
RSOdetails.php
File metadata and controls
63 lines (59 loc) · 1.26 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
<?php
session_start();
include("config.php");
$sql = "SELECT username FROM personalInfo WHERE userid = {$_SESSION['userid_admin']}";
$result = $db->query($sql);
$row = $result->fetch_assoc();
$admin = $row['username'];
?>
<!DOCTYPE html>
<html lang =\"en\">
<head>
<title>
RSO Details
</title>
<style>
section {
width: 100%;
height: 100vh;
background: url(bg.jpg);
background-size: cover;
}
section .window {
color: white;
margin: auto;
padding: 30px;
text-align: center;
width: 500px;
height: 500px;
background-color: rgba(0,0,0,0.7);
}
</style>
</head>
<body>
<section>
<div class='window'>
<h2>
<?php echo $_SESSION["name"]; ?>
</h2>
<h2>
University: <?php echo $_SESSION['university']; ?>
</h2>
<p>Organization administrator admin: <?php echo $admin; ?> </p>
<p>Email: <?php echo $_SESSION['email']; ?>
<p>
<?php echo $_SESSION["description"]; ?>
</p></br>
<?php if( $_SESSION['userid'] == $_SESSION['userid_admin'] && $_SESSION["active"] == 1)
{
echo "<form action='RSOform.php' method='post'>
<button name='createEvent' type='submit'>Create RSO Event</button>
</form>";
} ?>
<form action='leaveRSO.php' method='post'>
<button>Leave RSO</button>
</form>
</div>
</section>
</body>
</html>