📄 admin_counter.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/check_admin.asp" -->
<%
if Request.Form("submit") <> "" then
dim sSql
sSql = "update [count] set [count] = 1 where id = 1"
Session("conn").Execute sSql,,adExecuteNoRecord
Application("count") = 1
Response.Redirect("welcome.asp")
else
%>
<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>
<body>
<form action="admin_counter.asp" method="post">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">你确认要将计数器清零吗?</td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><input name="submit" type="submit" value="清 零"></td>
</tr>
</table>
</form>
</body>
</html>
<%
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -