📄 mb_edit.asp
字号:
<!--#include file="chklogin.asp"-->
<%
call myobj.chkrq()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看/编辑用户资料</title>
<link href="images/style2.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
a:link {
color: #0000FF;
text-decoration: none;
}
a:visited {
color: #0000FF;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body leftMargin="0" topMargin="0" bgcolor="#FFFFFF">
<%
action_e=request.QueryString("action")
Select Case action_e
Case ""
Call main()
Case "save_edit"
Call save_edit()
end select
%>
<%
sub main
if request.QueryString("id")="" or myobj.ChkNum(request.QueryString("id"))=false then
response.write"<script language=javascript>alert('用户ID值错误');history.back();</Script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from member where id="&request.QueryString("id")&"",conn,1,1
if rs.eof then
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write"<script>alert('该用户不存在');history.back();</Script>"
response.end
else
var_userid=rs("userid")
var_pwd_qu=rs("pwd_qu")
var_u_type=rs("u_type")
var_is_vip=rs("is_vip")
var_is_free=rs("is_free")
if var_u_type=1 then
var_point=rs("point")
end if
if var_u_type<>1 then
var_end_time=rs("end_time")
end if
if var_u_type=3 then
var_bd_ip=rs("bd_ip")
end if
var_u_name=rs("u_name")
var_u_sex=rs("u_sex")
var_bd_time=rs("bd_time")
var_u_add=rs("u_add")
var_u_qq=rs("u_qq")
var_u_msn=rs("u_msn")
var_u_email=rs("u_email")
var_u_tel=rs("u_tel")
var_u_mtel=rs("u_mtel")
var_last_film=rs("last_film")
var_reg_time=rs("reg_time")
rs.close
end if
%>
<form name="form1" method="post" action="<%=filename%>?action=save_edit">
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="550" height="25" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3975CE">
<tr>
<td align="center"><strong class="font1">查看/编辑用户资料</strong></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" align="left" bgcolor="#F7F7F7"><%=var_userid%></td>
<td align="center" bgcolor="#F7F7F7"> </td>
</tr>
</table>
<table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="130" height="40" align="right" bgcolor="#F7F7F7"><span class="font3">*</span>用户密码:</td>
<td width="170" bgcolor="#F7F7F7"><input name="u_pwd" type="password" class="input1" id="u_pwd" style="ime-mode:disabled" onkeydown="javascript:if(event.keyCode==13)event.keyCode=9" onkeyup="javascript:value=value.replace(/[\W]/g,'') " size="20" maxlength="24"onbeforepaste="javascript:clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td rowspan="2" align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">只能填写a~z的英文字母<span class="font3">(区分大小写)</span>、0~9的数字或下划线,长度为6-24个字符。两次输入的密码必须相同。不修改请留空</td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" align="right" bgcolor="#F7F7F7"><span class="font3">*</span>再次输入用户密码:</td>
<td bgcolor="#F7F7F7"><input name="re_u_pwd" type="password" class="input1" id="re_u_pwd" style="ime-mode:disabled" onkeydown="javascript:if(event.keyCode==13)event.keyCode=9" onkeyup="javascript:value=value.replace(/[\W]/g,'') " size="20" maxlength="24"onbeforepaste="javascript:clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></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="40" align="right" bgcolor="#F7F7F7"><span class="font3">*</span>密码提示问题:</td>
<td width="170" bgcolor="#F7F7F7"><input name="pwd_qu" type="text" class="input1" id="pwd_qu" value="<%=var_pwd_qu%>" size="20" maxlength="50"></td>
<td rowspan="2" align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">密码提示问题和答案只能填写汉字、字母、数字,长度为8-50个字符,汉字占两个字符。不修改答案请将答案留空。</td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" align="right" bgcolor="#F7F7F7"><span class="font3">*</span>密码提示答案:</td>
<td bgcolor="#F7F7F7"><input name="pwd_an" type="text" class="input1" id="pwd_an" size="20" maxlength="50"></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"><%if var_u_type=1 then%>个人计点用户<%end if%><%if var_u_type=2 then%>个人包月用户<%end if%><%if var_u_type=3 then%>网吧包月用户<%end if%></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"><span class="font3">*</span>VIP用户:</td>
<td width="170" bgcolor="#F7F7F7"><input type="radio" name="is_vip" value="true" <%if var_is_vip=true then%>checked<%end if%>>
是
<input name="is_vip" type="radio" value="false" <%if var_is_vip<>true then%>checked<%end if%>>
否</td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">可点播VIP类别的影片</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"><span class="font3">*</span>免费用户:</td>
<td width="170" bgcolor="#F7F7F7"><input type="radio" name="is_free" value="true" <%if var_is_free=true then%>checked<%end if%>>
是
<input name="is_free" type="radio" value="false" <%if var_is_free<>true then%>checked<%end if%>>
否</td>
<td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
<tr>
<td bgcolor="#F7F7F7">可免费点播影片(不含VIP影片)</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<%if var_u_type=1 then%>
<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"><span class="font3">*</span>影币数量:</td>
<td width="170" bgcolor="#F7F7F7"><input name="point" type="text" class="input1" id="point" style="ime-mode:disabled" onkeyup="javascript:value=value.replace(/[^\d]/g,'') " value="<%=var_point%>" size="4" onbeforepaste="javascript: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的数字,值不能小于0</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -