<?php include 'en/admin/_adminheader.php'; ?>
<h2>Prayer Requests Page: Edit a Prayer Letter</h2>
<p>
	You may specify a new title and/or for this prayer letter 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='prayerletter_info'>
		<legend>Prayer Letter Information</legend>
		<input type='hidden' name='what' value='prayerletters' id='what' />
		<input type='hidden' name='do' value='doedit' id='do' />
		<input type='hidden' name='which' value='<?php echo $this->data['letter']['id'] ?>' id='which' />
		<div class='field'>
			<label for='title'>Title</label>
			<input type='text' name='title' id='title' value='<?php echo $this->data['letter']->title ?>' />
		</div>
		<div class='field'>
			<label for='date'>Date</label>
			<input type='text' name='date' id='date' value='<?php echo $this->data['letter']->date ?>' />
		</div>
		<div class='field'>
			<label for='file'>HTML File</label>
			<input type='file' name='file' id='file' />
			<br />
			Current file: <?php echo $this->data['letter']->file ?>
		</div>
		<div>
			<input type='button' value='Cancel' onClick='document.location="/admin/prayerrequests.php?what=prayerletters"' />
			<input type='submit' value='Edit Prayer Letter' />
		</div>
	</fieldset>
</form>
