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:
parent
021a1cb1c3
commit
54056d5722
|
@ -52,6 +52,8 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
<label for="lot">Lot</label>
|
||||||
|
<input name="lot" id="lot" size="3" value="<?php echo isset($_GET['lot']) ? View::escape($_GET['lot']) : ''; ?>" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -48,6 +48,19 @@ $section_lot = View::escape(implode(', ',$section_lot));
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<?php
|
<?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')) {
|
if (userIsAllowed('Interments')) {
|
||||||
$notes = View::escape($this->interment->getNotes());
|
$notes = View::escape($this->interment->getNotes());
|
||||||
echo "<p>$notes</p>";
|
echo "<p>$notes</p>";
|
||||||
|
|
Loading…
Reference in New Issue