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

📄 checkcalendar3.asp

📁 这是我做的一个OA雏形
💻 ASP
字号:
<%
if Session("seeg")<>true then
response.redirect "error.asp?id=admin"
end if
%>
<!--#INCLUDE FILE="data.asp" -->
<!--#INCLUDE FILE="check.asp" -->
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>

<html><head><title>learn_art</title>
<link rel="stylesheet" href="oa.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<script>
function js_openpage(url) 
{
  var 
  newwin=window.open(url,"NewWin","toolbar=no,resizable=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,top=100,left=120,width=600,height=360");
  // newwin.focus();
  return false;
  }
  
function js_openpage_1(url) 
{
  var 
  newwin=window.open(url,"NewWin","toolbar=no,resizable=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,top=100,left=120,width=600,height=400");
  // newwin.focus();
  return false;
}

function  DelChk()                       
           {    flag=0;                         
                for (j=0;j<form.elements.length;j++)   {                        
                   if (form.elements[j].checked==true){                        
                   flag=flag+1;                        
                   break;                        
                }                        
           }                        
           if (flag !=0){                         
               if (confirm("此操作将删除所选择的文件,请您确定删除!"))  {                        
               var url="manage/articledel.asp?ownid=" ;                       
               form.action=url;                       
               form.submit();}                        
          }                        
         else  { alert("(没有选择文件)请在复选框内选择要删除的文件") }                        
 }                   
</script>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0"
style="background-image: url(); background-attachment: scroll; background-repeat: no-repeat; background-position: left bottom" onLoad="MM_preloadImages('images/more_on.gif','images/add_on.gif','images/up_on.gif')" >
<DIV ID="overDiv" STYLE="position:absolute; visibility:hide; z-index:1;"></DIV>
<Layer name="linkex" visibility="hide" width=80%>
</Layer>
<SCRIPT LANGUAGE="JavaScript" SRC="overlib.js"></SCRIPT>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#CCCCCC"> 
    <td height=20 colspan="2" class="heading"> <font color="#000000"><b>过期提醒</b></font> 
    </td>
  </tr>
  <tr> 
    <td width="1" valign="top"> <br> </td>
    <td valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0"><tr >
        <td width="10"><td align="right" width="100%">
        <table width="100%" border=0 align="center" cellspacing="1" >
          <tr > <td bgcolor="#FFFFFF">
           <%
dim keyword
keyword=request("selecttext")
dim page
page=request("page")
PageSize = 6
dim rs,strSQL,news
nowtime=now()
shijian=cstr(year(nowtime))+right("0"+cstr(month(nowtime)),2)+right("0"+cstr(day(nowtime)),2)
if request("style")="name" then
strSQL ="SELECT * FROM soft where remindtime<'"&shijian&"' and name like '%"&keyword&"%' and (userid="&session("Uid")&" or dx=true) ORDER BY id DESC"
elseif request("style")="content" then
strSQL ="SELECT * FROM soft where remindtime<'"&shijian&"' and content like '%"&keyword&"%' and (userid="&session("Uid")&" or dx=true) ORDER BY id DESC"
elseif request("style")="zhipai" then
strSQL ="SELECT * FROM soft where remindtime<'"&shijian&"' and zhipai like '%"&keyword&"%' and (userid="&session("Uid")&" or dx=true) ORDER BY id DESC"
elseif request("style")="size" then
strSQL ="SELECT * FROM soft where remindtime<'"&shijian&"' and size like '%"&keyword&"%' and (userid="&session("Uid")&" or dx=true) ORDER BY id DESC"
elseif request("style")="time" then
strSQL ="SELECT * FROM soft where remindtime<'"&shijian&"' and time like '%"&keyword&"%' and (userid="&session("Uid")&" or dx=true) ORDER BY id DESC"
else
strSQL ="SELECT * FROM soft where remindtime<'"&shijian&"' and time2 like '%"&keyword&"%' and (userid="&session("Uid")&" or dx=true) ORDER BY id DESC"
end if
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSQL,Conn,1,1
    rs.PageSize = PageSize
	totalfilm=rs.recordcount
guoqitian=shijian-rs("remindtime")
    pgnum=rs.Pagecount
    if page="" or clng(page)<1 then page=1
    if clng(page) > pgnum then page=pgnum
    if pgnum>0 then rs.AbsolutePage=page
if rs.eof and rs.bof then
response.write "<font color='#ffffff' class='3dfont'>该类别还没有任何文件</font>"
else
%>            <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr bgcolor="#303430"><form method=Post action="checkcalendar3.asp">
              <FONT COLOR="#ffffff"> [<b><%=rs.pagecount%></b>/<%=page%>页] [共<%=totalfilm%>个]         
              <%if page=1 then%>
             <font color="#ffffff"> [首页] [上一页] </font>          
              <% else %>
              [<a href="checkcalendar3.asp?page=1&typeid=<%=typeid%>"><font color="#FF0000">首页</font></a>] [<a href="checkcalendar3.asp?page=<%=page-1%>&typeid=<%=typeid%>"><font color="#FF0000">上一页</font></a>]         
              <%end if%>
              <%if rs.pagecount-page<1 then%>        
             <font color="#ffffff"> [下一页] [尾页] </font>         
              <%else%>
              [<a href="checkcalendar3.asp?page=<%=page+1%>&typeid=<%=typeid%>"><font color="#FF0000">下一页</font></a>]         
              [<a href="checkcalendar3.asp?page=<%=rs.pagecount%>&typeid=<%=typeid%>"><font color="#FF0000">尾页</font></a>]</FONT> 
              <%end if%>        
              <input type='text' name='page' size=2 maxlength=10 style="font-size:9pt;color:#FFFFFF;background-color:#666666;border-left: 1px solid #000000; border-right: 1px solid #000000; border-top: 1px solid #000000; border-bottom: 1px solid #000000" value="<%=page%>" align=center>        
              <INPUT TYPE="hidden" name=type value="<%=typeid%>">        
              <input style="border:1 solid black;FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; HEIGHT: 18px; LINE-HEIGHT: normal" type='submit'  value=' Goto '   size=2></tr>        
            </table></td></tr>
          <tr> 
            <td>
