?? register.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<% request.setCharacterEncoding("gb2312"); %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>歡迎來到樂趣工作室!</title>
<SCRIPT language=JavaScript src="../js/JsInclude.js"></SCRIPT>
</head>
<script language="javascript">
function sub()
{
if(document.form1.id.value=="")
{
alert("請輸入用戶ID!");
document.form1.id.focus();
return;
}
if(document.form1.nickname.value=="")
{
alert("請輸入昵稱!");
document.form1.nickname.focus();
return;
}
if(document.form1.pwd.value=="")
{
alert("請輸入密碼!");
document.form1.pwd.focus();
return;
}
if(document.form1.pwd.value!=document.form1.configpwd.value)
{
alert("輸入的用戶密碼和密碼確認不一致,請重新輸入!");
document.form1.pwd.focus();
return;
}
if(document.form1.email.value=="")
{
alert("請輸入您的電子郵箱!");
document.form1.email.focus();
return;
}
if(!isEmail(document.form1.email.value))
{
alert("電子郵箱格式不正確!");
document.form1.email.focus();
return;
}
if(document.form1.year.value=="")
{
alert("請輸入出生年月!");
document.form1.year.focus();
return;
}
if(!isInteger(document.form1.year.value))
{
alert("出生年月日只能是數字!");
document.form1.year.focus();
return;
}
document.form1.birthday.value=document.form1.year.value+"-" +document.form1.month.value+"="+document.form1.days.value;
document.form1.action="reg.jsp";
document.form1.submit();
}
</script>
<body leftmargin="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="760" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="150"> </td>
<td width="500"> <div align="center"><img src="images/index_top1.gif" alt="2" width="578" height="184"></div></td>
<td width="110"><table width="110" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" valign="middle"> <div align="center"><font size="2">設為首頁
</font></div></td>
</tr>
<tr>
<td height="20" valign="middle"> <div align="center"><font size="2">設為首頁
</font></div></td>
</tr>
<tr>
<td height="20" valign="middle"> <div align="center"><font size="2">設為首頁
</font></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="8"><img src="images/tmtp.gif" width="2" height="2"></td>
</tr>
<tr>
<td height="22" valign="middle" bgcolor="#0000FF"> <div align="center"><font size="2">首頁
| 數碼商城 | 筆記本電腦 | 硬件商城 | 辦公設備 | 通信產品 | 音像圖書 | 鮮花禮品 | 保健品 | 軟件游戲 </font></div></td>
</tr>
<tr>
<td height="17" bgcolor="#000099"> </td>
</tr>
<tr>
<td height="5"> </td>
</tr>
<tr>
<td height="20" valign="top"><font size="2">※您現在的位置:首頁--》用戶注冊 </font></td>
</tr>
<form name="form1" method="post">
<input type="hidden" name="birthday">
<tr>
<td height="10" valign="top"><table width="760" border="1" cellpadding="0" cellspacing="0" bordercolor="#CD9501" bordercolordark="#FFFFFF">
<tr>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="120" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">用戶ID:</font></div></td>
<td width="240" height="30" bgcolor="#3399FF"><font size="2">
<input type="text" name="id">
</font></td>
<td width="220" height="30" bgcolor="#3399FF"><div align="center"><font size="2">只能是"數字"、"字母"和下劃線"_"</font></div></td>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
</tr>
<tr bgcolor="#FFFBEC">
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="120" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">昵稱:</font></div></td>
<td width="240" height="30" bgcolor="#3399FF"><font size="2">
<input type="text" name="nickname">
</font></td>
<td width="220" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
</tr>
<tr bgcolor="#FFFBEC">
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="120" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">用戶密碼:</font></div></td>
<td width="240" height="30" bgcolor="#3399FF"><font size="2">
<input type="password" name="pwd">
</font></td>
<td width="220" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
</tr>
<tr bgcolor="#FFFBEC">
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="120" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">密碼確認:</font></div></td>
<td width="240" height="30" bgcolor="#3399FF"><font size="2">
<input type="password" name="configpwd">
</font></td>
<td width="220" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
</tr>
<tr bgcolor="#FFFBEC">
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="120" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">郵件地址:</font></div></td>
<td width="240" height="30" bgcolor="#3399FF"><font size="2">
<input type="text" name="email">
</font></td>
<td width="220" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
</tr>
<tr bgcolor="#FFFBEC">
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
<td width="120" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">出生年月日:</font></div></td>
<td width="240" height="30" bgcolor="#3399FF"><font size="2">
<input name="year" type="text" size="4">
年
<select name="month">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
月
<select name="days">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
日 </font> </td>
<td width="220" height="30" bgcolor="#3399FF">
<div align="center"><font size="2">
<input type="button" name="Submit" onClick="sub()" value="提交">
</font></div></td>
<td width="80" height="30" bgcolor="#3399FF"><font size="2"> </font></td>
</tr>
</table></td>
</tr>
</form>
<tr>
<td height="10"> </td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#FFCC00">
<td width="760" height="20" bgcolor="#0000FF"><font size="2"> >>
合作伙伴</font></td>
</tr>
<tr bgcolor="#FFFBEC">
<td height="60"><table width="750" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#0099FF"><div align="center"><img src="images/shop.gif" width="88" height="31"></div></td>
<td bgcolor="#0099FF"><div align="center"><img src="images/shop.gif" width="88" height="31"></div></td>
<td bgcolor="#0099FF"><div align="center"><img src="images/shop.gif" width="88" height="31"></div></td>
<td bgcolor="#0099FF"><div align="center"><img src="images/shop.gif" width="88" height="31"></div></td>
<td bgcolor="#0099FF"><div align="center"><img src="images/shop.gif" width="88" height="31"></div></td>
<td bgcolor="#0099FF"><div align="center"><img src="images/shop.gif" width="88" height="31"></div></td>
</tr>
<tr>
<td bgcolor="#0099FF"><div align="center"></div></td>
<td bgcolor="#0099FF"><div align="center"></div></td>
<td bgcolor="#0099FF"><div align="center"></div></td>
<td bgcolor="#0099FF"><div align="center"></div></td>
<td bgcolor="#0099FF"><div align="center"></div></td>
<td bgcolor="#0099FF"><div align="center"></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"><hr size="1"></td>
</tr>
<tr>
<td height="10"><div align="center"><font size="2">公司簡介 | 公司簡介 | 公司簡介 | 公司簡介
| 公司簡介 | 公司簡介 | 公司簡介 | 公司簡介 </font></div></td>
</tr>
<tr>
<td height="30"> <div align="center"></div></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -