<?php include 'en/admin/_adminheader.php'; ?>
<h2>Photos and Videos Page: Edit an Article</h2>
<p>
	You may specify a new name for this video or upload a new
	video to replace the current one.  You may also change
	the image file associated with this video.
</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/photosandvideos.php' method='post' enctype="multipart/form-data">
	<fieldset id='video_info'>
		<legend>Video Information</legend>
		<input type='hidden' name='what' value='videos' id='what' />
		<input type='hidden' name='do' value='doedit' id='do' />
		<input type='hidden' name='which' value='<?php echo $this->data['video']['id'] ?>' id='which' />
		<div class='field'>
			<label for='name'>Name</label>
			<input type='text' name='name' id='name' value='<?php echo $this->data['video']->name ?>' />
		</div>
		<div class='field'>
			<label for='imagefile'>Image file</label>
			<input type='file' name='imagefile' id='imagefile' />
			<br />
			Current file: <?php echo $this->data['video']->image ?>
		</div>
		<div class='field'>
			<label for='videofile'>Video file</label>
			<input type='file' name='videofile' id='videofile' />
			<br />
			Current file: <?php echo $this->data['video']->file ?>
		</div>
		<div>
			<input type='button' value='Cancel' onClick='document.location="/admin/photosandvideos.php?what=videos"' />
			<input type='submit' value='Edit Video' />
		</div>
	</fieldset>
</form>
