* @param Cemetery $this->cemetery
*/
$addButton = '';
if (userIsAllowed('Sections')) {
$url = BASE_URL.'/sections/addSection.php?cemetery_id='.$this->cemetery->getId();
$addButton = "
";
}
$name = View::escape($this->cemetery->getName());
echo "
$name
$addButton Sections
";
include APPLICATION_HOME.'/blocks/html/serviceButtons.inc';
echo "
|
Code |
Name |
";
foreach ($this->cemetery->getSections() as $section) {
$editButton = '';
if (userIsAllowed('Sections')) {
$url = BASE_URL.'/sections/updateSection.php?section_id='.$section->getId();
$editButton = "
";
}
$code = View::escape($section->getCode());
$name = View::escape($section->getName());
echo "
$editButton |
$code |
$name |
|
";
}
echo "
";