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

📄 down.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#INCLUDE FILE="check.asp" --> 
<!--#INCLUDE FILE="connect.asp" --> 
<html>
<head>
<title></title>
<meta http-equiv="refresh" content="60;url=down.asp">
</head>
<% '判断是否要提醒计划安排
dim newwork
newwork=""
if session("opened")="opened" then
tt="opened"
else
tt="closed"
end if
session("opened")="opened"
      newworknum=0
			righthour=hour(time())
if len(righthour)=1 then righthour="0"&righthour
rightminute=minute(time())
if len(rightminute)=1 then rightminute="0"&rightminute
righttime=righthour&rightminute
			set rs=server.createobject("adodb.recordset")
			sql="select id from personplan where remind=0 and plandate='"&date()&"' and uid='"&session("uid")&"' and "&righttime&">remindtime"
 rs.open sql,conn,1,1
 if not rs.eof then
 newworknum=rs.recordcount
 response.write "<script language=javascript>window.open('remind.asp','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=120,left=150,width=400,height=300')</script>"
 end if
 rs.close
 '判断是否有待办工作和新邮件,这时精灵会闪动!
   
   
			  sql="select id from newwork where status=0 and userid='"&session("uid")&"'"
			rs.open sql,conn,1,1
			if not rs.eof then
			newworknum=newworknum+rs.recordcount
			newwork="newwork"
			end if
			rs.close
			sql="select id from mail where status=0 and topeopleid='"&session("uid")&"'"
			rs.open sql,conn,1,1
			if not rs.eof then
			newworknum=newworknum+rs.recordcount
			newwork="newwork"
			end if
			rs.close
			if newworknum>session("newworknum") then
			response.write "<BGSOUND src="&session("remindsound")&" autostart=true loop=1>"
			
			end if
			session("newworknum")=newworknum	
			%>  
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="34">
  <tr> 
    <td width="266" valign="top"> 
      <table border="0" width="100%" height="34" cellpadding="0" cellspacing="0">
        <tbody> 
        <tr> 
          <td  width="100%" background="images/down2.gif" valign="middle" >
            <div align="left">
              <script language="JavaScript">
			today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
var timeValue = "<FONT COLOR='#e8ffff'>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR='#e8ffff'>:</FONT></BLINK>0" : "<BLINK><FONT COLOR='#e8ffff'>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
timeValue += (hours >= 12) ? "<FONT COLOR=blue><I><B>pm</B></I></FONT>" : "<FONT COLOR=blue><B><I>am</I></B></FONT>";
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray("<font color=blue>星期日","<font color='#e8ffff'>星期一","<font color='#e8ffff'>星期二","<font color='#e8ffff'>星期三","<font color='#e8ffff'>星期四","<font color='#e8ffff'>星期五","<font color=blue size='2'>星期六");
document.write("<font color='#e8ffff'>",today.getYear(),"<font color='#e8ffff'>年","<font color='#e8ffff'>",today.getMonth()+1,"<font color='#e8ffff'>月","<font color='#e8ffff'>",today.getDate(),"<font color='#e8ffff'>日 </FONT>",d[today.getDay()+1])," "; 
 </script>
              <script language=JavaScript>
	  function CurentTime()
	  { 
var now = new Date();var hh = now.getHours();var mm = now.getMinutes(); 
var ss = now.getTime() % 60000;ss = (ss - (ss % 1000)) / 1000;
if (hh < 10) hh='0'+hh; 
var clock = hh+':'; 
if (mm < 10) clock += '0'; 
clock += mm+':'; 
if (ss < 10) clock += '0'; 
clock += ss; 
return(clock); 
} 
function refreshCalendarClock(){document.all.calendarClock.innerHTML = CurentTime();} 
document.write('<font id="calendarClock" style="color:#ffffff;font-family:宋体;font-size:10pt"></font>');
setInterval('refreshCalendarClock()',1000);
tt="<%=tt%>"
aa="<%=newwork%>"
if (tt=="opened") {
if (aa=="newwork") {
parent.left.cat.src="images/logo.gif"
parent.left.cat.onClick="parent.right.document.location='right.asp'"
}
else
{
parent.left.cat.src="images/logo1.gif"

}
}
</script>
              </div>
          </td>
        </tr>
        </tbody> 
      </table>
    </td>
    <td valign="top" width="753">
      <table width="100%" height="34" cellpadding="0" cellspacing="0" >
        <tbody> 
        <tr> 
          <td height="34" valign="top"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="34" background="images/down2.gif">
              <tr> 
                <td valign="middle"><font size="2">&nbsp; <marquee scrollAmount=1 scrollDelay=1><font color='#e8ffff'> 
                  <%
	set rs=server.createobject("adodb.recordset")
	sql="select id from news order by id desc"
	rs.open sql,conn,1,1
	if not rs.eof then
	latestid=rs("id")
	rs.close
	sql="select * from news where id="&latestid
	rs.open sql,conn,1,1
		response.write rs("title")&rs("time")
				end if
				 rs.close
			  set rs=nothing
			conn.close
			set conn=nothing
			  %>

                  </font></marquee></font></td>
              </tr>
            </table>
          </td>
          <td valign="top" width="63" height="34">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="34">
              <tr> 
                <td background="images/down3.gif"></td>
              </tr>
            </table>
          </td>
        </tr>
        </tbody> 
      </table>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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