-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalendar.php
39 lines (33 loc) · 950 Bytes
/
calendar.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
<?php
require('./inc/utilities.inc.php');
require_once('./inc/header.php');
require('../db.php');
require_once('./inc/db_functions/calendar-queries.php');
if($_GET['startMo']) {
$startMonth = $_GET['startMo'];
} else {
$startMonth = 0;
}
if($_GET['totalMos']) {
$totalMonthsToDisplay = $_GET['totalMos'];
} else {
$totalMonthsToDisplay = 6;
}
?>
<div class="container mtb">
<div class="calendarPadding">
<?php for($i = 0; $i < $totalMonthsToDisplay; $i++) { ?>
<div class="panel panel-default col-md-6 col-lg-4 calendar-month">
<div class="panel-heading">
<h3 class="panel-title">
<?php displayMonthTitle($startMonth + $i); ?>
</h3>
</div>
<div class="panel-body">
<?php displayOneMonthOfEvents($startMonth + $i); ?>
</div>
</div>
<?php } // end for loop?>
</div>
</div><!-- /container -->
<?php require_once('./inc/footer.php');