<?php include 'en/admin/_adminheader.php'; ?>
<h2>Resources Page: Add an Article</h2>
<p>
	To add an article, you will need to upload the HTML file with
	the form below.  Please enter a title for the article as well.  If you do
	not enter a title, the name of the file will be used as the title.
</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>New Article Information</legend>
		<input type='hidden' name='what' value='articles' id='what' />
		<input type='hidden' name='do' value='doadd' id='do' />
		<div class='field'>
			<label for='title'>Title for Article</label>
			<input type='text' name='title' id='title' />
		</div>
		<div class='field'>
			<label for='file'>HTML File of Article</label>
			<input type='file' name='file' id='file' />
		</div>
		<div>
			<input type='button' value='Cancel' onClick='document.location="/admin/resources.php?what=articles"' />
			<input type='submit' value='Add Article' />
		</div>
	</fieldset>
</form>
