📄 logout.asp
字号:
<%response.expires=0%>
<!--#INCLUDE FILE="conn.asp" -->
<!--#INCLUDE FILE="const.asp" -->
<!--#INCLUDE FILE="char.asp" -->
<!--#INCLUDE FILE="theme.asp" -->
<html>
<head>
<title>退出管理</title>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<link href="include/site.css" type="text/css" rel="stylesheet">
<script language="JavaScript" src="script/jsfun.js">
</script>
</head>
<body alink=#333333 vlink=#333333 link=#333333 topmargin=0 bgcolor=<%=bodycolor%>>
<%
call main()
sub main()
if request("action")="logout" then
call logout()
else
call confirm()
end if
set rs=nothing
end sub
sub confirm()
%>
<br><br>
<FORM action="logout.asp" method=post name="userform" onsubmit="return submitonce(this);">
<input type=hidden name=action value=logout>
<table cellpadding=0 cellspacing=0 border=0 width=480 bgcolor=#ccccff align=center>
<tr>
<td>
<table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=<%=tablebordercolor%>>
<TBODY>
<TR align=middle bgcolor=<%=tabletitlecolor%>>
<TD height=24><b>退出管理</b></TD></TR>
<TR bgcolor=<%=tablebodycolor2%>>
<TD height=120 valign=center class=p9> <li>此项操作您将退出<%=version%>。</li>
<li>请先确认您已经完成了您的操作。</li>
<li>谢谢您使用本系统。</li>
<li>欢迎下次使用。</li>
</TD>
</TR>
<TR bgcolor=<%=tablebodycolor2%>>
<TD><font color=blue> </font>您是否真的要退出管理?</TD>
</TR>
<TR align=middle bgcolor=<%=Tabletitlecolor%>>
<TD><DIV align=center><INPUT value="注销" name=Submit type=submit class=btn>
</DIV></TD></TR></TBODY></TABLE></td></tr></table>
</FORM>
<p align="center"><br>
<br>
</p>
</body>
</html>
<%end sub
sub logout()
userid=session("name")
conn.execute("update [user] set status=false where userid='"&userid&"'")
set session("name")=nothing
set session("pass")=nothing
stitle="退出管理"
smsg="您已经成功的退出了"&version&"。"
call success(stitle,smsg)
end sub
%>
<!--#INCLUDE FILE="footer.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -