logout.asp
来自「一个适用于企业的客户电话咨询系统,可以与其它的相关企业管理系统进行整合!」· ASP 代码 · 共 71 行
ASP
71 行
<%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 + =
减小字号Ctrl + -
显示快捷键?