-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails.php
72 lines (55 loc) · 2.24 KB
/
details.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
<?php
session_start();
if(isset($_SESSION['u_user']) & isset($_SESSION['u_token']) & isset($_SESSION['u_branch'])){
}
else{
header("Location: index.php?login=begin");
exit();
}
?>
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>details</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Montserrat:400,700'>
<link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<div class="info">
<h1>Choose an Event</h1>
</div>
</div>
<div class="form">
<div class="thumbnail"><img src="img/logo.png"/></div>
<?php
if($_SESSION['u_branch']=="AD"){
if(isset($_SESSION['temp'])) {
require 'includes/loadevents.inc.php';
echo "<form action='includes/chooseBranch.inc.php' method='POST'><button id='extra_button' type='submit' name='submit'>Change Branch</button></form>";
echo "<form action='events.php' method='POST'><button id='extra_button' type='submit' name='submit'>Add Events</button></form>";
echo "<form action='signup.php' method='POST'><button id='extra_button' type='submit' name='submit'>Add ADMIN</button></form>";
}
else{
require 'includes/loadbranches.inc.php';
echo "<form action='events.php' method='POST'><button id='extra_button' type='submit' name='submit'>Add Events</button></form>";
}
}else{
$_SESSION['temp']=$_SESSION['u_branch'];
require 'includes/loadevents.inc.php';
}
?>
<form action="includes/logout.inc.php" method="POST">
<button id='extra_button' type="submit" name="submit">Logout</button>
</form>
<!-- <p class="message">Not registered? <a href="#">Create an account</a></p>
<a href="events.php?show=true" style="text-decoration:none;"><button name="submit">Logout</button></a>-->
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>