<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=news">Internal News</a></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="400">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="news">
	<input type="hidden" name="action" value="">		
		<tr><td colspan="4" class="lined blue_bcg white_body padded" align="center">Active News</td></tr>		
		<tr><td colspan="4" class="form_cell" align="center"><?php
		admin_form_element( array ("type" => "button", "value" => "Add News", "link" => "index.php?section=news&action=edit") );
		?></td></tr>
		<tr>
			<td class="list_header" align="center">
			<input type="checkbox" onclick="HS_TickAll('ent_id[]',this.form)" name="tick_tracker">
			</td>
			<td class="list_header" align="center">Date</td>
			<td class="list_header" align="center">Title</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
	
			foreach($data["news"][active] as $entry){
				?><tr>
					<td class="list_cell" align="center"><?php
					admin_form_element(array ("type" => "checkbox", "name" => "ent_id[]", "ovalue" => $entry["ent_id"]));
					?></td>
					<td class="list_cell"><?php echo $entry["date"]; ?></td>
					<td class="list_cell"><?php echo $entry["title"]; ?></td>
					<td class="list_cell" align="center"><?php
					admin_output_image("buttons/but_edit_small.gif",$entry["edit"],0,"edit");
					admin_output_image("buttons/but_ban_small.gif",$entry["deactivate"],0,"deactivate");
					admin_output_image("buttons/but_delete_small.gif",$entry["delete"],0,"delete");
					?></td>
				</tr><?php
			}//foreach
	
		?>
		<tr><td colspan="4" align="center"><?php
		admin_form_element( array("type" => "button", "value" => "Deactivate", "bsubmit" => "this.form.action.value='deactivate'") );
		echo "&nbsp;";
		admin_form_element( array("type" => "button", "value" => "Delete", "bsubmit" => "this.form.action.value='delete'") );
		?></td></tr>
	</form>
	</table>
	</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="400">
	<form action="index.php" method="post">
	<input type="hidden" name="section" value="news">
	<input type="hidden" name="action" value="">
		<tr><td colspan="4" class="lined blue_bcg white_body padded" align="center">Inactive News</td></tr>		
		<tr>
			<td class="list_header" align="center">
			<input type="checkbox" onclick="HS_TickAll('ent_id[]',this.form)" name="tick_tracker">
			</td>
			<td class="list_header" align="center">Date</td>
			<td class="list_header" align="center">Title</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
	
			foreach($data["news"][inactive] as $entry){
				?><tr>
					<td class="list_cell" align="center"><?php
					admin_form_element(array ("type" => "checkbox", "name" => "ent_id[]", "ovalue" => $entry["ent_id"]));
					?></td>
					<td class="list_cell"><?php echo $entry["date"]; ?></td>
					<td class="list_cell"><?php echo $entry["title"]; ?></td>
					<td class="list_cell" align="center"><?php
					admin_output_image("buttons/but_edit_small.gif",$entry["edit"],0,"edit");
					admin_output_image("buttons/but_unban_small.gif",$entry["activate"],0,"activate");
					admin_output_image("buttons/but_delete_small.gif",$entry["delete"],0,"delete");
					?></td>
				</tr><?php
			}//foreach
	
		?>
		<tr><td colspan="4" align="center"><?php
		admin_form_element( array("type" => "button", "value" => "Activate", "bsubmit" => "this.form.action.value='activate'") );
		echo "&nbsp;";
		admin_form_element( array("type" => "button", "value" => "Delete", "bsubmit" => "this.form.action.value='delete'") );
		?></td></tr>
	</form>
	</table>
	</td></tr>
</table>