?? register.aspx
字號:
<% @ Import Namespace="Packaging" %>
<% @ Import Namespace="System.Data" %>
<% @ Register TagPrefix="pb" TagName="Header" Src="header.ascx" %>
<% @ Register TagPrefix="pb" TagName="Footer" Src="footer.ascx" %>
<% @ Register TagPrefix="pb" TagName="Login" Src="login.ascx" %>
<% @ Register TagPrefix="pb" TagName="Major" Src="major.ascx" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>Dot.Net社區注冊系統</title>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<link rel="stylesheet" type="text/css" href="pack.css">
</head>
<body topmargin="6" leftmargin="0" bgcolor="#eaeaea">
<form runat="server" id="myform">
<pb:Header id="Header" runat="server" />
<div align="center">
<table border="0" cellpadding="0" cellspacing="1" bgColor="#006699" width="750" height="125">
<tr><td width="25%" valign="top" background="images/bd.gif" rowspan="2" height="125">
<pb:Major id="major" runat="server" /></td>
<td width="75%" valign="top" bgcolor="#FFFFFF" height="228" background="images/ldb.gif">
<br><asp:Label id="success" style="color:red" runat="server" />
<asp:Panel id="step1" runat="server" visible="true">
<table border="0" cellpadding="0" cellspacing="1" width="90%" bgcolor="#006699">
<tr bgcolor="#99CC00">
<td width="100%" colspan="2" height=25> <font color=yellow><b>注冊第一步:</b></font></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="30%" align="center">請輸入你想申請的賬號:</td>
<td width="70%"> <asp:TextBox id="useraccount" runat="server" size=20 maxlength=20 /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="right"><asp:Label id="error1" runat="server" style="color:red" Visible="true" />
<asp:Button text="下一步" id="button1" onClick="CheckUsername"
runat="server" /></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="100%" colspan="2"><br>
<p><font color=green><b>賬號要求:</b></font>
<ul>
<li>本系統不區分大小寫字母;</li>
</ul><br>
<p><font color=green><b>社區公約:</b></font>
<ul> <li>請自覺遵守:愛國、守法、自律、真實、文明的原則;</li>
<li>尊重網上道德,遵守<a href=newsshow.aspx?id=7>《全國人大常委會關于維護互聯網安全的決定》</a>及中華人民共和國其他各項有關法律法規;</li>
<li>嚴禁發表危害國家安全、破壞民族團結、破壞國家宗教政策、破壞社會穩定、侮辱、誹謗、教唆、淫穢等內容的作品;</li>
<li>承擔一切因您的行為而直接或間接導致的民事或刑事法律責任;</li>
<li>本論壇的管理員有權保留或刪除論壇中的任意內容;</li>
<li>你在本論壇發表的作品,Dot.Net在網站內免費轉載或引用。</li>
<li>論壇內所發表的文章,僅代表個人觀點,不代表本站觀點。</li>
</ul>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel id="step2" runat="server" visible="false">
<table border="0" cellpadding="0" cellspacing="1" width="90%" bgcolor="#006699">
<tr bgcolor="#99CC00">
<td width="100%" colspan="2" height=25> <font color=yellow><b>注冊第二步:</b></font></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="30%" align="center">* 姓名:</td>
<td width="70%"> <asp:TextBox id="username" runat="server" size=20 maxlength=20 /></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="30%" align="center">* 性別:</td>
<td width="70%"> <asp:RadioButtonList id="usergender" runat="server"
RepeatDirection="Horizontal"> <asp:ListItem>男</asp:ListItem> <asp:ListItem selected>女</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="30%" align="center">*請輸入新密碼:</td>
<td width="70%"> <asp:TextBox id="pass1" runat="server" textmode="password" size=20 maxlength=20 /></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="30%" align="center">*請再輸入一遍:</td>
<td width="70%"> <asp:TextBox id="pass2" runat="server" textmode="password" size=20 maxlength=20 /></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" align="right"><asp:Label id="error2" runat="server" style="color:red" Visible="true" />
<asp:Button text="下一步" id="button2" onClick="AddNew"
runat="server" /></td>
</tr>
<tr bgcolor="#CCFF99">
<td width="100%" colspan="2"><br>
<p><font color=green><b>注意事項:</b></font>
<ul> <li>姓名欄應填寫你的真實姓名;</li>
<li>請你使用安全的密碼,并注意保管。</li>
</ul>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel id="step3" runat="server" visible="false">
<table border="0" cellpadding="0" cellspacing="1" width="90%" bgcolor="#006699">
<tr>
<td width="100%" bgcolor="#99CC00" colspan="2" height=25> <font color=yellow><b>注冊成功!</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCFF99"><br>
<ul>
<li>你已經成為本社區的一員。Dot.Net社區的建設需要的你的支持和參與。</li>
<li>點『<a href="login.aspx">這里</a>』登陸,登陸后你可以完成個人資料的填寫。</li>
<li>當你的資料更改時,請及時更新你的資料。</li>
<li>謝謝!</li></ul></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCFF99" colspan="2"><br>
<p><font color=green><b>注意事項:</b></font>
<ul><li>你現在可以在本社區的論壇內發表文章;</li>
<li>目前,作品上傳,個人展示等功能,還僅限于內部的會員使用;</li>
<li>如果你是ASP.NET的愛好者,你可以給<a href=mailto:yourmail@com.net>管理員寫信</a>,我們可以給你一個個人展示的入口。</li>
</ul>
</td>
</tr>
</table>
</asp:Panel>
</td>
<tr><td width="75%" valign="bottom" bgcolor="#FFFFFF" height="80" align="right" background="images/ldb.gif">
<img border="0" src="images/pen.gif" width="400" height="80"><br> </td></tr>
</table>
</div>
<pb:Footer id="footer" runat="server" />
</form>
</body>
</html>
<script language="VB" runat="server">
Sub CheckUsername(Sender As Object, e As EventArgs)
If Useraccount.Text.Length>20 Or Useraccount.Text.length<2 Then
error1.text="你所輸入的賬號不符合下面的要求! "
error1.visible=true
Exit Sub
End If
Dim UserNew As UserDB=New UserDB()
If UserNew.IsExist(useraccount.Text)=0 Then
step1.Visible=False
step2.Visible=True
Else
error1.text="你輸入的賬號已存在!請換一個試試。"
End If
End Sub
Sub AddNew(Sender As Object, e As EventArgs)
If username.text.length<1 Or username.text.length>10 Then
error2.text="你沒有填寫姓名或者輸入的姓名太長;"
Exit Sub
End If
If pass1.Text=pass2.Text And pass1.Text<>"" Then
Dim UserNew As UserDB=New UserDB()
Dim NewInfo As UserInfo=New UserInfo()
NewInfo.UserAccount=useraccount.Text
NewInfo.UserPass=pass1.Text
NewInfo.UserName=username.Text
NewInfo.UserGender=usergender.selectedItem.Text
NewInfo.UserId=0
UserNew.AddUserInfo(NewInfo)
step2.Visible=False
step3.Visible=True
Else
error2.Text="兩次輸入的密碼不一致!"
End If
End Sub
</script>
<style>
td {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 10pt;
}
.whiteB {
color: white;
font-weight : bold;
}
input {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 10pt;
}
td.bar {
color: green; font-weight: bold;
}
a.whiteLink:link {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-weight : bold;
color : white;
text-decoration : none;
}
a.whiteLink:visited {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-weight : bold;
color : white;
text-decoration : none;
}
a.whiteLink:hover {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-weight : bold;
color : white;
text-decoration : none;
}
a.barLink:link {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #CCFF99;
text-decoration : none;
}
a.barLink:visited {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #CCFF99;
text-decoration : none;
}
a.barLink:hover {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : #CCFF99;
text-decoration : underline;
}
a.author:link {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : black;
text-decoration : none;
}
a.author:visited {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : black;
text-decoration : none;
}
a.author:hover {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
color : black;
text-decoration : underline;
}
</style>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -