2009-12-18 14:28:25 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2009 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
|
2009-12-18 14:28:25 +00:00
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
*/
|
|
|
|
?>
|
|
|
|
<div class="interfaceBox">
|
2010-01-06 18:10:10 +00:00
|
|
|
<h2>
|
2009-12-18 14:28:25 +00:00
|
|
|
<?php
|
|
|
|
if (userIsAllowed('Cemeteries')) {
|
|
|
|
echo "
|
|
|
|
<button type=\"button\" class=\"add\" onclick=\"document.location.href='".BASE_URL."/cemeteries/addCemetery.php';\">
|
|
|
|
Add
|
|
|
|
</button>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
Cemeteries
|
2010-01-06 18:10:10 +00:00
|
|
|
</h2>
|
2009-12-18 14:28:25 +00:00
|
|
|
<ul><?php
|
|
|
|
foreach ($this->cemeteryList as $cemetery) {
|
|
|
|
$editButton = '';
|
|
|
|
if (userIsAllowed('Cemeteries')) {
|
|
|
|
$url = new URL(BASE_URL.'/cemeteries/updateCemetery.php');
|
|
|
|
$url->cemetery_id = $cemetery->getId();
|
|
|
|
$editButton = "
|
|
|
|
<button type=\"button\" class=\"edit\" onclick=\"document.location.href='$url';\">
|
|
|
|
Edit
|
|
|
|
</button>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
$name = View::escape($cemetery->getName());
|
2010-01-04 15:47:15 +00:00
|
|
|
echo "
|
|
|
|
<li>$editButton
|
|
|
|
<a href=\"{$cemetery->getURL()}\">$name</a>
|
|
|
|
</li>
|
|
|
|
";
|
2009-12-18 14:28:25 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
2010-01-08 20:42:52 +00:00
|
|
|
</div>
|
|
|
|
<?php include APPLICATION_HOME.'/blocks/html/serviceButtons.inc'; ?>
|