📄 edit.txt
字号:
<html><title>聊天室用户资料修改</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body,td,input { font-family: 宋体; font-size: 12px }
.button {BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; CURSOR: hand; FONT-FAMILY: "宋体"; COLOR: #000000; FONT-SIZE: 12px; HEIGHT: 18px}
-->
</style>
<script>
function checkform()
{
var Letters = "0123456789";
email = document.the_form.email.value;
username = document.the_form.username.value;
invalid = "";
if (!email)
invalid = "请输入您的Email地址,以确保能找回密码。";
else {
if ( (email.indexOf("@") == -1) || (email.indexOf(".") == -1) )
invalid += "\n\nEmail地址不合法。应当包含'@'和'.';例如('.com')。";
if (email.indexOf("\\") > -1)
invalid += "\n\nEmail地址不合法,含有非法字符(\\)。";
if (email.indexOf("/") > -1)
invalid += "\n\nEmail地址不合法,含有非法字符(/)。";
if (email.indexOf("'") > -1)
invalid += "\n\nEmail地址不合法,含有非法字符(')。";
if (email.indexOf("!") > -1)
invalid += "\n\nEmail地址不合法,含有非法字符(!)。";
if (email.indexOf("&") > -1)
invalid += "\n\nEmail地址不合法,含有非法字符(&)。";
if ( (email.indexOf(",") > -1) || (email.indexOf(";") > -1) )
invalid += "\n\n只输入一个Email地址,不要含有分号和逗号。";
if (document.the_form.info.value.length >= 100)
invalid += "\n\n签名请控制在100个字节以内。";
if ((username=="")||(document.the_form.userpass.value=="")||(document.the_form.editpass.value!=document.the_form.repass.value)||(document.the_form.repass.value=="")||(document.the_form.question.value=="")||(document.the_form.answer.value==""))
invalid += "\n\n请确认两次输入的密码是否一致,并填完所有空白。";
if ((document.the_form.movephone.value!="")&&(document.the_form.movephone.value.length!=11)&&(document.the_form.movephone.value.length!=12))
invalid += "\n\n请填写有效的手机号码。";
for (i=0; i < document.the_form.age.value.length; i++)
{
var CheckChar = document.the_form.age.value.charAt(i);
if (Letters.indexOf(CheckChar) == -1)
{
invalid = "\n\n年龄数值中不能含有字母!";
}
}
}
if (invalid == "")
{
return true;
}
else
{
alert("输入的信息包含错误:" + invalid);
return false;
}
}
var num = [::UserPic];
function CForw()
{
if (num == 0)
num = 65;
else
num --;
document.images['face'].src = 'http://[::Ip]:[::Port]/Image?ImageId='+num;
the_form.userpic.value = num;
}
function CBack()
{
if (num == 65)
num = 0;
else
num ++;
document.images['face'].src = 'http://[::Ip]:[::Port]/Image?ImageId='+num;
the_form.userpic.value = num;
}
</script>
</head>
<body bgcolor="#EEEEFF" topmargin=0><center>
<TABLE border="1" width="256" cellpadding="3">
<form action=http://[::Ip]:[::Port]/edit method=post name=the_form onsubmit='return checkform();'>
<tr><td align=center style="font-size:14px;color=red" colspan=2>[::UserName]的资料修改(*号项必须填写)<input type=hidden name="username" maxlength=10 readonly value=[::UserName]></td></tr>
<tr><td>原密码:<input type="password" name="userpass" maxlength=15 size=16> <font color=red>*</font></td><td align=center width=45 rowspan=3>选头像<br><input type="button" value="
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -