📄 mb_add.asp
字号:
<option value="天津">* 天津</option>
<option value="重庆">* 重庆</option>
<option value="台湾">* 台湾</option>
<option value="香港">* 香港</option>
<option value="澳门">* 澳门</option>
<option value="安徽">a 安徽</option>
<option value="福建">f 福建</option>
<option value="甘肃">g 甘肃</option>
<option value="贵州">g 贵州</option>
<option value="广东">g 广东</option>
<option value="广西">g 广西</option>
<option value="黑龙江">h 黑龙江</option>
<option value="河北">h 河北</option>
<option value="湖北">h 湖北</option>
<option value="湖南">h 湖南</option>
<option value="河南">h 河南</option>
<option value="海南">h 海南</option>
<option value="吉林">h 吉林</option>
<option value="江苏">h 江苏</option>
<option value="江西">h 江西</option>
<option value="辽宁">l 辽宁</option>
<option value="宁夏">l 宁夏</option>
<option value="内蒙古">l 内蒙古</option>
<option value="青海">q 青海</option>
<option value="陕西">s 陕西</option>
<option value="山西">s 山西</option>
<option value="四川">s 四川</option>
<option value="山东">s 山东</option>
<option value="新疆">x 新疆</option>
<option value="西藏">x 西藏</option>
<option value="云南">y 云南</option>
<option value="浙江">z 浙江</option>
</select>
</td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="30" align="right" bgcolor="#F7F7F7">腾讯QQ:</td>
<td width="170" bgcolor="#F7F7F7"><input name="u_qq" type="text" class="input1" id="u_qq" style="ime-mode:disabled" onkeyup="value=value.replace(/[^\d]/g,'') " size="20" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">0-9的数字,长度为5-20个字符</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="30" align="right" bgcolor="#F7F7F7">MSN账号:</td>
<td width="170" bgcolor="#F7F7F7"><input name="u_msn" type="text" class="input1" id="u_msn"></td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">格式为xxx@xxx.xxx</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="30" align="right" bgcolor="#F7F7F7">E-Mail地址:</td>
<td width="170" bgcolor="#F7F7F7"><input name="u_email" type="text" class="input1" id="u_email"></td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">格式为xxx@xxx.xxx</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="30" align="right" bgcolor="#F7F7F7">固定电话:</td>
<td width="170" bgcolor="#F7F7F7"><input name="u_tel" type="text" class="input1" id="u_tel" style="ime-mode:disabled" onKeyUp="value=value.replace(/[^\d]/g,'') " size="20" maxlength="11" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">长度11位的数字,区号与电话号码之间不能用-等符号间隔</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="30" align="right" bgcolor="#F7F7F7">手机号码:</td>
<td width="170" bgcolor="#F7F7F7"><input name="u_mtel" type="text" class="input1" id="u_mtel" style="ime-mode:disabled" onkeyup="value=value.replace(/[^\d]/g,'') " size="20" maxlength="11" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">长度11位的数字。号码前无需加0或86+等字符</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="550" height="50" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
<tr>
<td align="center" bgcolor="#FFFFFF"><input name="botton" type="submit" class="button1" id="botton" value="确认增加新用户">
<input name="userid" type="hidden" id="userid" value="<%=request.form("userid")%>">
<input name="u_type" type="hidden" id="u_type" value="<%=request.form("u_type")%>"></td>
</tr>
</table>
</form>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<%
end sub
%>
<%
sub chk_info()
if request.Form("userid")="" then
response.write"<script language=javascript>alert('无法获取用户账号');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.Form("userid"))<3 or myobj.ChkLen(request.Form("userid"))>12 then
response.write"<script language=javascript>alert('用户账号长度不符合规则');history.back();</Script>"
response.end
end if
if myobj.ChkID(request.Form("userid"))=false then
response.write"<script language=javascript>alert('用户账号中存在不允许的字符');history.back();</Script>"
response.end
end if
if request.Form("u_type")="" then
response.write"<script language=javascript>alert('无法获取用户类型信息');history.back();</Script>"
response.end
end if
if myobj.ChkNum(request.form("u_type"))=false then
response.write"<script language=javascript>alert('用户类型的值错误');history.back();</Script>"
response.end
end if
if cint(request.form("u_type"))<>1 and cint(request.form("u_type"))<>2 and cint(request.form("u_type"))<>3 then
response.write"<script language=javascript>alert('用户类型的值错误');history.back();</Script>"
response.end
end if
if request.form("u_pwd")="" then
response.write"<script language=javascript>alert('请填写用户密码');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.form("u_pwd"))<6 or myobj.ChkLen(request.form("u_pwd"))>24 then
response.write"<script language=javascript>alert('用户密码长度必须为6-24个字符');history.back();</Script>"
response.end
end if
if request.form("u_pwd")<>request.form("re_u_pwd") then
response.write"<script language=javascript>alert('两次输入的用户密码必须相同');history.back();</Script>"
response.end
end if
if request.form("pwd_qu")="" then
response.write"<script language=javascript>alert('请填写密码提示问题');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.form("pwd_qu"))<8 or myobj.ChkLen(request.form("pwd_qu"))>50 then
response.write"<script language=javascript>alert('密码提示问题长度必须为8-50个字符(汉字占两个字符)');history.back();</Script>"
response.end
end if
if request.form("pwd_qu")=request.form("u_pwd") then
response.write"<script language=javascript>alert('密码提示问题不能与用户密码相同');history.back();</Script>"
response.end
end if
if request.form("pwd_an")="" then
response.write"<script language=javascript>alert('请填写密码提示答案');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.form("pwd_an"))<8 or myobj.ChkLen(request.form("pwd_an"))>50 then
response.write"<script language=javascript>alert('密码提示答案长度必须为8-50个字符(汉字占两个字符)');history.back();</Script>"
response.end
end if
if request.form("pwd_an")=request.form("pwd_qu") then
response.write"<script language=javascript>alert('密码提示的答案不能与密码提示问题相同');history.back();</Script>"
response.end
end if
if request.form("pwd_an")=request.form("u_pwd") then
response.write"<script language=javascript>alert('密码提示答案不能与用户密码相同');history.back();</Script>"
response.end
end if
if request.form("is_vip")="" then
response.write"<script language=javascript>alert('VIP用户值为空');history.back();</Script>"
response.end
end if
if myobj.chkbool(request.form("is_vip"))=false then
response.write"<script language=javascript>alert('VIP用户值类型错误');history.back();</Script>"
response.end
end if
if request.form("is_free")="" then
response.write"<script language=javascript>alert('免费用户值为空');history.back();</Script>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -