<!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/bg2.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;
}
.style6 {font-size: small}
.style7 {
	font-size: medium;
	font-weight: bold;
}
--></style>


</head>
<script  language="JavaScript">
function check()
{
	if (document.forms[0].mId.value == "")
	{
		alert('請輸入帳號');
		return false;
	}
	else if (document.forms[0].password.value == "")
	{
		alert('請輸入密碼');
		return false;
	}
	else if (document.forms[0].checkpass.value == "")
	{
		alert('請輸入確認密碼');
		return false;
	}
	else if (document.forms[0].checkpass.value != document.forms[0].pass.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 = "addmember_act.php" name = "addband" method = "post" onSubmit="return check()">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table  width="359" cellpadding="1" cellspacing="0" align="center" class="style1">
		<tr bgcolor="#1D142C">
			<td height="24" colspan = "3"><div align = "center" class="style7">會員申請</div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr>
			<td width="85" bgcolor="#722E53"><div align = "center" class="style6">會員帳號</div></td>
			<td width="0"></td>
			<td width="296" bgcolor="#722E53"><div align = "left" class="style6"><input type="text" size="40" name="mId"></div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr>
			<td bgcolor="#A5404C"><div align = "center" class="style6">輸入密碼</div></td>
			<td width="0"></td>
			<td bgcolor="#A5404C"><div align = "left" class="style6"><input type="password" size="40" name="pass"></div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr>
			<td bgcolor="#CE5959"><div align = "center" class="style6">確認密碼</div></td>
			<td width="0"></td>
			<td bgcolor="#CE5959"><div align = "left" class="style6"><input type="password" size="40" name="checkpass"></div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr>
			<td bgcolor="#D88A31"><div align = "center" class="style6">E-mail</div></td>
			<td width="0"></td>
			<td bgcolor="#D88A31"><div align = "left" class="style6"><input type = "text" name = "email" size = "40"></div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr>
			<td bgcolor="#C5A447"><div align = "center" class="style6">生日</div></td>
			<td width="0"></td>
			<td bgcolor="#C5A447"><div align = "left" class="style6">
			<select name = "year">
				<option  selected>請選擇年份</option>
					<? 
						$j = date("Y");
						for($year = 1970;$year<=$j;$year++)
    					{
            				echo "<option value = '".$year."'>".$year."</option>";
    					}
					?>　
			</select> 年
		<select name = "month">
			<option  selected>月份</option>
				<? 
					for($month = 1;$month<=12;$month++)
    				{
            			echo "<option value = '".$month."'>".$month."</option>";
    				}
				?>　
		</select> 月 
		<select name = "day">
			<option  selected>日期</option>
				<? 
					for($day = 1;$day<=31;$day++)
    				{
            			echo "<option value = '".$day."'>".$day."</option>";
    				}
				?>　
		</select> 日<br>
		</div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr>
			<td bgcolor="#A68035"><div align = "center" class="style6">性別</div></td>
			<td width="0"></td>
			<td bgcolor="#A68035"><div align = "left" class="style6"><input type = "radio" name = "gender" value = "male" checked>男
	          <input type = "radio" name = "gender" value = "female">女</div></td>
		</tr><tr><td colspan = "3" height = "1"></td>
		</tr>
		<tr bgcolor="#9C522B">
			<td colspan = "3"><div align = "center" class="style6">
				<input type = "submit" name = "submit" value = "新增">
				<input type = "reset" name = "reset" value = "重寫">
			</div></td>
		</tr>
	</table>
	
  <p>&nbsp;</p>
</form>
</center>
</body>
</html>

