<?
	include('check_member.php');
	require_once('link.php');
	mysql_select_db($database,$connect);
	
	$mId = $_SESSION['mId'];
	$bName = $_GET['bName'];
?>
<!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; }
.style2 {font-size: 12px; color: #000000; }
.style3 {font-size: 12px; color: #FFFFFF; }
.style4 {font-size: 11px; color: #000000; }
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/bmnum.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;
}
--></style>
</head>
<script  language="JavaScript">
function check()
{
	if (document.forms[0].content.value == '')
	{
		alert('請輸入評論內容');
		return false;
	}
	else
		return true;
}
</script>
<body leftmargin=0 topmargin=0 bgproperties="fixed" rightmargin=0  bottommargin=0 marginwidth=0 marginheight=0>
<center>
<form action = "ba_edit_act.php" name = "band_article_act" method = "post" onSubmit="return check()">
  <p>&nbsp;</p>
  <table  border = "0" width="444" height="434" cellpadding="1" cellspacing="0" align="center" class="style1">
	<tr bgcolor="#392243">
		<td colspan = "3"><div align = "center"><? echo $bName;?></div></td>
	  </tr><tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#503356"><div align = "center">帳號</div></td><td width="0"></td>
		  <td bgcolor="#503356"><div align = "left"><? echo $mId;?></div></td>
		</tr><tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#6E4F70"><div align = "center">推薦</div></td><td width="0"></td>
			<td  bgcolor="#6E4F70"><div align = "left"><input type = "radio" name = "bLevel" value = "1">正推
          <input type="radio" name="bLevel" value = "0">反推</div></td>
		</tr><tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#8F7389"><div align = "center">標題</div></td><td width="0"></td>
		  <td  bgcolor="#8F7389"><div align = "left"><input type = "text" size = "57"name = "title"></div></td>
		</tr><tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#9E8999"><div align = "center">評論</div></td><td width="0"></td>
		  <td  bgcolor="#9E8999"><div align = "left"><textarea cols = "47" name = "content" rows = "14"></textarea></div></td>
		</tr><tr><td colspan = "3" height = "1"></td></tr>
		<tr bgcolor="#B1A6B1">
			<td colspan = "3"><div align = "center">
			<?
				$query1 ="SELECT MAX(`seq`) AS `seq` FROM `Article` WHERE `mId` = '$mId' GROUP BY `mId`";
				$result1 = mysql_query($query1,$connect);
				list($seq) = mysql_fetch_array($result1);
				$seq++;
			?>
			<input type = "hidden" value="<? echo $seq;?>" name="seq">
			<input type = "hidden" value="<? echo $mId;?>" name="mId">
			<input type = "hidden" value="<? echo $bName;?>" name="bName">
			<input type = "submit" value = "發表" >
		  <input type = "reset" value = "重寫"></div></td>
		</tr>
</table>

</form>
</center>
</body>
</html>
