⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logout.asp

📁 ASP+SQL Server动态网站开发从基础到实践教程
💻 ASP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="config.asp" -->
<html>
<head>
<title>LOGGED OUT</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="styles.css" rel="stylesheet" type="text/css">
</head>

<body>
<p align="center"><img src="../images/logo.gif" width="194" height="59"></p>
  <%
	varUserID = session.contents("UserID")
	varRoomID = session.contents("RoomID")
	'response.write varUserID & varRoomID & "D"
	varDate = now()
	'need the date as hh:mm
	varTime = FormatDateTime(varDate, 4)
	if varUserID then
		call writeDB("INSERT INTO MESSAGES(UserID, RoomID, Message, Style, Colour, [Time]) VALUES(" & varUserID & ", '" & varRoomID & "', 'Has Logged Off', 'i', 'red', '" & varTime & "');")
	'update the users so that we have a last active state.
		call writeDB("UPDATE USERS SET RoomID=0, [Time]='" & varDate & "', LastPost = '" & varDate & "', Active=0 WHERE UserID = " & varUserID & ";")
		response.write "<p align='center'>&#20320;&#24050;&#32463;&#36864;&#20986;&#32842;&#22825;&#23460;&#65292;&#27426;&#36814;&#20877;&#26469;. "
	else
	%>
	<script language="JavaScript">
	<!--
	close()
	//-->
	</script>
	<%
	end if
%>
</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -