<?	
	include('check_member.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/bg5.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].bName.value == '')
	{
		alert('請輸入樂團名稱');
		return false;
	}
	else
		return true;
}
</script>
<body leftmargin=0 topmargin=0 bgproperties="fixed" rightmargin=0  bottommargin=0 marginwidth=0 marginheight=0>
<div align = "right">
</div>
<center>
<form action = "upload_act.php" name = "upload" method = "post" onSubmit="return check()" enctype = "multipart/form-data">
  <p>&nbsp;</p>
  <p><a href = "share.php" class="style2">音樂分享</a> </p>
  <table width="345" height="126" border="0" align="center"  cellpadding="1" cellspacing="0" class="style1">
		<tr bgcolor="#3E2B31">
			<td height="24" colspan = "3"><div align = "center"><strong>音樂上傳</strong></div></td>
	  </tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#715259"><div align = "center">樂團名稱</div></td><td width="0"></td>
		  <td bgcolor="#715259"><div align = "left"><input type="text" size="38" name="bName"></div></td>
		</tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#AA917E"><div align = "center">曲名</div></td><td width="0"></td>
		  <td bgcolor="#AA917E"><div align = "left"><input type="text" size="38" name="song"></div></td>
		</tr><td colspan = "3" height = "1"></td></tr>
		<tr>
		  <td bgcolor="#93746B"><div align = "center">音樂</div></td><td width="0"></td>
			<td bgcolor="#93746B"><div align = "left">
			<input type = "hidden" name = "MAX_FILE_SIEZ" value = "2048000">
		  <input type="file" size="30" name="data[0]"></div></td>
		</tr><td colspan = "3" height = "1"></td></tr>
		<tr bgcolor="#673938" >
		  <td colspan = "3"><div align = "center">因為僅開放試聽，上傳的音樂請勿大於2MB</div></td>
	  </tr>
</table>
	<input type = "hidden" name = "mId" value = "<? $mId;?>">
	<input type = "submit" name = "submit" value = "新增">
	<input type = "reset" name = "reset" value = "重寫">
</form>
</center>
</body>
</html>
