* @param IntermentList $this->intermentList
* @param GET sort
*/
$previousSort = isset($_GET['sort']) ? $_GET['sort'] : 'deceasedDate';
$url = new URL($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
?>
Add
";
}
?>
Interments
|
sort = $previousSort=='lastname' ? 'lastname desc' : 'lastname';
echo "Last Name";
?>
|
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 = '';
if (userIsAllowed('Interments')) {
$url = new URL(BASE_URL.'/interments/updateInterment.php');
$url->interment_id = $interment->getId();
$editButton = "
";
}
$last = View::escape($interment->getLastname());
$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 |
getURL()}\">$last |
$first |
$date |
$cemetery |
$section_lot |
";
}
?>
intermentList->getPaginator()) {
$pageNavigation = new Block('pageNavigation.inc',
array('pages'=>$this->intermentList->getPaginator()->getPages()));
echo $pageNavigation->render('html');
}
?>