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

📄 main.asp

📁 这是我做的一个OA雏形
💻 ASP
字号:
<!--#INCLUDE FILE="data.asp" -->
<!--#INCLUDE FILE="check.asp" -->
<html>

<meta http-equiv="refresh" content="1;url=main1.asp?action=search">
<title>圣时代Loading ....</title>
<script>

function OpenWindows1(url,widthx,heighx)
{
  var 
 newwin=window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=20,left=60,width=420,height=300");
 return false;
 
}
</script>
</head>

<body style="font-family: 宋体; font-size: 9pt">

<p>请等待<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Loading ...</p>
<%
nowtime=now()
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)
strSQL ="SELECT * FROM soft where (userid="&session("Uid")&" and daoshitime2<'"&shijian&"') ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSQL,Conn,1,1
if not rs.eof then
    do while not (rs.eof or rs.bof)
%>
        <%rs.movenext 
loop 

%>
        <script LANGUAGE="JavaScript">

OpenWindows1('checkcalendar.asp?id=<%=rs("id")%>','width=420','height=300')

</script><%end if%>
<%rs.Update
	rs.close
	Set rs=nothing
%>
<%
nowtime=now()
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)
strSQL ="SELECT * FROM soft where (userid="&session("Uid")&" and tx=1 and daoshitime<'"&shijian&"') ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSQL,Conn,1,1
if not rs.eof then
    do while not (rs.eof or rs.bof)
%>
        <%rs.movenext 
loop 

%>
        <script LANGUAGE="JavaScript">

OpenWindows1('checkcalendar1.asp?id=<%=rs("id")%>','width=420','height=300')

</script><%end if%>
<%rs.Update
	rs.close
	Set rs=nothing
%>
<%
nowtime=now()
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)
strSQL ="SELECT * FROM soft where (remindtime<'"&shijian&"') ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSQL,Conn,1,1
if not rs.eof then
    do while not (rs.eof or rs.bof)
%>
        <%rs.movenext 
loop 

%>
        <script LANGUAGE="JavaScript">

OpenWindows1('checkcalendar3.asp?id=1','width=420','height=300')

</script><%end if%>
<%rs.Update
	rs.close
	Set rs=nothing
%>
</body>
</html>

⌨️ 快捷键说明

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