📄 default.asp
字号:
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" width="100%" 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 bgcolor="<%=l_main%>" height="18">
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<% dim ii
ii = 0
'rs.Source="select top " & top_txt & " NewsID,Title,BigClassName,SmallClassName,SpecialID,Click from News where year(updatetime)=year(date()) and month(updatetime)=month(date()) and day(updatetime)>=day(date()-6) and image=0 and hot=1 order by click DESC" '选择本周
rs.Source="select top " & top_txt & " NewsID,Title,BigClassName,SmallClassName,SpecialID,Click from News where year(updatetime)=year(date()) and month(updatetime)=month(date()) and image=0 and hot=1 order by click DESC" '选择本月
rs.Open rs.Source,conn,1,1
if rs.bof and rs.eof then
response.write "<td align=center>本月无更新文章</td>"
else
do while not rs.eof
%> <tr>
<td> <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")%>" title="<%=rs("title")%>" target="_blank"><%if len(rs("title"))>20 then%><%=left(rs("title"),20)%>...<%else%><%=rs("title")%><%end if%></a><font color="#FF0000"> <%=rs("click")%></font>
</td>
</tr>
<% ii = ii + 1
if ii>10 then exit do
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
</table>
</td>
</tr>
</table>
</td>
<td width="1" ></td>
<td bgcolor="<%=m_bg%>" width="406" align="center" valign="top">
<%
'------------------------------------------------------------------------------------------------------------中间栏开始
if rseof=1 then
for i=1 to RecordCount
BigClassID=ArrayBigClassID(i)
BigClassName=ArrayBigClassName(i)
if ArrayBigClassView(i)=1 then
%>
<table width="98%" border="0" align="center" cellspacing="1" cellpadding="0" bgcolor="<%=m_top%>">
<tr>
<td bgcolor="<%=l_top%>" >
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=m_main%>">
<tr>
<td bgcolor=<%=m_top%> height="18"> <img src=images/ico.gif> <font class=m_tittle><%=BigClassName%></font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=100% bgcolor=<%=m_main%>>
<table width="98%" border="0" align="center" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="<%=m_main%>">
<%
set rs3=server.CreateObject("ADODB.RecordSet")
rs3.Source="select top " & top_news & " NewsID,Title,UpdateTime,BigClassName,SmallClassName,SpecialID,image,click,check from News where BigClassName='" & BigClassName &"' order by NewsID DESC"
rs3.Open rs3.Source,conn,1,1
while not rs3.EOF
newsurl="ReadNews.asp?NewsID=" & rs3("NewsID") & "&BigClassName=" & rs3("BigClassName") & "&SmallClassName=" & rs3("SmallClassName") & "&SpecialID=" & rs3("SpecialId")
datetime="<font class=middle>(" & year(rs3("UpdateTime")) &"年"& Month(rs3("UpdateTime")) &"月"& Day(rs3("UpdateTime")) &"日)[<font color=#FF0000>" & rs3("click") &"</font>]</font>"
if rs3("image")=>1 then
img="<img src='images/img.gif' height='10' border='0'>"
else
img=""
end if
%>
<%if rs3("check")="1" then%>
<tr>
<td height=18><img src="images/go.gif" width="10" height="9" border="0"> <a class=middle href="<%=newsurl%>" title="<%=rs3("title")%>" target="_blank"><%if len(rs3("title"))>16 then%><%=left(rs3("title"),16)%>...<%else%><%=rs3("title")%><%end if%></a><%=datetime%><%=img%><%if year(rs3("updatetime"))=year(date()) and month(rs3("updatetime"))=month(date()) and day(rs3("updatetime"))=day(date()) then%><img src="images/new.gif" width="27" height="10"><%end if%>
</td>
</tr><%end if%>
<%
rs3.MoveNext
wend
%>
<tr>
<td width=100% align=right height=18 bgcolor="<%=m_main%>"><a class=class href='BigClass.asp?BigClassid=<%=BigClassid%>&BigClassName=<%=BigClassName%>'>[
更多...]</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" height="6">
<tr>
<td></td>
</tr>
</table>
<%
end if
next
rs3.close
set rs3=nothing
else
Response.Write "<table width=98% border=0 height=25><tr><td>暂无大类</td></tr></table>"
end if
%>
<table width="98%" border="0" align="center" cellspacing="1" cellpadding="0" bgcolor="<%=m_top%>">
<tr>
<td bgcolor="<%=l_top%>" >
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=m_main%>">
<tr>
<td bgcolor="<%=m_top%>" height="18"> <img border=0 src="images/Ico.gif">
<font class=m_tittle>论坛热点</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="<%=m_main%>">
<table width="96%" border="0" align="center">
<tr>
<td>
<script src="../bbs/news.asp?Show=12"></script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="0" height="6">
<tr>
<td></td>
</tr>
</table>
</td>
<td width="1" ></td>
<td bgcolor="<%=l_main%>" width="181" align="center" valign="top">
<table border="0" cellspacing="1" cellpadding="0" width="100%" align="center" bgcolor="<%=r_main%>">
<tr>
<td width="100%" bgcolor="<%=r_top%>" height="18" >
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=r_main%>">
<tr>
<td bgcolor="<%=r_top%>" align="center"><font class=r_title>本站公告</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="<%=r_main%>">
<table width="175" border="0" cellspacing="1" cellpadding="8" align="center">
<tr>
<td>
<script language=JavaScript>marquee1();</script>
<%=gg%>
<script language=JavaScript>marquee2();</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!----------------------------------------图片栏------------------------------------------------->
<table border="0" cellspacing="1" cellpadding="0" width="100%" align="center" bgcolor="<%=r_main%>">
<tr>
<td width="100%" bgcolor="<%=r_top%>" height="18" >
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<%=r_main%>">
<tr>
<td bgcolor="<%=r_top%>" align="center"><font class=r_title>热点图片</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="<%=r_main%>" align="center">
<%
set rs3=server.CreateObject("ADODB.RecordSet")
rs3.Source ="select top " & top_img & " NewsID,Title,Content,UpdateTime,Image,BigClassName,SmallClassName,SpecialID,check from News where (image>0 and hot=1) order by NewsID DESC"
rs3.Open rs3.Source,conn,1,1
if not rs3.EOF then
while not rs3.EOF
Content=rs3("Content")
if image>0 then
for i=1 to image
Content=replace(Content,"[[image" & i & "]]","")
next
end if
content=replace(content,"[[","<")
content=replace(content,"]]",">")
%><%if rs3("check")="1" then%>
<a href="ReadNews.asp?NewsID=<%=rs3("NewsID")%>&BigClassName=<%=rs3("BigClassName")%>&SmallClassName=<%=rs3("SmallClassName")%>&SpecialID=<%=rs3("SpecialID")%>" title="<%=rs3("title")%>" target=_blank><br>
<%=HotImg(rs3("NewsID"),1)%></a><br>
<br>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" style="TABLE-LAYOUT: fixed">
<tr>
<td style="WORD-WRAP: break-word"><%=left(content,80)%>...<br>(<%=trim(rs3("UpdateTime"))%>)<br> <a class=right href="ReadNews.asp?NewsID=<%=rs3("NewsID")%>&BigClassName=<%=rs3("BigClassName")%>&SmallClassName=<%=rs3("SmallClassName")%>&SpecialID=<%=rs3("SpecialID")%>" target=_blank>[详细内容]</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="12">
<tr>
<td></td>
</tr>
</table><%end if%>
<%
rs3.MoveNext
wend
else
Response.Write "<tr><td width=100% align=center height=18 bgcolor="& r_main &">暂无图片</td></tr>"
end if
rs3.close
set rs3=nothing
%>
</td>
</tr>
</table>
<!----------------------------------------------------------------------------------------------------------->
</td>
<td bgcolor="<%=border%>" width="1"></td>
</tr>
</table></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 + -