<?php
// LEAVE THIS STUFF AT THE TOP ALONE ..........................
/**
* An example of integrating a quick table of upcoming occasions into a
* Frequent Event page
*
* @package CalendarSolution
*/
/**
* Obtain the Calendar Solution's settings and autoload function
*
* @internal Uses dirname(__FILE__) because "./" can be stripped by PHP's
* safety settings and __DIR__ was introduced in PHP 5.3.
*/
require dirname(__FILE__) . '/../include/calendar_solution_settings.php';
/*
* Instantiate the quick table class.
*/
try {
$calendar = new CalendarSolution_List_QuickTable;
} catch (Exception $e) {
die('EXCEPTION: ' . $e->getMessage());
}
// BEGIN YOUR PAGE SPECIFIC LAYOUT BELOW HERE ..................
?>
<html>
<head>
<title>Calendar Solution Example: Quick Table format for Frequent Event pages</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
<?php echo $calendar->get_css(); ?>
</style>
</head>
<body>
<?php
/*
* Display the list.
*/
try {
echo $calendar->get_rendering();
} catch (Exception $e) {
die('EXCEPTION: ' . $e->getMessage());
}
?>
</body>
</html>