2010-01-04 20:54:01 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2010 City of Bloomington, Indiana
|
2011-06-14 13:29:37 +00:00
|
|
|
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
|
2010-01-04 20:54:01 +00:00
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
* @param GET interment_id
|
|
|
|
*/
|
|
|
|
try {
|
|
|
|
if (!isset($_GET['interment_id']) || !$_GET['interment_id']) {
|
|
|
|
throw new Exception('interments/unknownInterment');
|
|
|
|
}
|
|
|
|
$interment = new Interment($_GET['interment_id']);
|
|
|
|
}
|
|
|
|
catch (Exception $e) {
|
|
|
|
$_SESSION['errorMessages'][] = $e;
|
|
|
|
header('Location: '.BASE_URL.'/interments');
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
$template = new Template('full-width');
|
|
|
|
$template->blocks[] = new Block('interments/maps.inc',array('interment'=>$interment));
|
|
|
|
echo $template->render();
|