forked from csc325/GCal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conflicts.php
executable file
·47 lines (38 loc) · 1.27 KB
/
conflicts.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
<?php
require_once 'global.php';
require_once 'header.php';
$eventIDs = array_keys($_GET, 'conflict');
$events = array();
if ($eventIDs) {
$events = get_events($eventIDs);
}
?>
<div class="body">
<div class="col large">
<h1 class="head info">
<a href="<?php echo ed(false); ?>detailView.php?eventID=<?php echo $_GET['eventID']; ?>">Your event</a> may conflict with the following:</h1>
<div class="sortby">
<span style="float: left;">
<?php
if (isset($_GET['w']) && $_GET['w'] != '') {
echo urldecode(stripslashes($_GET['w']));
} else {
$num_IDs = $events ? count($events) : 0;
echo "Showing $num_IDs events";
}
?>
</span>
Sort by:
<a href="<?php echo $self; ?>&sort=time">Time</a>
<a href="<?php echo $self; ?>&sort=category">Category</a>
<a href="<?php echo $self; ?>&sort=location">Location</a>
</div>
<?php
display_events_inter($events);
?>
</div>
<?php include 'sidebar.php'; ?>
</div>
<?php include 'footer.php'; ?>
</body>
</html>