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

📄 list.asp

📁 是个不错的文件代码,希望大家好好用,
💻 ASP
字号:
<%
id=request("id")
if id="" then 
   response.write "参数不足"
   response.end
end if     
%>
<!--#include file="conn.asp"-->
<%
sql="select * from learning where articleid="&id
rs.open sql,conn,1,2
if rs.bof or rs.eof then
   response.write "该内容已经不删除或者不存在"
   rs.close
   set rs=nothing
   conn.close
   set conn=nothing
   response.end
end if   
rs("hits")=rs("hits")+1
rs.update
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title><%=rs("title")%></title>
<STYLE type=text/css>BODY {
	COLOR: #000000; FONT-SIZE: 12px
}
TD {
	COLOR: #000000; FONT-SIZE: 12px
}
TH {
	COLOR: #6f1006; FONT-SIZE: 12px
}
A {
	FONT-SIZE: 12px
}
A:link {
	COLOR: blue;TEXT-DECORATION: none;
}
A:visited {
	COLOR: blue;TEXT-DECORATION: none;

}
A:hover {
	COLOR: green;
}
A.top:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A.top:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A.top:hover {
	COLOR: blue; TEXT-DECORATION: underline
}
</STYLE>


</head>

<body topmargin="2" leftmargin="0" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="469" align="center">                        
                        <tr>                                                                   
                          <td width="469" bgcolor="#000000">                                                                   
                            <table border="0" cellspacing="1" width="100%" height="35">                                                                   
                              <tr>                                                                   
                                <td width="100%" bgcolor="#00659C" height="31">                                                                   
                                  <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">                                                                   
                                    <tr>                                                                   
                                      <td width="100%" bgcolor="#00659C">                                                                   
                                        <table border="0" cellspacing="1" width="100%" height="287">
                    <tr>                                                                  
                                            
                      <td width="100%" bgcolor="#40BDE8" align="center" height="21"> 
                        〖<%=rs("title")%>〗 浏览:<%=rs("hits")%>次 添加日期:<%=rs("dateandtime")%> 
                      </td>                                                                                                                                 
                                          </tr>                                          
                                                                            
                                                                                                                                             
                                                                                        
                                  <tr>                                                                                   
                                            
                      <td width="100%" bgcolor="#ffffff" align="left" height="247" valign="top"> 
                        <table border="0" cellspacing="0" width="96%" cellpadding="0" height="173" align="center">
                                                
                                                <tr>
                                                  <td width="100%" height="201"><br><%=rs("content")%><br></td>
                                                </tr><tr>
                                                  <td width="100%" height="16">
                                                    <hr style="border-style: dotted" size="1" color="#808080">
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td width="100%" height="17">发表于:<%=rs("dateandtime")%></td>
                                                </tr>
                                                <tr>
                                                  <td width="100%" height="17">  浏&nbsp; 
                                                    览:<%=rs("hits")%>次</td>
                                                </tr>
                                                <tr>
                                                  <td width="100%" height="17">上一篇:
                                                  <%
                                                  rs.close
                                                  sql="select * from learning where articleid="&id-1
rs.open sql,conn,1,2
if rs.bof or rs.eof then
   response.write "上一篇不存在"
   else
   response.write "<a href=list.asp?id="&id-1&">"&rs("title")&"</a>"
   end if  
rs.close   
%>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td width="100%" height="17">下一篇:
                                                  <%
                                                  sql="select * from learning where articleid="&id+1
rs.open sql,conn,1,2
if rs.bof or rs.eof then
   response.write "上一篇不存在"
   else
   response.write "<a href=list.asp?id="&id+1&">"&rs("title")&"</a>"
   end if     
%>
                                                  </td>
                                                </tr>
                                              </table>
                                            </td>                                                                                                                               
                                          </tr>                                                 
                                                                                        
                                     <tr>                                                                               
                                            
                      <td width="100%" bgcolor="#40BDE8" align="left" height="17"> 
                      </td>                                                                      
                                          </tr>                                                                      
                                                                      
                                        </table>                                                                      
                                      </td>                                                                      
                                    </tr>                                                                      
                                  </table>                                                                      
                                </td>                                                                      
                              </tr>                                                                      
                            </table>                                                                      
                          </td>                                                                      
                        </tr>                                                                      
                      </table>                                                                                                                                    
 <%
 rs.close
 set rs=nothing
 conn.close
 set conn = nothing
 %>
    
</body>    
    
</html>    

⌨️ 快捷键说明

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