📄 popnotice.asp
字号:
<%response.expires=0%>
<!--#include file="asp/keepformat.asp"-->
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/bgsub.asp"-->
<%
oabusyusername=request.cookies("oabusyusername")
oabusyuserid=request.cookies("oabusyuserid")
if request.form("submit")="我已经看了此通告" then
id=request.form("id")
set conn=opendb("oabusy","conn","accessdsn")
sql = "update newnotice set readuserid=readuserid+'("&oabusyuserid&")' where ID="&id
conn.Execute sql
conn.close
%>
<SCRIPT language=JavaScript>
opener.parent("banner2").doflag.value='1';
window.close();
</script>
<%
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<meta http-equiv="pragma" content="no-cache">
<title> Office办公系统--查看通告</title>
<script language="javascript">
opener.parent("banner2").doflag.value="0";
</script>
<bgsound src="xbmsg.wav" loop="1">
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5" onunload="opener.parent('banner2').doflag.value='1';">
<%
set conn=opendb("oabusy","conn","accessdsn")
Set rs=Server.CreateObject("ADODB.recordset")
sql="select * from newnotice where readuserid NOT LIKE '%("&oabusyuserid&")%' and sendusername<>'"&oabusyusername&"'"
rs.open sql,conn,1
%>
<center>
<b>通告标题:<%=keepformat(rs("title"))%></b>
<br>
[发布日期:<%=keepformat(rs("noticedate"))%>]
</center>
<%
%>
<br>
<%=keepformat(rs("content"))%>
<center>
<form method=post action="popnotice.asp">
<input type="hidden" value="<%=rs("ID")%>" name="id">
<input type="submit" name="submit" value="我已经看了此通告">
</form>
</center>
<%
%>
<div align="center">
<center>
<table>
<tr>
<td height=19>
<table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
<tr>
<td width="100%" height=20><p align="center"><font color="#808080">IE37 © <a href="http://www.ie37.com" target="_blank">IE37.com</a></font></td>
</tr>
</table>
</td>
</tr>
<%
%>
</table>
</center>
</div>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -