<?php include 'en/admin/_adminheader.php'; ?>
<h2>Prayer Requests Page: Edit an E-mail Update</h2>
<p>
	You may specify a new title and/or for this e-mail update or upload a new
	file to replace the current one.
</p>
<p>
	Please note that all special characters (<>/!@#$%^&*(), for example) and spaces
	will be removed from the file name and replaced with underscores.
</p>
<form action='/admin/prayerrequests.php' method='post' enctype="multipart/form-data">
	<fieldset id='emailupdate_info'>
		<legend>E-mail Update Information</legend>
		<input type='hidden' name='what' value='emailupdates' id='what' />
		<input type='hidden' name='do' value='doedit' id='do' />
		<input type='hidden' name='which' value='<?php echo $this->data['update']['id'] ?>' id='which' />
		<div class='field'>
			<label for='title'>Title for E-mail Update</label>
			<input type='text' name='title' id='title' value='<?php echo $this->data['update']->title ?>' />
		</div>
		<div class='field'>
			<label for='date'>Date for E-mail Update</label>
			<input type='text' name='date' id='date' value='<?php echo $this->data['update']->date ?>' />
		</div>
		<div class='field'>
			<label for='file'>HTML File of E-mail Update</label>
			<input type='file' name='file' id='file' />
			<br />
			Current file: <?php echo $this->data['update']->file ?>
		</div>
		<div>
			<input type='button' value='Cancel' onClick='document.location="/admin/prayerrequests.php?what=emailupdates"' />
			<input type='submit' value='Edit E-mail Update' />
		</div>
	</fieldset>
</form>
