<?
	include('check_admin.php');
	$mId = $_SESSION['mId'];	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理者-新增公告</title>
<style>
.style1 {font-size: 13px; color: #FFFFFF; }
BODY {
	SCROLLBAR-FACE-COLOR: #D4D0C8;
	SCROLLBAR-HIGHLIGHT-COLOR: #D4D0C8;
	SCROLLBAR-SHADOW-COLOR: #999999;
	SCROLLBAR-3DLIGHT-COLOR: #FFFFFF;
	SCROLLBAR-ARROW-COLOR:  #000000;
	SCROLLBAR-TRACK-COLOR: #E3E3E3;
	SCROLLBAR-DARKSHADOW-COLOR: #666666;
	background-color: #000000;
	background-image: url(img/bg6.png);
	background-attachment: fixed;
}
a:link {
	color: white;
	text-decoration: none;
}
a:visited {
	color: white;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	color: #FFFFFF;
}
.style2 {
	font-size: 16px;
	font-weight: bold;
}
</style>
</head>
<script  language="JavaScript">
function check()
{
	if (document.forms[0].content.value == '')
	{
		alert('請輸入公告內容');
		return false;
	}
	else if(document.forms[0].title.value == '')
	{
		alert('請輸入公告標題');
		return false;
	}
	else
		return true;
}
</script>
<body leftmargin=0 topmargin=0 bgproperties="fixed" rightmargin=0  bottommargin=0 marginwidth=0 marginheight=0>
<center>
 <p>&nbsp;</p>
<p><a href="admin_link.htm" class="style2">管理者功能列表</a></p>
<form action = "notice_act.php" name = "notice_act" method = "post"  onSubmit="return check()">
 
  <table width="418" border="0" cellpadding="1" cellspacing="0" align="center" class="style1">
		<tr bgcolor="#210B23">
			<td colspan = "2" height="21"><div align = "center"><strong>
			公告發表
			</strong></div></td>
		</tr>
		<tr bgcolor="#2F1E2E">
			<td width="49" height="21" bgcolor="#3A143E">發表人</td>
			<td width="365" height="21" bgcolor="#3A143E"><div align = "left"><? echo $mId;?></div></td>
		</tr>
		<tr bgcolor="#5E4159">
			<td height="21">標題</td>
			<td height="21"><div align="left">
			  <input type = "text" size = "48"name = "title">
		    </div></td>
		</tr>
		<tr bgcolor="#8C7E7C">
			<td height="21">內容</td>
			<td height="21"><div align="left">
			  <textarea cols = "40" name = "content" rows = "12"></textarea>
		    </div></td>
		</tr>
		<tr bgcolor="#6D5963">
			<td colspan = "2" height="21"><div align = "center">
			  <input type = "hidden" value="<? echo $admin;?>" name="mId">
			<input type= "hidden" name = "mId" value = "<? echo $mId;?>">
			<input type = "submit" value = "張貼" >
			<input type = "reset" value = "重寫"></div></td>
		</tr>
</table>
</form>
</center>
</body>
</html>
