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

📄 special.asp

📁 综合信息管理系统
💻 ASP
字号:
<%@ Language=VBScript%>

<!--#include file=include/conn.asp -->
<!--#include file=include/config.asp -->
<%


set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from BigClass"
rs.Open rs.Source,conn,1,1

dim ArrayBigClassID(10000),ArrayBigClassName(10000)
BigClassCount=rs.RecordCount
for i=1 to BigClassCount
ArrayBigClassID(i)=rs("BigClassID")
ArrayBigClassName(i)=trim(rs("BigClassName"))
rs.MoveNext
next
rs.Close

PageShowSize = 10            '每页显示多少个页
MyPageSize   = 20           '每页显示多少条新闻
	
If Not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Or Request("page") <=0 Then
MyPage=1
Else
MyPage=Int(Abs(Request("page")))
End if
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>专题__<%=redcaff%></title>
<LINK href=news.css rel=stylesheet>
</head>

<body topmargin="0">
<!--#include file=include/top.asp -->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top" bgcolor="<%=border%>">
<td height="1" width="1"></td>
<td height="1" width="748"></td>
<td height="1" width="1"></td>
</tr>
</table>
<table border="0" width="750" align=center cellspacing="0" cellpadding="0" bgcolor="<%=border%>">
<tr valign="middle">
<td width="1" ></td>
<td bgcolor=#FFFFFF  width="15">&nbsp;</td>
<td bgcolor=#FFFFFF align=left width="736" height="22" ><b>分类栏目</b>
<%for i=1 to BigClassCount

TdString="&nbsp;|&nbsp;<a class=class href='BigClass.asp?BigClassID=" & ArrayBigClassID(i) & "&BigClassName="& ArrayBigClassName(i) &"'>" & ArrayBigClassName(i) & "</a>"

Response.Write TdString

Next
%>
</td>
<td width="1" align=left></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="<%=border%>">
<tr valign="top">
<td height="1" width="1" bgcolor="<%=border%>"></td>
<td height="1" width="748" bgcolor="<%=border%>"></td>
<td height="1" width="1" bgcolor="<%=border%>"></td>
</tr>
<tr valign="top">
<td bgcolor="<%=border%>" width="1"></td>
<td width="748" bgcolor="<%=t_m_bg%>">&nbsp;</td>
<td bgcolor="<%=border%>" width="1"></td>
</tr>
<tr valign="top">
<td height="1" width="1" bgcolor="<%=border%>"></td>
<td height="1" width="748" bgcolor="<%=border%>"></td>
<td height="1" width="1" bgcolor="<%=border%>"></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="<%=border%>">
<tr>
<td>
<table width="748" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center">
<tr>
<td width="15">&nbsp;</td>
<td width="637" height="40">当前位置:<a class=class href="./" >首页</a>&gt;&gt;专题</td>
<td width="91">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top" bgcolor="<%=border%>">
<td height="1" width="1"></td>
<td height="1" width="748"></td>
<td height="1" width="1"></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="<%=border%>" width="1"></td>
<td width="160" align="center" valign="top" bgcolor="<%=l_bg%>">
<table border="0" width="100%" cellspacing="1" cellpadding="0" align="center"  bgcolor="<%=l_main%>">
<tr>
<td width="100%" bgcolor="<%=l_top%>" height="18">
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=l_main%>">
<tr>
<td  bgcolor="<%=l_top%>" align="center" ><font class=l_title>总浏览排行</font></td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="100%" bgcolor="<%=l_main%>">
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<%
rs.Source="select top " & top_txt & " NewsID,Title,BigClassName,SmallClassName,SpecialID,click from News where hot=1 and image=0 order by click DESC"
rs.Open rs.Source,conn,1,1
while not rs.EOF
%>
<tr>
<td>&nbsp;<img src="images/xpgo.gif" width="4" height="7" border="0">
<a class=lift_top href="ReadNews.asp?NewsID=<%=rs("NewsID")%>&BigClassName=<%=rs("BigClassName")%>&SmallClassName=<%=rs("SmallClassName")%>&SpecialID=<%=rs("SpecialID")%>" target="_blank"><%if len(rs("title"))>20 then%><%=left(rs("title"),20)%>...<%else%><%=rs("title")%><%end if%></a>&nbsp;<font color=red><%=rs("click")%></font>
                  <%
