<?php include 'en/admin/_adminheader.php'; ?>
<h2>Resources Page: Edit an Article</h2>
<p>
	You may specify a new title for this article 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/resources.php' method='post' enctype="multipart/form-data">
	<fieldset id='article_info'>
		<legend>Article Information</legend>
		<input type='hidden' name='what' value='articles' id='what' />
		<input type='hidden' name='do' value='doedit' id='do' />
		<input type='hidden' name='which' value='<?php echo $this->data['article']['id'] ?>' id='which' />
		<div class='field'>
			<label for='title'>Title for Article</label>
			<input type='text' name='title' id='title' value='<?php echo $this->data['article']->title ?>' />
		</div>
		<div class='field'>
			<label for='file'>HTML File of Article</label>
			<input type='file' name='file' id='file' />
			<br />
			Current file: <?php echo $this->data['article']->link ?>
		</div>
		<div>
			<input type='button' value='Cancel' onClick='document.location="/admin/resources.php?what=articles"' />
			<input type='submit' value='Edit Article' />
		</div>
	</fieldset>
</form>
