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

📄 default.asp

📁 文章管理系统,生成静态网页 .
💻 ASP
字号:
<!--#include file=setup.asp-->
<!--#include file=conn.asp-->
<%self=request.servervariables("url")%>
<html>
<head>
<title><%=webtitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META name=KEYWORDS content="驰志网络资源交流中心,www.58down.com">
<meta NAME="author" CONTENT="驰志网络">
<meta NAME="copyright" content="Copyright 2003-2008 - 驰志网络 - 不飞的天使">
<link href="favicon.ico" rel="shortcut icon">
<link href="213cn_gif/css.css" rel="stylesheet" type="text/css">
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<FONT face="宋体">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="89" background="213cn_gif/top_bg.gif"><table width="760" height="89" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1" rowspan="5" bgcolor="#dedede"></td>
<td width="180" rowspan="5" valign="bottom"><img src="logo.gif" width="180" height="72"></td>
<td width="1" rowspan="5" bgcolor="#dedede"></td>
<td width="577" height="26" align="right">

<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40" height="26"><a href="/"><img src="213cn_gif/top_home.gif" alt="" width="40" height="26" border="0"></a></td>
<td width="80"><img src="213cn_gif/top_contactus.gif" alt="联系我们" width="80" height="26"></td>
<td width="60"><img src="213cn_gif/top_sitemap.gif" alt="站点地图" width="60" height="26"></td>
<td width="60"><img src="213cn_gif/top_english.gif" alt="英文版" width="60" height="26"></td>
</tr>
</table>
</td>
<td width="1" rowspan="5" bgcolor="#dedede"></td>
</tr>
<tr>
<td height="1" bgcolor="#dedede"></td>
</tr>
<tr>
<td height="37">&nbsp;搜索位置</td>
</tr>
<tr>
<td height="1" bgcolor="#dedede"><FONT face="宋体"></FONT></td>
</tr>
<tr>
<td height="24" align="center" bgcolor="#f9f9f9">
<table width="480" border="0" cellspacing="0" cellpadding="0">
<%
set conn=server.createobject("adodb.connection")
conn.open connstr
set  rs=conn.execute("select  top 20 * from class order by  num asc")
do while not rs.eof 
%>
<img src="213cn_gif/top_menuar.gif" width="10" height="10">&nbsp;<a href=<%=self%>?class=<%=rs("class")%>><%=rs("class")%></a>
<%
rs.movenext
loop
conn.close
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#dedede"></td>
</tr>
</table>
<table width="760" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<TABLE id="Table6" height="5" cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<TR>
<TD height="5"></TD>
</TR>
</TABLE>
<TABLE id="Table7" cellSpacing="1" cellPadding="0" width="760" align="center" bgColor="#efefef" border="0">
<TR>
<TD bgColor="#ffffff" height="30">&nbsp;
<img src=213cn_gif/ar.gif>&nbsp;<a class=SoftMeun href=index.asp><%=webtitle%></a></TD>
</TR>
<TR>
<TD bgColor="#f7f7f7" height="3"></TD>
</TR>
<TR>
<TD bgColor="#ffffff" height="100">
<TABLE id="Table8" cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
<TR>
<TD height="5"></TD>
</TR>
</TABLE>
<TABLE cellSpacing="1" cellPadding="0" width="740" align="center" bgColor="#dddddd" border="0">
<%
cla=request("class")
response.expires=0
response.buffer=true
set conn=server.createobject("adodb.connection")
conn.open connstr
set rs=server.createobject("adodb.recordset")
if cla<>"" then
rs.open "select * from wz where class='"&cla&"' order by id desc",conn,1,1
end if
if cla="" then
rs.open "select * from wz  order by id desc",conn,1,1
end if
onepage=15
c=rs.recordcount
rs.pagesize=onepage
pages=rs.pagecount

page=request("page")
if page<=0 then page=1
pump=onepage*(page-1)

if c<1 then 
response.write "<TR bgColor=#f2f2f2 height=30><TD>没有符合条件的文章</TD></TR>"
response.end
end if
%>
</TABLE>
<TABLE cellSpacing="1" cellPadding="0" width="740" align="center" bgColor="#dddddd" border="0">
<TR bgColor=#f2f2f2 height=30>
<%if cla<>"" then%>
<TD>&nbsp;<b><a class=SoftMeun href=./default.asp?class=<%=cla%>><%=cla%></a></b>
</TD>
<%end if%>
</TR>
<%
rs.move pump
for i=1 to (onepage+1)
if rs.eof then exit for
%>
<TR bgColor="#ffffff" height="30">
<TD>&nbsp;·<a class=SoftMeun target=_blank title="访问人数<%=rs("count")%>" href=58down/<%=rs("num")%>.htm><%=rs("title")%></a>&nbsp;<font color=gray>作者:<%=rs("user")%>&nbsp;发表时间:<%=rs("date")%></font></TD>
</TR>
<%
rs.movenext
next
set rs=conn.execute("select * from config")
count=rs("count")
createtime=rs("createtime")
if session("count")<>"1" then
conn.execute("update config set count=count+1")
end if
session("count")="1"
conn.close

%>







<TR bgColor="#f2f2f2" height="15">
<TD>&nbsp;共有<%=c%>条信息&nbsp<%=page%>/<%=pages%>页 
<%
if page<6 then
firstnum=1
lastnum=6
	if lastnum>pages then lastnum=pages
else
firstnum=page-3
lastnum=page+3
	if lastnum>pages then lastnum=pages
end if
%>
<a class=SoftMeun href=<%=self%>?class=<%=cla%>&page=1 title="第一页"> <<</a>
<%for i=firstnum to lastnum%>
<a class=SoftMeun href=default.asp?class=<%=cla%>&page=<%=i%>>
<%=i%>
</a>
<%next%>
<a class=SoftMeun href=<%=self%>?class=<%=cla%>&page=<%=pages%> title="最后一页"> >></a>
</TD>
</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
<TR>
<TD height="5"></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE height="5" cellSpacing="0" cellPadding="0" width="760" align="center" border="0">
<TR><TD height="5"></TD>
</TR>
</TABLE>
</FONT>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD bgColor="#dedede" height="1"></TD>
</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD bgColor="#f9f9f9" height="60">
<table width="760" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td height="15"></td>
  </tr>
  <tr>
    <td align="center" height="20">驰志网络版权所有 2003-2005&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;法律声明&nbsp;&nbsp;|&nbsp;&nbsp;服务条款</a>&nbsp;&nbsp;|&nbsp;&nbsp;隐私声明&nbsp;&nbsp;|&nbsp;&nbsp;联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;广告服务</td>
  </tr>
  <tr>
    <td height="25"></td>
  </tr>
</table>
</TD>
</TR>
</TABLE>
</body>
</HTML>

⌨️ 快捷键说明

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