<?php
	if($_SESSION['level'] < 8)
			{
			$_SESSION['error'] = "You have NO ACCESS to to add News!!<br>Only GM's and Dev's can add News!!";
			include('error.php');
			} else {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	        <tr>
	          <td class="sitemenu"><strong>Write News</strong></td>
	          </tr>
	        <tr>
	          <td class="sitemenu"><hr size="1" /></td>
	          </tr>
	        <tr>
	          <td align="left" valign="top" class="sitemenu"><form id="form1" name="form1" method="post" action="action.php?action=addnews">
			  <table width="100%" border="0" cellspacing="3" cellpadding="0">
	            <tr>
	              <td width="100%" align="center" valign="top" class="sitemenu"><strong><font color="red">
<?php
					echo $_SESSION['done']; 
					unset($_SESSION['done']);			
?>
				</font></strong></td>
	              </tr>
	            </table>
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	           
	              <tr>
	                <td colspan="3" class="sitemenu"><strong>Add News to Database</strong></td>
	                </tr>
	              <tr>
	                <td class="sitemenu">&nbsp;</td>
	                <td class="sitemenu">&nbsp;</td>
	                <td class="sitemenu">&nbsp;</td>
	                </tr>
	              <tr>
	                <td align="right" valign="top" class="sitemenu">Newsposter</td>
	                <td class="sitemenu">&nbsp;</td>
	                <td align="left" valign="top" class="sitemenu"><input name="newsposter" type="text" id="newstopic" size="30" value="<?php echo $_SESSION["username"]; ?>" readonly/></td>
	                </tr>
	              <tr>
	                <td align="right" valign="top" class="sitemenu">Newstopic</td>
	                <td class="sitemenu">&nbsp;</td>
	                <td align="left" valign="top" class="sitemenu"><input name="newstopic" type="text" id="newstopic" size="30" maxlength="25" /></td>
	                </tr>
	              <tr>
	                <td align="right" valign="top" class="sitemenu">Newstext</td>
	                <td class="sitemenu">&nbsp;</td>
	                <td align="left" valign="top" class="sitemenu"><textarea name="newstext" id="newstext" cols="70" rows="10"></textarea></td>
	                </tr>
	              <tr>
	                <td align="right" valign="top" class="sitemenu">&nbsp;</td>
	                <td class="sitemenu">&nbsp;</td>
	                <td align="left" valign="top" class="sitemenu"><input type="submit" name="button" id="button" value="Post News" /></td>
	                </tr>
	              <tr>
	                <td align="right" valign="top" class="sitemenu">&nbsp;</td>
	                <td class="sitemenu">&nbsp;</td>
	                <td align="left" valign="top" class="sitemenu">&nbsp;</td>
	                </tr>
	              </table>
	            </form></td>
	          </tr>
          </table>
<?php
}
?>