-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathevents.php
94 lines (92 loc) · 2.71 KB
/
events.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
<?php
include_once("include.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>LANLords - Events</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.php">FTC Team 4977</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li>
<a href="index.php">Home</a>
</li>
<li class="">
<a href="media.html">Media</a>
</li>
<li class="active">
<a href="#">Events</a>
</li>
<li class="">
<a href="robots.html">Robots</a>
</li>
<li class="">
<a href="about-us.html">About Us</a>
</li>
<li class="">
<a href="https://github.com/FTCTeam4977/">Code</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<?php
$events = Event::getAll();
foreach($events as $event){?>
<div class="media">
<div class="media-body">
<h2 class="media-heading">
<?php echo $event->getValue(EVENT_DATA_TITLE)?>
<span class="label <?php
switch($event->getValue(EVENT_DATA_STATUS)){
case EVENT_STATUS_NEW:
$class = "label-info";
break;
case EVENT_STATUS_CURRENT:
$class = "label-success";
break;
default:
$class = "";
break;
}
echo $class;
?>"><?php echo $event->getStatus(EVENT_DATA_TITLE)?></span>
</h2>
<address>
<b><?php echo $event->getDate()?></b><br>
Starts: <i><?php echo $event->getValue(EVENT_DATA_START)?></i>
Ends: <i><?php echo $event->getValue(EVENT_DATA_END)?></i><br>
Location: <a target="_bank" href="https://maps.google.com/?q=<?php echo $event->getValue(EVENT_DATA_LOCATION)?>"><i><?php echo $event->getValue(EVENT_DATA_LOCATION)?></i></a>
</address>
<p class="lead"><?php echo $event->getValue(EVENT_DATA_INFO)?></p>
</div>
</div>
<?php } ?>
</div>
<div class="navbar navbar-inverse navbar-fixed-bottom">
<div class="navbar-inner">
<div class="container">
<p class="muted navbar-text">© LAN Lords 2013</p>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>