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

📄 list.asp

📁 网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<%
   	dim sql
   	dim rs
   	dim rstype
   	dim typesql
   	dim typeid,typename,classname,classid,Nclassname,Nclassid
   	dim title
   	loginname=session("hxf_u_nickname")
ljldj=Session("hxf_u_grade")
set RS=conn.execute("select  * from article where articleID="&request("id"))
cao=rs("yueduzhe")
if ljldj<rs("baomi") then%>
<script language=vbscript> 
MsgBox "错误:权限不够,你不不能越权查看文件!"
location.href = "default.asp"
</script>
<%end if
    rs.close
	set rs=server.createobject("adodb.recordset")
	if InStr(cao,loginname)=0 then
	yuelanzhe=cao+"|"+loginname
	sql="update article set hits=hits+1,yueduzhe='" & yuelanzhe & "' where articleID="&request("id")
	else
	sql="update article set hits=hits+1 where articleID="&request("id")
	end if
	rs.open sql,conn,1,3 
  	sql="select Aclass.class,ANclass.Nclass,article.title,article.classid,article.Nclassid from article,Aclass,ANclass where article.classid=Aclass.classid and article.Nclassid=ANclass.Nclassid and article.articleID="&request("id")
 	rs.open sql,conn,1,1
 	if not rs.eof then
	title=rs("title")
	classid=rs("classid")
	Nclassid=rs("Nclassid")
	classname=rs("class")
	Nclassname=rs("Nclass")
 	end if
	rs.close
%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet>
<title><%=title%>|http://www.e169.net</title>
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">
<TABLE cellSpacing=0 cellPadding=0 width="95%" border=0 align=center>
  <TBODY> 
  <TR> 
    <TD bgColor="<%=Tablebackcolor%>"> 
      <TABLE cellSpacing=1 cellPadding=4 width="100%" border=0>
        <TR> 
          <TD bgColor="<%=Tabletitlecolor%>" colspan="2" background="pic/bjing.gif"> 
            <%
	sql="select class,classid from Aclass"
	rs.open sql,conn,1,1
	if rs.eof and rs.bof then
		response.write "还没有任何栏目"
		response.end
	else
	do while not rs.eof
%>
            |&nbsp;&nbsp;<a href="default.asp?classid=<%=rs("classid")%>" >
            <%if cint(rs("classid"))=cint(classid) then%>
            <font color=red><%=rs("class")%></font>
            <%else%>
            <%=rs("class")%>
            <%end if%>
            </a>&nbsp;&nbsp;|&nbsp;&nbsp;  
            <%   
	rs.movenext   
	loop   
	end if   
	rs.close   
	dim key    
	sql="select * from article where articleid="&request("id")    
	rs.open sql,conn,1,1 
	if rs.eof and rs.bof then 
		response.write "没有找到相关文章。" 
		response.end 
	end if 
	if rs("Nkey")<>"" then    
		key=rs("Nkey")    
	else    
		key="None News"    
	end if   
%> 
          </TD> 
        </TR> 
        <TR>  
          <TD bgColor="<%=Tablebodycolor%>" colspan="2"> |&nbsp;&nbsp;<a href="index.asp?classid=<%=classid%>"><%=classname%></a>>><a href="index.asp?classid=<%=classid%>&Nclassid=<%=Nclassid%>"><%=Nclassname%></a>>><%=title%><br> 
          </TD> 
        </TR> 
        <TR>  
          <TD bgColor="<%=Tablebodycolor%>" colspan="2">  
            <center> 
              <b><font size=3><%=rs("title")%></font></b><br> 
              &nbsp;&nbsp;<%=rs("dateandtime")%>&nbsp;&nbsp;坊子通信公司发文</center>
            <blockquote> <br>
              <%=rs("content")%> <br>
              <br>
              <p align=right> 发文者:  
                <%if not isnull(rs("writer")) then%> 
                <%=rs("writer")%>  
                <%else%> 
                不详  
                <%end if%> 
                <br> 
                来 源:  
                <%if not isnull(rs("writefrom")) then%> 
                <%=rs("writefrom")%>  
                <%else%> 
                不详  
                <%end if%> 
                <br> 
                阅读次数:<%=rs("hits")%><br>
              阅读<span lang="zh-cn">者:</span>
              <font color="#FF0000"><%=rs("yueduzhe")%></font><br> 
                原文档下载:<%if rs("wendang")="无" then%><font color="#FF0000"><span lang="zh-cn">没有提供相应的原文档</span></font><%else%><a href="<%=rs("wendang")%>"><font color="#0000FF">单击此处下载</font></a><%end if%></blockquote> 
            <% 
	rs.close 
	sql="select title,articleid from article where articleid="&request("id")-1    
	rs.open sql,conn,1,1     
  	if rs.eof and rs.bof then    
%> 
            <ul> 
            <li><font color=#0772B1>上篇文章</font>:已经没有了  
              <%else%> 
            <li><font color=#0772B1>上篇文章</font>:<a href="list.asp?id=<%=rs("articleid")%>"><%=rs("title")%></a>  
              <%end if%> 
              <BR> 
              <%	rs.close    
	sql="select title,articleid from article where articleid="&request("id")+1    
	rs.open sql,conn,1,1    
  	if rs.eof and rs.bof then    
%> 
            <li><font color=#0772B1>下篇文章</font>:已经没有了  
              <%else%> 
            <li><font color=#0772B1>下篇文章</font>:<a href="list.asp?id=<%=rs("articleid")%>"><%=rs("title")%></a>  
              <%end if%> 
            </ul> 
          </TD> 
        </TR> 
        <TR>  
          <TD bgColor="<%=Tabletitlecolor%>" width="50%">□- 本周阅读量最高的文件 </TD> 
          <TD bgColor="<%=Tabletitlecolor%>" width="50%">□- 相关文章 </TD> 
        </TR> 
        <tr> 
          <td width="50%" valign=top bgColor="<%=Tablebodycolor%>">  
            <%    
        dim i 
	set rs=conn.execute("SELECT top 7 articleid,title,hits FROM article where month(dateandtime)=month(date()) and day(dateandtime)>=day(date()-6) order by hits desc")    
        i=1 
	do while not rs.eof     
%> 
            <%=i%>.<a href="list.asp?id=<%=rs("articleid")%>" title="<%=rs("title")%>" target=_top> 
            <%if len(rs("title"))>18 then%> 
            <%=left(rs("title"),18)%>... 
            <%else%> 
            <%=rs("title")%> 
            <%end if%> 
            </a>[<font color=red><%=rs("hits")%></font>]<br> 
            <%    
        i=i+1 
	rs.movenext     
	loop    
%> 
          </td> 
          <td width="50%" valign=top bgColor="<%=Tablebodycolor%>">  
            <%    
	set rs=conn.execute("SELECT top 7 articleid,title FROM article where Nkey='"&key&"' order by articleid desc")    
	do while not rs.eof     
    
%> 
            <a href='list.asp?id=<%=rs("articleid")%>'><%=rs("title")%></a><br> 
            <%    
	rs.movenext     
	loop    
%> 
          </td> 
        </tr> 
      </table> 
    </td> 
  </tr> 
  </tbody>  
</table> 
<div align="center">
<script language="JavaScript" src="../copyright.js">  </script> 
</div>
</body> 
</html>                                  
<%    
rs.close    
set rs=nothing    
conn.close    
set conn=nothing 
%>

⌨️ 快捷键说明

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