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

📄 chaxun.asp

📁 网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个
💻 ASP
字号:
<%
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
connstr=Application("hg_connstr")
conn.open connstr
action=request.querystring("action")
xian=session("xian")
ljldj=Session("hxf_u_grade")
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>OA系统</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<link rel="stylesheet" href="../setup.css">
</head>
<%
   const MaxPerPage=15
   dim totalPut   
   dim CurrentPage
   dim TotalPages
   dim i,j
   zhuti=request("zhuti")
   leibie=request("leibie")
   if leibie="无" then leibie=""
   wenhao=request("wenhao")
   a4=request("a4")
   a6=request("a6")
   neirong=request("neirong")
   'typename="信息管理系统"
   if not isempty(request("page")) then
      currentPage=cint(request("page"))
   else
      currentPage=1
   end if
   
%>

<body>
<div align="center">
  <center>
<table border="0" width="71%" cellspacing="0" cellpadding="15"> 
  <tr> 
    <td width="100%" align="center"><font color="#FF0000" size="3"><b>OA SYSTEM--&gt;[按照关键字</font><font color="#0000FF" size="3"><%=zhuti%>-<%=leibie%>-<%=wenhao%>-<%=neirong%></font><font color="#FF0000" size="3">]查询结果</font></b></td> 
  </tr> 
</table> 
  </center>
</div>
<div align="center"> 
  <table border="0" width="71%" cellspacing="0" cellpadding="0"> 
  <tr> 
      <td width="100%"> <%  if action=11 then 
ljl_xian=mid(xian,19,1)
if ljl_xian<>1 then%>
<script language=vbscript> 
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
      </script>
<%end if
sql="select * from 待办  where 主题 like '%"&zhuti&"%' and 文号 like '%"&wenhao&"%' and 内容 like '%"&neirong&"%' and 类别 like '%"&leibie&"%'  order by id desc"   
end if
if action=12 then
ljl_xian=mid(xian,8,1)
if ljl_xian<>1 then%>
<script language=vbscript> 
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
      </script>
<%end if
sql="select * from 公文  where 主题 like '%"&zhuti&"%' and 文号 like '%"&wenhao&"%' and 内容 like '%"&neirong&"%' and 类别 like '%"&leibie&"%'  order by id desc"   
end if
if action=43 then
ljl_xian=mid(xian,54,1)
if ljl_xian<>1 then%>
<script language=vbscript> 
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "../config/txt.asp"
      </script>
<%end if
sql="select * from 档案  where a1 like '%"&zhuti&"%' and a2 like '%"&wenhao&"%' and a5 like '%"&neirong&"%' and a3 like '%"&leibie&"%' and a6 like '%"&a6&"%' and a4 like '%"&a4&"%'  order by id desc"   
end if
rs.open sql,conn,1,1   
  if rs.eof and rs.bof then   
       response.write "<p align='center'>没有找到符合此查询条件的任何文件</p>"   
   else   
	  totalPut=rs.recordcount   
      totalPut=rs.recordcount   
      if currentpage<1 then   
          currentpage=1   
      end if   
      if (currentpage-1)*MaxPerPage>totalput then   
	   if (totalPut mod MaxPerPage)=0 then   
	     currentpage= totalPut \ MaxPerPage   
	   else   
	      currentpage= totalPut \ MaxPerPage + 1   
	   end if   
   
      end if   
       if currentPage=1 then   
           showpage totalput,MaxPerPage,"chaxun.asp"   
            showContent   
            showpage totalput,MaxPerPage,"chaxun.asp"   
       else   
          if (currentPage-1)*MaxPerPage<totalPut then   
            rs.move  (currentPage-1)*MaxPerPage   
            dim bookmark   
            bookmark=rs.bookmark   
           showpage totalput,MaxPerPage,"chaxun.asp"   
            showContent   
             showpage totalput,MaxPerPage,"chaxun.asp"   
        else   
	        currentPage=1   
           showpage totalput,MaxPerPage,"chaxun.asp"   
           showContent   
           showpage totalput,MaxPerPage,"chaxun.asp"   
	      end if   
	   end if   
   rs.close   
   end if   
	           
   set rs=nothing     
   sub showContent   
       dim i   
	   i=0   
