msg_alert.asp

来自「=== ==ASP销售管理系统」· ASP 代码 · 共 43 行

ASP
43
字号
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<%
Have_New_Msg = false
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open connstr
sql = "select From_Employee_ID from Employee_Message where Message_Status = 0 and To_Employee_ID = " & Session("Employee_ID")
set rs = conn.execute(sql)
if not rs.eof then
	Have_New_Msg = true
end if
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title></title>
	<style>
		.jd{
			FONT-SIZE: 9pt; 
			LINE-HEIGHT: 150%;
			color : #FFFFFF;
			TEXT-DECORATION: none;
		}
	</style>
</head>
<body bgcolor="#6699CC">
<% If Have_New_Msg then %>
<marquee behavior=scroll direction=left scrollamount=1 scrolldelay=8 onmouseover='this.stop()' onmouseout='this.start()'>
<a href="#" class="jd" onClick="return ReadNewMsg();">您有新消息,请点此处收取</a>
</marquee>
<% End If %>
</body>
</html>
<script language="JavaScript" type="text/javascript">
	function ReadNewMsg(){
		top.main.location.href = '../employee/msg.asp';
	}
</script>

⌨️ 快捷键说明

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