<?php include 'en/admin/_adminheader.php'; ?>
<h2>Resources Page: Edit a Book Category</h2>
<form action='/admin/resources.php' method='post' enctype="multipart/form-data">
	<fieldset id='cat_info'>
		<legend>Book Category Information</legend>
		<input type='hidden' name='what' value='books' id='what' />
		<input type='hidden' name='do' value='doeditcat' id='do' />
		<input type='hidden' name='which' value='<?php echo $this->data['category']['id'] ?>' id='which' />
		<div class='field'>
			<label for='name'>Name of category</label>
			<input type='text' name='name' id='name' value='<?php echo $this->data['category']->name ?>'/>
		</div>
		<div>
			<input type='button' value='Cancel' onClick='document.location="/admin/resources.php?what=books"' />
			<input type='submit' value='Edit Book Category' />
		</div>
	</fieldset>
</form>
