📄 reg.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="reg.ascx.cs" Inherits="BbsNet.Include.reg" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<script language="javascript">
function CheckFeedback() {
var ftxname=document.getElementById("Reg1_username");
var ftxpass=document.getElementById("Reg1_password");
var ftxpass2=document.getElementById("Reg1_password1");
var ftxemail=document.getElementById("Reg1_useremail");
var ftxquestion=document.getElementById("Reg1_question");
var ftxanswer=document.getElementById("Reg1_txanswer");
if(!chkNull(ftxname.value)) {
alert("用户名不能为空!");
ftxname.focus();
return false;
}
if(!chkNull(ftxpass.value)) {
alert("密码不能为空!");
ftxpass.focus();
return false;
}
if(ftxpass.value.length<6) {
alert("密码长度至少6位!");
ftxpass.focus();
return false;
}
if(!chkNull(ftxpass2.value)) {
alert("密码不能为空!");
ftxpass2.focus();
return false;
}
if(ftxpass.value!=ftxpass2.value){
alert("两次输入密码不同!");
ftxpass2.focus();
return false;
}
if(!chkNull(ftxemail.value)) {
alert("邮箱不能为空!");
ftxemail.focus();
return false;
}
if(!isEmail(ftxemail.value)) {
alert("请正确填写邮箱!");
ftxemail.focus();
return false;
}
if(!chkNull(ftxquestion.value)) {
alert("密码问题不能为空!");
ftxquestion.focus();
return false;
}
if(!chkNull(ftxanswer.value)) {
alert("问题答案不能为空!");
ftxanswer.focus();
return false;
}
return true;
}
</script>
<table class="a2" id="Table3" borderColor="#90b1c7" cellSpacing="1" cellPadding="1" width="760"
align="center" border="0" runat="server">
<tr class="a1" height="25">
<td align="center"><B>继续注册前请先阅读论坛协议</B>
</td>
</tr>
<tr bgColor="#ffffff">
<td>欢迎您加入本论坛的交流和讨论,本论坛为公共论坛,为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:
<BR>
<BR>
一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息:
<BR>
<BR>
(一)煽动抗拒、破坏宪法和法律、行政法规实施的;<BR>
(二)煽动颠覆国家政权,推翻社会主义制度的;<BR>
(三)煽动分裂国家、破坏国家统一的;<BR>
(四)煽动民族仇恨、民族歧视,破坏民族团结的;<BR>
(五)捏造或者歪曲事实,散布谣言,扰乱社会秩序的;<BR>
(六)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的;<BR>
(七)公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的;<BR>
(八)损害国家机关信誉的;<BR>
(九)其他违反宪法和法律行政法规的;<BR>
(十)进行商业广告行为的。
<BR>
<BR>
二、互相尊重,对自己的言论和行为负责。
</td>
</tr>
<tr bgColor="#ffffff">
<td align="center"><asp:button id="Button2" runat="server" Text="我同意"></asp:button></td>
</tr>
</table>
<table class="a2" id="TABLE1" borderColor="#90b1c7" cellSpacing="1" cellPadding="1" width="760"
align="center" border="0" runat="server" Visible="false">
<tr class="a1" height="25">
<td colSpan="2">
<div align="center"><strong>新用户注册</strong></div>
</td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>用户名:</STRONG><BR>
注册用户名长度限制为0-12字节</td>
<td class="a6" width="60%">
<asp:textbox id="username" runat="server" CssClass="TextBox" MaxLength="12" Width="130px"></asp:textbox><FONT color="#ff0000"> *
</FONT>
</td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>密码(至少6位):</STRONG><BR>
请输入密码,区分大小写。<BR>
请不要使用任何类似 '*'、' ' 或 HTML 字符</td>
<td class="a6" width="60%">
<asp:textbox id="password" runat="server" CssClass="TextBox" Width="130px" TextMode="Password"></asp:textbox><FONT color="#ff0000"> *
</FONT>
</td>
</tr>
<tr>
<td class="a3" style="HEIGHT: 30px" width="40%" height="25"> <STRONG>重新输入密码:</STRONG></td>
<td class="a6" style="HEIGHT: 30px" width="60%">
<asp:textbox id="password1" runat="server" CssClass="TextBox" Width="130px" TextMode="Password"></asp:textbox><FONT color="#ff0000"> *
</FONT>
</td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>性别:</STRONG><BR>
请选择您的性别</td>
<td class="a6" width="60%"><asp:radiobuttonlist id="usermale" runat="server" Width="104px" RepeatDirection="Horizontal">
<asp:ListItem Value="男孩" Selected="True">男孩</asp:ListItem>
<asp:ListItem Value="女孩">女孩</asp:ListItem>
</asp:radiobuttonlist></td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>您的Email:[请正确输入邮箱地址,这样你能用到论坛所有功能]</STRONG></td>
<td class="a6" width="60%">
<asp:textbox id="useremail" runat="server" CssClass="TextBox"></asp:textbox><FONT color="#ff0000"> *
</FONT>
</td>
</tr>
<tr>
<td class="a3" style="HEIGHT: 31px" width="40%" height="25"> <STRONG>个人主页:</STRONG></td>
<td class="a6" style="HEIGHT: 31px" width="60%">
<asp:textbox id="userhomepage" runat="server" CssClass="TextBox">http://</asp:textbox></td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>QQ号码:</STRONG></td>
<td class="a6" width="60%">
<asp:textbox id="useroicq" runat="server" CssClass="TextBox"></asp:textbox></td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>密码问题:</STRONG></td>
<td class="a6" width="60%">
<asp:textbox id="question" runat="server" CssClass="TextBox"></asp:textbox> *</td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>问题答案:</STRONG></td>
<td class="a6" width="60%">
<asp:textbox id="txanswer" runat="server" CssClass="TextBox"></asp:textbox> *</td>
</tr>
<tr>
<td class="a3" width="40%" height="25"> <STRONG>个性头像:</STRONG></td>
<td class="a6" width="60%">
<asp:textbox id="userface" runat="server" CssClass="TextBox" name="userface" value="face/1.gif"
readOnly="true"></asp:textbox><INPUT onclick="window.open('userFace.asp','','width=607,height=415,menubar=no,toolbar=no,scrollbars=yes,location=no')"
type="button" value="选择头像"></td>
</tr>
<tr>
<td class="a3" width="40%" height="25">
<div> <STRONG>个性签名: </STRONG>
</div>
<P><!--您可以在帖子的后面加入您自己签名--> [不能超过200字符]</P>
</td>
<td class="a6" width="60%">
<asp:textbox id="usersign" runat="server" CssClass="TextBox" Width="288px" TextMode="MultiLine"
Height="80px"></asp:textbox></td>
</tr>
<tr>
<td class="a3" width="40%" height="25">
<div align="right"><asp:label id="lblMessage" runat="server"></asp:label></div>
</td>
<td class="a6" width="60%">
<asp:button id="Button1" runat="server" Text="注册"></asp:button> <input type="reset" value="重填" name="Reset"></td>
</tr>
</table>
<table class="a2" id="TABLE2" borderColor="#90b1c7" cellSpacing="1" cellPadding="1" width="760"
align="center" border="0" runat="server" Visible="false">
<tr class="a1" height="25">
<td>
<div align="center"><strong>注册成功</strong></div>
</td>
</tr>
<tr class="a6">
<td>
<li>
注册成功,恭喜您成为本论坛的一员</li></td>
</tr>
<tr class="a6">
<td>
<li>
一封邮件已经发往您的注册邮箱,请注意查收</li></td>
</tr>
<tr class="a6">
<td>
5秒钟后将返回论坛首页,如果您不想等待,请点击[<a href="index.aspx">这里</a>]</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -