2010-01-04 15:47:15 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright 2009 City of Bloomington, Indiana
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
|
|
|
|
* @author Cliff Ingham <inghamn@bloomington.in.gov>
|
|
|
|
* @param Section $this->section
|
|
|
|
*/
|
|
|
|
?>
|
2010-01-06 18:10:10 +00:00
|
|
|
<h2>Update Section</h2>
|
2010-01-04 19:44:12 +00:00
|
|
|
<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" enctype="multipart/form-data">
|
2010-01-04 15:47:15 +00:00
|
|
|
<fieldset><legend>Section Info</legend>
|
|
|
|
<input name="section_id" type="hidden" value="<?php echo $this->section->getId(); ?>" />
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<tr><td><label for="code" class="required">Code</label></td>
|
|
|
|
<td><input name="code" id="code" value="<?php echo View::escape($this->section->getCode()); ?>" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr><td><label for="name">Name</label></td>
|
|
|
|
<td><input name="name" id="name" value="<?php echo View::escape($this->section->getName()); ?>" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<button type="submit" class="submit">Submit</button>
|
|
|
|
<button type="button" class="cancel"
|
|
|
|
onclick="document.location.href='<?php echo $this->section->getCemetery()->getURL(); ?>';">
|
|
|
|
Cancel
|
|
|
|
</button>
|
|
|
|
</fieldset>
|
2010-01-04 19:44:12 +00:00
|
|
|
|
|
|
|
<fieldset><legend>Maps</legend>
|
|
|
|
<div>
|
|
|
|
<label for="highlight_map">Highlight Map</lable>
|
|
|
|
<input type="file" name="highlight_map" id="highlight_map" />
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$highlight = $this->section->getMap('highlight');
|
|
|
|
if ($highlight) {
|
|
|
|
echo "<div><img src=\"$highlight\" /></div>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div>
|
|
|
|
<label for="zoom_map">Zoomed Map</lable>
|
|
|
|
<input type="file" name="zoom_map" id="zoom_map" />
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
$zoom = $this->section->getMap('zoom');
|
|
|
|
if ($zoom) {
|
|
|
|
echo "<div><img src=\"$zoom\" /></div>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</fieldset>
|
2010-01-04 15:47:15 +00:00
|
|
|
</form>
|