-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshow-events.php
63 lines (57 loc) · 1.22 KB
/
show-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
<?php
require 'includes/functions/events.php';
require_once '../mHclibrary/header.php';
$lib = $_GET["lib"];
$et = $_GET["et"];
if ($et == "All"){
$et = "";
}
$count = 0;
$start_date = date("m/d/Y");
$xml = simplexml_load_file(getEvancedXML("All",1,"exml",7,$et,"All",$start_date));
?>
<div id="topbar">
<div id="title">
Classes & Events</div>
<div id="leftnav">
<a href="index.php">
<img alt="Howard County Library System mobile home" src="images/home.png"/>
</a>
</div>
<div id="rightnav">
<a href="event-category.php?branch=<?php echo$lib?>">Back</a>
</div>
</div>
<div id="content">
<span class="graytitle"><?php echo$lib; ?> branch</span>
<ul class="pageitem">
<?php
foreach ($xml->item as $item){
if ($item->library == $lib){
?>
<li class="menu">
<a href="show-events.html.php?lib=<?php echo$lib;?>&title=<?php echo $item->title;?>">
<span class="name"><?php echo $item->title;?></span>
<span class="arrow"></span>
</a>
</li>
<?php
}
$count ++;
}
if ($count == 0){
?>
<li class="textbox">
No Events found.
</li>
<?php }else if ($count/2 == 0 && $count == 0){
?>
<li class="textbox">
No Events found.
</li>
<?php }
?>
</ul>
</div>
<?php require_once '../mHclibrary/footer.php';?>
</html>