Added button on the interment view to show all interments for a given Lot

git-svn-id: https://rosehill.googlecode.com/svn/trunk@66 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
inghamn 2010-01-29 19:13:21 +00:00
parent 021a1cb1c3
commit 54056d5722
2 changed files with 15 additions and 0 deletions

View File

@ -52,6 +52,8 @@
}
?>
</select>
<label for="lot">Lot</label>
<input name="lot" id="lot" size="3" value="<?php echo isset($_GET['lot']) ? View::escape($_GET['lot']) : ''; ?>" />
</td>
</tr>
</table>

View File

@ -48,6 +48,19 @@ $section_lot = View::escape(implode(', ',$section_lot));
</tr>
</table>
<?php
if ($this->interment->getLot()) {
$url = new URL(BASE_URL.'/interments');
$url->cemetery_id = $this->interment->getCemetery_id();
$url->section_id = $this->interment->getSection_id();
$url->lot = $this->interment->getLot();
echo "
<div>
<button type=\"button\" onclick=\"document.location.href='$url';\">
View All Interments for this Lot
</button>
</div>
";
}
if (userIsAllowed('Interments')) {
$notes = View::escape($this->interment->getNotes());
echo "<p>$notes</p>";