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

📄 todaynewinfo.asp

📁 很好的OA办公系统
💻 ASP
字号:
<%response.expires=0%>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="inc/public.asp"-->
<%on error resume next
oabusyusername=request.cookies("oabusyusername")
oabusyuserid=request.cookies("oabusyuserid")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserid=request.cookies("oabusyuserid")
if oabusyusername="" or oabusyuserid="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from userinf where username='"&oabusyusername&"'"
rs.open sql,conn,1
if rs.eof and rs.bof then
	conn.close
	set rs=nothing
	set conn=nothing
	response.redirect "asp/disperrorinfo.asp?errorinfo=对不起,没有这个用户!"
	response.end
end if
auditingflag=rs("allow_check_resource_requirement")
workthings_auditingflag=rs("allow_auditing_workthings")
set rs=nothing
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="expires" content="no-cache">
<title>今日最新信息</title>
<link rel="stylesheet" type="text/css" href="css/css.css">
<script src="js/openwin.js"></script>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="15">
<p>
<div align="center">
  <center>
  <table border="0" width="500" cellspacing="0" cellpadding="0" height="121" bgcolor="#ffffff">
    <tr>
      <td width="225" height="90">
<%
set rs=server.createobject("adodb.recordset")
sql="select autoid from getemailtable where getuserid="&cstr(oabusyuserid)&" and readflag=false and deleteflag=false"
rs.open sql,conn,1
%>
        <table border="1" width="100%" bordercolorlight="#C0C0C0" height="75" cellspacing="0" cellpadding="0" bordercolordark="#D4D0C8">
          <tr>
            <td width="100%" height="22" align="center" bgcolor="#D4D0C8">邮&nbsp;  
              件</td>
          </tr>
          <tr bgcolor="#ffffff">
            <td width="100%" height="40" align="center">
<%
if not rs.eof and not rs.bof then
%>
			您现在有<font color="#0000FF"><%=rs.recordcount%></font>封<a href="email/getnewemail.asp"><font color="#0000FF">新邮件</font></a>!
<%
else
%>
			您现在没有新邮件!
<%
end if
%>
			</td>
          </tr>
        </table>
<%
set rs=nothing
%>
      </td>
      <td width="49" height="90"></td>
      <td width="222" height="90">
        <div align="center">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from workrep where username=" & sqlstr(oabusyusername) & " and recdate=" & "#" & date() & "#"
rs.open sql,conn,1
%>
          <table border="1" width="100%" cellpadding="0" cellspacing="0" bordercolorlight="#C0C0C0" height="75" bordercolordark="#D4D0C8">
            <tr>
              <td width="100%" height="22" align="center" bgcolor="#D4D0C8">工作计划</td>
            </tr>
            <tr>
<%
if not rs.eof and not rs.bof then
%>
              <td width="100%" height="40" align="center">您今日有<a href='displayworkrec.asp?username=<%=oabusyusername%>&superior=&recdate=<%=cstr(date())%>' onclick='return js_openpage(this.href);'><font color="#0000FF">工作计划</font></a>!</td>
<%
else
%>
              <td width="100%" height="40" align="center">您今日没有工作计划!</td>
<%
end if
%>
            </tr>
          </table>
<%
set rs=nothing
%>
        </div>
      </td>
    </tr>
    <tr>
      <td width="225" height="90">
        <div align="center">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from newnotice where year(noticedate)="&year(date())&" and month(noticedate)="&month(date())&" and day(noticedate)="&day(date())
rs.open sql,conn,1
%>
          <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#C0C0C0" bordercolordark="#D4D0C8" height="75">
            <tr>
              <td width="100%" height="22" align="center" bgcolor="#D4D0C8">通&nbsp; 
                告</td>
            </tr>
            <tr>
<%
if not rs.eof and not rs.bof then
%>
              <td width="100%" height="40" align="center">现在有<font color="#0000FF"><%=rs.recordcount%></font>条<a href="looknotice.asp"><font color="#0000FF">新通告</font></a>,请查阅!</td>
<%
else
%>
              <td width="100%" height="40" align="center">今日没有新通告!</td>
