📄 certify_member.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>
<%
dim str
if Request.Form("submit") <> "" then
dim certified,id
certified = Request.Form("certified")
id = Request.Form("id")
str = "update member set certified = " & certified & " where id = " & id
Session("conn").Execute str,,adCmdText + adExecuteNoRecordset
end if
str = "select id,login_name,certified from member order by id desc"
Session("rs").Open str,Session("conn")
%>
<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>会员</td>
<td>认证</td>
<td> </td>
</tr>
<%
while not Session("rs").EOF
%>
<form action="certify_member.asp" method="post">
<tr>
<td height="25"><a href="../member/show_member.asp?id=<%= Session("rs")("id") %>"><%= Session("rs")("login_name") %></a></td>
<td height="25"><input name="id" type="hidden" value="<%= Session("rs")("id") %>"><input name="certified" type="checkbox" value="1" <%
If Session("rs")("certified") Then
Response.Write("checked")
End If
%>></td>
<td height="25"><input name="submit" type="submit" value="认 证">
<input name="delete" type="button" id="delete" onClick="if(window.confirm('确定要删除该会员?')) window.open('../admin/del_member.asp?id=<%= session("rs")("id") %>','_self');" value="删 除"></td>
</tr>
</form>
<%
Session("rs").MoveNext
Wend
Session("rs").Close
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -