<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr><td class="nav"><a href="index.php?section=home">Home</a>&nbsp;&gt;&nbsp;<a href="index.php?section=manage_events">Manage Events</a>&nbsp;&gt;&nbsp;Edit Event</td></tr>
	<tr><td>
		<table cellpadding="0" cellspacing="3" border="0" width="450" align="center">
		<form action="index.php" method="post" enctype="multipart/form-data" name="events_edit">
		<input type="hidden" name="section" value="manage_events">
		<input type="hidden" name="action" value="save">
		<input type="hidden" name="evn_id" value="<?php echo $data["evn_id"]; ?>">
		<input type="hidden" name="ret_link" value="<?php echo $data["link"]; ?>">
		<tr><td class="body" valign="top" width="50%" align="right">Current Photo:</td>
		<td class="highlight"><?php
		if(empty($data["photo"]))
			echo "none";
		else
			admin_output_image($data["photo"],0,"photos");
		?></td>
		<?php
			while(list($key,$val) = each($GLOBALS["forms"][events_edit][labels])){
				if($GLOBALS["forms"][events_edit][names][$key] == "folder" || $GLOBALS["forms"][events_edit][names][$key] == "date" || $GLOBALS["forms"][events_edit][names][$key] == "title" || $GLOBALS["forms"][events_edit][names][$key] == "description" || $GLOBALS["forms"][events_edit][names][$key] == "brief"){
				?><tr><td class="body" colspan="2" align="center"><?php echo $val; ?></td></tr><?php
				?><tr><td colspan="2" class="highlight" align="center"><?php echo $GLOBALS["forms"][events_edit][elements][$key]; ?></td></tr><?php
				}//if
				else{
				?><tr><td class="body" align="right"><?php echo $val; ?></td><?php
				?><td class="highlight"><?php echo $GLOBALS["forms"][events_edit][elements][$key]; ?></td></tr><?php
				}//else
			}//while
		?>
		<tr><td colspan="2" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Back", "link" => $data["link"]) );
		echo "&nbsp;";
		admin_form_element( array ("type" => "button", "value" => "Update") );
		?></td></tr>
		</form>
		</table>
	</td></tr>
</table>