editcard.asp
来自「国内第一数字点卡销售程序。功能强大。 完整无错!数据文件经MD5加密!经严格测」· ASP 代码 · 共 87 行
ASP
87 行
<%@ CODEPAGE = "936" %>
<!--#include file="conn.asp"-->
<%
if session("admin_rank")<>1 and session("admin_rank")<>4 then
response.write("<script>alert('您无权查看本页,SORRY!');window.location=('login.asp')</script>")
response.end
end if
%>
<%
set rs=server.createobject("adodb.recordset")
set rs1=server.createobject("adodb.recordset")
%><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<%
if request("action")="save" then
sql="select * from tingcardnum where id="&int(request("id"))
rs.open sql,conn,3,3
rs("hw_name")=request("hw_name")
rs("hw_number")=request("hw_number")
rs("hw_date")=Now()
rs.update
rs.close
response.write "<script language=javascript>alert('修改成功!');</script>"
end if
%>
<body style="background-color: #F0FBF1">
<div align="center">
<table border="0" width="778" cellspacing="1">
<tr>
<td width="82%" style="padding-left: 10px">
<form method="POST" action="editcard.asp?action=save">
<input type="hidden" name="id" value="<%=int(request("id"))%>">
<p> <table border="1" width="780" cellspacing="0" height="122" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellpadding="0">
<tr>
<td width="100%" style="padding-left: 10px" height="39">选 择 卡: <select size="1" name="hw_name">
<%
sql="select * from hw where hw_cz='0'"
rs.open sql,conn,3,3
sql1="select * from tingcardnum where id="&request("id")
rs1.open sql1,conn,3,3
if rs.eof then
%>
<option value=""></option>
<%else%>
<option value="<%=rs1("hw_name")%>" selected ><%=rs1("hw_name")%></option>
<% do while not rs.eof%>
<option value="<%=rs("hw_name")%>"><%=rs("hw_name")%></option>
<%rs.movenext
loop
end if
rs.close
%>
</select>
</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="40">卡
号: <input type="text" name="hw_number" size="20" value="<%=rs1("hw_number")%>" class=input>
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="40">密
码:
<input type="text" name="hw_pass" size="20" value="加密" class=input>
<font color="#FF0000">*</font></td>
</tr>
</table>
</div>
<p> <input type="submit" value="提交" name="B1" class=input>
<input type="reset" value="重写" name="B2" class=input></p>
</p>
</form>
</td>
</tr>
</table>
</div>
<%
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?