%> 
        <div align="center"> 
          <table border="1" cellspacing="0" width="526" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0" height="42">  
      <tr>  
        <td width="50" align="center" height="17"><strong>ID号</strong></td>  
        <td width="401" align="center" height="17"><strong><span lang="zh-cn">主题</span></strong></td>
                <%if action=11 then
ljl_xian=mid(xian,20,1)
if ljl_xian=1 then%>
  
        <td width="67" align="center" height="17"><strong>操作</strong></td> 
         <%end if
         end if%>
                         <%if action=12 then
ljl_xian=mid(xian,10,1)
if ljl_xian=1 then%>
  
        <td width="67" align="center" height="17"><strong>操作</strong></td> 
         <%end if
         end if%>
      </tr>  
<%do while not rs.eof%>  
           
  
      <tr>  
        <td height="21" width="50"><p align="left"> <%=rs("id")%></td>  
        <td width="401" height="21"><p align="left"> <a href="daibaninfo.asp?action=<%=action%>&id=<%=rs("id")%>" target="_self"><%if action=43 then%><%=rs("a1")%><%else%><%=rs("主题")%><%end if%></a><font color="red">&nbsp;</font><font color="#C0C0C0"><%if action=43 then%><%=rs("a8")%><%else%><%=rs("日期")%><%end if%></font></td>  
   
         <%if action=11 then
         xian=session("xian")
ljl_xian=mid(xian,20,1)
if ljl_xian=1 then%>

  
        <td width="67" height="21">
        <p align="center"><a href="del.asp?action=39&id=<%=rs("id")%>">删除</a></td>
          <%end if
          end if%>
                   <%if action=12 then
         xian=session("xian")
ljl_xian=mid(xian,10,1)
if ljl_xian=1 then%>

  
        <td width="67" height="21">
        <p align="center"><a href="del.asp?action=40&id=<%=rs("id")%>">删除</a></td>
          <%end if
          end if%>

      </tr>  
<% i=i+1  
	      if i>=MaxPerPage then exit do  
	      rs.movenext  
	   loop  
		  %>  
    </table>  
        </div>
        <%  
   end sub   
  
function showpage(totalnumber,maxperpage,filename)  
  dim n  
  if totalnumber mod maxperpage=0 then  
     n= totalnumber \ maxperpage  
  else  
     n= totalnumber \ maxperpage+1  
  end if  
  response.write "<form method=Post action="&filename&"?&zhuti="&zhuti&"&wenhao="&wenhao&"&leibie="&liebie&"&neirong="&neirong&"&action="&action&"&a4="&a4&"&a6="&a6&">"  
 ' response.write "<p align='center'><font color='red'>"&typename&"</font>&nbsp;"  
  if CurrentPage<2 then  
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;"  
  else  
    response.write "<a href="&filename&"?page=1&zhuti="&zhuti&"&wenhao="&wenhao&"&leibie="&liebie&"&neirong="&neirong&"&action="&action&"&a4="&a4&"&a6="&a6&">首页</a>&nbsp;"  
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&zhuti="&zhuti&"&wenhao="&wenhao&"&leibie="&liebie&"&neirong="&neirong&"&action="&action&"&a4="&a4&"&a6="&a6&">上一页</a>&nbsp;"  
  end if  
  if n-currentpage<1 then  
    response.write "<font color='#000080'>下一页 尾页</font>"  
  else  
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&zhuti="&zhuti&"&wenhao="&wenhao&"&leibie="&liebie&"&neirong="&neirong&"&action="&action&"&a4="&a4&"&a6="&a6&">"  
    response.write "下一页</a> <a href="&filename&"?page="&n&"&zhuti="&zhuti&"&wenhao="&wenhao&"&leibie="&liebie&"&neirong="&neirong&"&action="&action&"&a4="&a4&"&a6="&a6&">尾页</a>"  
  end if  
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "  
    response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>条记录 <b>"&maxperpage&"</b>条记录/页</font> "  
   response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput type='text' name='txtitle' value="&currentpage&">"  
  
   response.write "<input class=buttonface type='submit'  value=' Goto '  name='cndok'></span></p></form>"       
end function  
%></td>       
  </tr>       
</table>          
  </div>          
</body>          
</html>

⌨️ 快捷键说明

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