-
Notifications
You must be signed in to change notification settings - Fork 0
/
event-home-2.php
66 lines (56 loc) · 1.62 KB
/
event-home-2.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
<?php include "classes.php" ?>
<?php
$eventList = Event::loadall();
?>
<!DOCTYPE html>
<html lang="en">
<?php include "head.php" ?>
<body>
<!-- Navigation -->
<?php include "navbar.php" ?>
<!-- Page Content -->
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<h1 class="mt-4 mb-3">Events
<small>Subheading</small>
</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.php">Home</a>
</li>
<li class="breadcrumb-item active">Events</li>
</ol>
<?php
if(!empty($eventList)){
foreach ($eventList as $event){
?>
<!-- Project One -->
<div class="row">
<div class="col-md-7">
<a href="#">
<img class="img-fluid rounded mb-3 mb-md-0" src="<?php echo $event->getImgUrl() ?>" alt="">
</a>
</div>
<div class="col-md-5">
<h3><?php echo $event->getName() ?></h3>
<b><?php echo $event->getLocation() ?></b>
<p><?php echo $event->getDescription() ?></p>
<a class="btn btn-primary" href="event.php?id=<?php echo $event->getId() ?>">View Event
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
<!-- /.row -->
<hr>
<?php
}
}
?>
</div>
<!-- /.container -->
<!-- Footer -->
<?php include "footer.php" ?>
<!-- Bootstrap core JavaScript -->
<?php include "scripts.php" ?>
</body>
</html>