checkmymail.asp

来自「这是ASP的OA」· ASP 代码 · 共 38 行

ASP
38
字号
<!-- #include file="const.asp" -->
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--<meta http-equiv="refresh" content="180;url=checkmymail.asp">-->
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ECE9D9" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="v7"> 
      <%
dim tmpsql,tmprs,n
n=0
call opendb()
if cint(userlevel())<1 then
	response.Write("<img src='images/btn_face.gif' width='10' height='7'><a href='message.asp' target='_top'>我的信箱</a>")
else
	tmpsql="select count(id) from m3_message where to1='"&request.Cookies("matrix3")("matrix3_name")&"' and owner='"&request.Cookies("matrix3")("matrix3_name")&"' and valid=1 and isnew=1"
	set tmprs=conn.execute(tmpsql) 
	n=tmprs(0) 
	set tmprs=nothing 
	if isnull(n) then n=0
	if cint(n)>cint(0) then
		response.Write("<bgsound src='images/mail.wav' border=0>")
		response.Write("<img src='images/btn_face.gif' width='10' height='7'><a href='message.asp' target='_top'>新邮件(<font color=red><b>"&n&"</b></font>)</a>")
	else
		response.Write("<img src='images/btn_face.gif' width='10' height='7'><a href='message.asp' target='_top'>我的信箱</a>")
	end if
end if
call closedb()
%>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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