<%
end if
%>
            </tr>
          </table>
        </div>
      </td>
      <td width="49" height="90"></td>
      <td width="222" height="90">
        <div align="center">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from senddate where (recipientusername='"&oabusyusername&"' or recipientusername='所有人') and sender<>'"&oabusyusername&"' and recipientuserdept='"&oabusyuserdept&"' and reid=0 and year(inputdate)="&year(date())&" and month(inputdate)="&month(date())&" and day(inputdate)="&day(date())
rs.open sql,conn,1
%>
          <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#C0C0C0" bordercolordark="#D4D0C8" height="75">
            <tr>
              <td width="100%" height="22" align="center" bgcolor="#D4D0C8">公&nbsp; 
                文</td>
            </tr>
            <tr>
<%
if not rs.eof and not rs.bof then
%>
              <td width="100%" height="40" align="center">今日有<font color="#0000FF"><%=rs.recordcount%></font>份<a href="haverecievearticle.asp"><font color="#0000FF">新公文</font></a>,请查阅!</td>
<%
else
%>
              <td width="100%" height="40" align="center">今日没有新公文!</td>
<%
end if
%>
            </tr>
          </table>
<%
set rs=nothing
%>
        </div>
      </td>
    </tr>
    <tr>
      <td width="225" height="90">
        <div align="center">
<%

if auditingflag="yes" then
	set rs=server.createobject("adodb.recordset")
	sql="select ID from booking where auditing=0"
	rs.open sql,conn,1
end if
%>
          <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#C0C0C0" bordercolordark="#D4D0C8" height="75">
            <tr>
              <td width="100%" height="22" align="center" bgcolor="#D4D0C8">资源预约审核</td>
            </tr>
            <tr>
              <td width="100%" height="40" align="center">
<%
if auditingflag="yes" then
	if not rs.eof and not rs.bof then
%>
			  现在有新的资源预约请您<a href="booksource_info.asp"><font color="#0000FF">审核</font></a>!
<%
		set rs=nothing
	else
%>
			  现在没有要审核的资源预约!
<%
		set rs=nothing
	end if
else
	response.write("&nbsp;")
end if
%>
			  </td>
            </tr>
          </table>
        </div>
      </td>
      <td width="49" height="90"></td>
      <td width="222" height="90">
        <div align="center">
<%
if workthings_auditingflag="yes" then
	set rs=server.createobject("adodb.recordset")
	set rs1=server.createobject("adodb.recordset")
	sql="select autoid from workthings_use where auditingflag=true and alreadyauditing=false"
	sql1="select autoid from workthings_use where putoutusername='' and (auditingflag=false or (auditingflag=true and alreadyauditing=true))"
	rs.open sql,conn,1
	rs1.open sql1,conn,1
end if
%>
          <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#C0C0C0" bordercolordark="#D4D0C8" height="75">
            <tr>
              <td width="100%" height="22" align="center" bgcolor="#D4D0C8">办公用品领用表审核</td>
            </tr>
            <tr>
            <td width="100%" height="40" align="center">
<%
if workthings_auditingflag="yes" then
	if not rs.eof and not rs.bof then
%>
			  现在有新的办公用品领用表请您<a href="workthings/auditing_putouttable.asp"><font color="#0000FF">审核</font></a>!
<%
		set rs=nothing
	else
%>
			  现在没有要审核的办公用品领用表!
<%
		set rs=nothing
	end if
	if not rs1.eof and not rs1.bof then
%>
			  <br>现在有新的办公用品发放表请您<a href="workthings/putout_things.asp"><font color="#0000FF">填写</font></a>!
<%
		set rs1=nothing
	end if
else
	response.write("&nbsp;")
end if
%>
			</td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
  </table>
  </center>
</div>
<p>
<%
%>
         </td>
            
 
          </tr>
        </table>
    </tr>
    <tr>
      <td height=19>
<div align="center">
  <center>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
		  <tr>
          <td width="100%" height=20 colspan="3">
            <p align="center"><font color="#808080">IE37 &copy; <a href="http://www.ie37.com" target="_blank">IE37.com</a></font></td>
		  </tr>
        </table>
  </center>
</div>
<%
set rs=nothing
conn.close
set conn=nothing
response.write err.description
%>
</body>
</html>

⌨️ 快捷键说明

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