<?PHP
include"../inc/var.php";
include "../inc/connect.php";
include $server_inc."/client_functions.php";
include $server_inc."/login_functions.php";

// START FORM HANDLER

if (isset($submit))
	{
	write_news($below_public, $news);
	}

// END FORM HANDLER

include $server_admin_inc."/header.php";

echo("
	<form action='".$PHP_SELF."' method='POST'>
	<input type='hidden' name='sid' value='".trim($sid)."'>
	<table width='725' cellpadding='2' cellspacing='0' border='0'>
		<tr>
			<td colspan='2' align='left' valign='top'><img src='".$http_images."/space.gif' width='15' height='1'><a href='".$http_admin."/index2.php?sid=".trim($sid)."'><img border='0' src='".$http_images."/menu_arrow_back.gif'><b>Go Back</b></a></td>
		</tr>
		<tr>
			<td colspan='2' align='left' valign='top'><hr color='#F0EFED'></td>
		</tr>
		<tr>
			<td width='1%' align='left' valign='top'><img src='".$http_images."/space.gif' width='15' height='1'></td>
			<td width='99%' align='left' valign='top'>
			<textarea name='news' rows='15' cols='80' ".$input_style.">".stripslashes(grab_news_admin($below_public))."</textarea>
			</td>
		</tr>
		<tr>
			<td colspan='2'><img src='".$http_images."/space.gif' width='1' height='4'></td>
		</tr>
		<tr>
			<td width='1%' align='left' valign='top'><img src='".$http_images."/space.gif' width='15' height='1'></td>
			<td width='99%' align='left' valign='top'><input ".$button_style." type='submit' name='submit' value='Update Client Area News &gt&gt'></td>
		</tr>
		<tr>
			<td colspan='2'><img src='".$http_images."/space.gif' width='1' height='15'></td>
		</tr>
	</table>
	</form>
	"); 
include $server_admin_inc."/footer.php";
mysql_close($dblink);
?>