<table border=0 cellspacing="0" cellpadding="0" width="100%" bordercolorlight=#000000 bordercolordark=#ffffff height="20">
                    <tr style="padding:1pt;background-color:ffffff"> 
<td width="13%" align=center><font color="#000000">指派人  </font></td>                      
<td width="29%" align=center><font color="#000000">项目主题  </font></td>
<td width="20%" align=center height="20%"><font color="#000000">责任人 
</font></td>
 <td width="25%" align=center ><font color="#000000">项目内容 
</font></td>
<td width="13%" align=center height="25%"><font color="#000000"> 
 过期天数</font></td>
 </tr>
<%
count=0 
do while not (rs.eof or rs.bof) and count<rs.PageSize 
%>
 <table border=0 cellspacing="0" cellpadding="0" width="100%" bordercolorlight=#000000 bordercolordark=#ffffff>
 <tr style="padding:1pt;background-color:ffffff"> 
 <td width="13%" align=center>                    
<A HREF="#" onclick="window.open('guoqi.asp?id=<%=rs("id")%>','','width=420 height=300')" onMouseOver="drs('<%=rs("zhipai")%>'); return true;" onMouseOut="nd(); return true;"><% if len(rs("zhipai"))>4 then%><%=left(rs("zhipai"),3)%>...<% else%><%=rs("zhipai")%><%end if%></td>
<td width="29%" align=center><%if rs("best")=true then response.write "<FONT COLOR=red>*</FONT>"end if%><A HREF="#" onclick="window.open('guoqi.asp?id=<%=rs("id")%>','','width=420 height=300')" onMouseOver="drs('<%=rs("name")%>'); return true;" onMouseOut="nd(); return true;">
<% if len(rs("name"))>6 then%>
<%=left(rs("name"),5)%>... 
<% else%>
<%=rs("name")%> 
<%end if%><%if rs("dx")=0 then response.write " <FONT COLOR=red>(独)</FONT>" end if%>
</a>
</td>
<td width="20%" align=center><A HREF="#" onclick="window.open('guoqi.asp?id=<%=rs("id")%>','','width=420 height=300')" onMouseOver="drs(' <%=rs("size")%> '); return true;" onMouseOut="nd(); return true;">
<% if len(rs("size"))>6 then%>
<%=left(rs("size"),5)%>... 
<% else%>
<%=rs("size")%> 
<%end if%> 
 </a></td>
<td width="25%" align=center><A HREF="#" onclick="window.open('guoqi.asp?id=<%=rs("id")%>','','width=420 height=300')" onMouseOver="drs('<%=rs("content")%>'); return true;" onMouseOut="nd(); return true;">
<% if len(rs("content"))>7 then%>
<%=left(rs("content"),6)%>... 
<% else%>
<%=rs("content")%> 
<%end if%> 
</a>
 </td>
<td width="13%" align=center>
<%=DateDiff("d",date(),rs("time2"))%> 
</td>
</tr>
<hr size="1">
<%rs.movenext 
count=count+1
loop 
end if
%></table></form>
<form  name="sele"  method="post"  action="checkcalendar3.asp"  onsubmit="return  ckse()">
          <tr > 
            <td bgcolor="#FFFFFF" colspan="4"> <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr> 
                   <td bgcolor="#BFBFBF" width="12%"> 查询:</td>  
            <td height=20 width="25%" bgcolor="#BFBFBF"> 
              <select name="style">
                  <option value="name" selected>项目主题</option>
                  <option value="content">项目内容</option>
                  <option value="zhipai">指派人</option>
                  <option value="size">责任人</option>
                  <option value="time">开始日期</option>
                  <option value="time2">截止日期</option>
                  
                </select>
            </td>
	  <td bgcolor="#BFBFBF" width="6%">为</td>
                  <td bgcolor="#BFBFBF" width="30%"> <input type="text" name="selecttext" size="17" maxlength="19"> 
                  </td>
                  <td width="27%"><a href="javascript:document.sele.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/search_on.gif',1)"><img name="Image8" border="0" src="images/search_off.gif" align="middle"></a> 
                    <%if session("Urule")="a" then%> &nbsp; <%end if%> </td>
                </tr>
              </table></td>
          </tr>
        </form>                          
       </td>                                        
     </tr>                                        
 </table>                               
</body>                                        
</html>

⌨️ 快捷键说明

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