<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=newsletter">Newsletter</a></td></tr>
	<tr><td>&nbsp;</td></tr>
	<tr><td><table cellpadding="2" cellspacing="2" border="0" align="center" width="400">
		<tr><td colspan="4" class="lined blue_bcg white_body padded" align="center">Send Newsletter</td></tr>
		<tr><td colspan="4" class="form_cell"><table cellpadding="0" cellspacing="3" align="center">
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="newsletter">
		<input type="hidden" name="action" value="send">
			<tr><td class="body">Forced Newsletter <small>(override user notifications settings)</small></td>
			<td align="right"><?php
			admin_form_element( array ("type" => "checkbox", "name" => "forced", "value" => $data["forced"], "ovalue" => 1) );
			?></td></tr>			
			<tr><td colspan="2" class="body">Subject</td></tr>
			<tr><td colspan="2" class="highlight"><?php
			admin_form_element( array ("type" => "input", "name" => "subject", "size" => 58, "value" => $data["subject"]) );
			?></td></tr>
			<tr><td colspan="2" class="body">Message</td></tr>
			<tr><td colspan="2" class="highlight"><?php
			admin_form_element( array ("type" => "textarea", "name" => "message", "rows" => 8, "cols" => 60, "value" => $data["message"]) );
			?></td></tr>
			<tr><td colspan="2" align="center"><?php
			admin_form_element( array ("type" => "button", "value" => "Send") );
			?></td></tr>
		</form>
		</table></td></tr>
		<tr><td colspan="4" class="lined blue_bcg white_body padded" align="center">Previous Newsletters</td></tr>
		<form action="index.php" method="post">
		<input type="hidden" name="section" value="newsletter">
		<input type="hidden" name="action" value="delete">
		<tr>
			<td class="list_header" align="center">
			<input type="checkbox" onclick="HS_TickAll('let_id[]',this.form)" name="tick_tracker">
			</td>
			<td class="list_header" align="center">Date</td>
			<td class="list_header" align="center">Subject</td>
			<td class="list_header" align="center">Action</td>
		</tr>
		<?php
	
			foreach($data["newsletters"] as $letter){
				?><tr>
					<td class="list_cell" align="center"><?php
					admin_form_element(array ("type" => "checkbox", "name" => "let_id[]", "ovalue" => $letter["let_id"]));
					?></td>
					<td class="list_cell"><?php echo $letter["date"]; ?></td>
					<td class="list_cell"><?php echo $letter["subject"]; ?></td>
					<td class="list_cell" align="center"><?php
					admin_output_image("buttons/but_view_small.gif",$letter["view"],0,"view");
					admin_output_image("buttons/but_delete_small.gif",$letter["delete"],0,"delete");
					?></td>
				</tr><?php
			}//foreach
	
		?>
		<tr><td colspan="4" align="center"><?php
		admin_form_element( array("type" => "button", "value" => "Delete") );
		?></td></tr>
		</form>
		</table>
	</td></tr>
</table>