rs.MoveNext
wend
rs.close
%>
</table>
</td>
</tr>

</table>
</td>
<td width="1"></td>
<!-----------------------------------------------右-------------------------------------------------------->
    <td width="587" align="center" valign="top" bgcolor="<%=m_bg%>" height="378"> 
      <table border="0" cellpadding="1" cellspacing="0" width="90%">
<%
set rs2=server.CreateObject("ADODB.RecordSet")  '专题
rs2.Source="select * from Special  order by SpecialID DESC "
rs2.Open rs2.Source,conn,1,1

Rs2.PageSize     = MyPageSize
MaxPages         = Rs2.PageCount
Rs2.absolutepage = MyPage
total            = Rs2.RecordCount
%>
<tr>
<td width=100% height="10" valign="middle"></td>
</tr>
<%
If Not Rs2.eof then
i = 0
do until Rs2.Eof or i = Rs2.PageSize
%>
<tr>
<td width="100%" height="20"><img src="images/go.gif" width="10" height="9" border="0">&nbsp;<a class=middle href="Special_News.asp?SpecialID=<%=rs2("SpecialID")%>&SpecialName=<%=rs2("SpecialName")%>"><%=trim(rs2("SpecialName"))%></a></td>
</tr>
<%
Rs2.MoveNext
i = i + 1
loop
%>
<tr>
<td width="100%">&nbsp; </td>
</tr>
<tr>
<td width="100%" align=center>第 <%=Mypage%>/<%=Maxpages%> 页,每页 <%=MyPageSize%>
<%
url="Special.asp?"
PageNextSize=int((MyPage-1)/PageShowSize)+1
Pagetpage=int((total-1)/Rs2.PageSize)+1

if PageNextSize >1 then
PagePrev=PageShowSize*(PageNextSize-1)
Response.write "<a class=black href='" & Url & "page=" & PagePrev & "' title='上" & PageShowSize & "页'>上一翻页</a> "
Response.write "<a class=black href='" & Url & "page=1' title='第1页'>页首</a> "
end if
if MyPage-1 > 0 then
Prev_Page = MyPage - 1
Response.write "<a class=black href='" & Url & "page=" & Prev_Page & "' title='第" & Prev_Page & "页'>上一页</a> "
end if

if Maxpages>=PageNextSize*PageShowSize then
PageSizeShow = PageShowSize
Else
PageSizeShow = Maxpages-PageShowSize*(PageNextSize-1)
End if
If PageSizeShow < 1 Then PageSizeShow = 1
for PageCounterSize=1 to PageSizeShow
PageLink = (PageCounterSize+PageNextSize*PageShowSize)-PageShowSize
if PageLink <> MyPage Then
Response.write "<a class=black href='" & Url & "page=" & PageLink & "'>[" & PageLink & "]</a> "
else
Response.Write "<B>["& PageLink &"]</B> "
end if
If PageLink = MaxPages Then Exit for
Next

if Mypage+1 <=Pagetpage  then
Next_Page = MyPage + 1
Response.write "<a class=black href='" & Url & "page=" & Next_Page & "' title='第" & Next_Page & "页'>下一页</A>"
end if

if MaxPages > PageShowSize*PageNextSize then
PageNext = PageShowSize * PageNextSize + 1
Response.write " <A class=black href='" & Url & "page=" & Pagetpage & "' title='第"& Pagetpage &"页'>页尾</A>"
Response.write " <a class=black href='" & Url & "page=" & PageNext & "' title='下" & PageShowSize & "页'>下一翻页</a>"
End if

				
End If
Rs2.close

%>
</td>
</tr>
<tr>
<td width="100%" align=center>&nbsp;</td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
    </td>
<td bgcolor="<%=border%>" width="1"></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<tr valign="top" bgcolor="<%=border%>">
<td height="1" width="1"></td>
<td height="1" width="748"></td>
<td height="1" width="1"></td>
</tr>
</table>
<!--#include file=include/bottom.asp -->
</body>

</html>

⌨️ 快捷键说明

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