* @param IntermentList $this->intermentList
* @param GET sort
*/
$previousSort = isset($_GET['sort']) ? $_GET['sort'] : 'deceasedDate';
$url = new URL($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
$url->purgeEmptyParameters();
$return_url = $url->__toString();
?>
return_url = $return_url;
echo "
";
}
?>
Interments
|
sort = $previousSort=='lastname' ? 'lastname desc' : 'lastname';
echo "Last Name";
?>
|
M |
sort = $previousSort=='firstname' ? 'firstname desc' : 'firstname';
echo "First Name";
?>
|
sort = $previousSort=='deceasedDate' ? 'deceasedDate desc' : 'deceasedDate';
echo "Date of Death";
?>
|
Cemetery |
Section & Lot |
intermentList as $interment) {
$editButton = '';
$deleteButton = '';
if (userIsAllowed('Interments')) {
$editURL = new URL(BASE_URL.'/interments/updateInterment.php');
$editURL->interment_id = $interment->getId();
$editURL->return_url = $return_url;
$editButton = "
";
$url = new URL(BASE_URL.'/interments/deleteInterment.php');
$url->interment_id = $interment->getId();
$url->return_url = "http://$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]";
$deleteButton = "
";
}
$last = View::escape($interment->getLastname());
$middle = View::escape($interment->getMiddleInitial());
$first = View::escape($interment->getFirstname());
$date = $interment->getDeceasedDate('n/j/Y');
$cemetery = View::escape($interment->getCemetery());
$section_lot = array();
if ($interment->getSection()) {
$section_lot[] = $interment->getSection();
}
if ($interment->getLot()) {
$section_lot[] = $interment->getLot();
}
$section_lot = View::escape(implode(', ',$section_lot));
echo "
$editButton $deleteButton |
getURL()}\">$last |
$middle |
$first |
$date |
$cemetery |
$section_lot |
";
}
?>
intermentList->getPaginator()) {
$pageNavigation = new Block('pageNavigation.inc',
array('pages'=>$this->intermentList->getPaginator()->getPages()));
echo $pageNavigation->render('html');
}
include APPLICATION_HOME.'/blocks/html/serviceButtons.inc';
?>