|
蓝森林 http://www.lslnet.com 2006年8月25日 8:28
[急]大家帮帮我看看这段代码,在线等
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="100%" id="AutoNumber3">
<tr>
<td height="2" valign="top" bgcolor="#FFFFFF"><img src="IMAGES/kb.gif" width="9" height="3"></td>
</tr>
<tr>
<td height="25" background="IMAGES/menu-z.gif" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td valign=top background="IMAGES/menu-zd.gif">
<!--#include file=daodu.asp -->
</td>
</tr>
<tr>
<td valign=top background="IMAGES/menu-zd.gif">
<%
if rseof=1 then
for i=1 to RecordCount
typeID=Arraytyid(i)
typeName=ArraytyName(i)
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<tr>
<td height="25" background="IMAGES/menu-zz.gif" bgcolor="#FFFFFF"> <img src=images/ico.gif align="baseline"> <%=typeName%></td>
</tr>
<% dim rs3
set rs3=server.CreateObject("ADODB.RecordSet")
rs3.Source="select top " & top_news & " * from News where (typeid=" & typeid &" and checkked=1) order by istop desc,newsid DESC"
rs3.Open rs3.Source,conn,1,1
while not rs3.EOF
if showyear=1 then
newsurl="ReadNews.asp?NewsID=" & rs3("NewsID")
datetime="<font class=middle>(" & year(rs3("UpdateTime")) &"年"& Month(rs3("UpdateTime")) &"月"& Day(rs3("UpdateTime")) &"日)</font>"
else
newsurl="ReadNews.asp?NewsID=" & rs3("NewsID")
datetime="<font class=middle>("& Month(rs3("UpdateTime")) &"月"& Day(rs3("UpdateTime")) &"日)</font>"
end if
if rs3("picnews")=1 then
img="<img src='IMAGES/IMG.gif' border='0'> "
else
img=""
end if
%>
<%
B=rs3("bigclassID")
set rs22=server.createobject("adodb.recordset")
sql="SELECT bigclassID,bigclassname FROM bigclass WHERE bigclassID="&B
Set rs22=Conn.Execute(sql)
A=rs22("bigclassname")
rs22.close
set rs22=Nothing
''''增加小类名称程序结束
%>
<tr>
<td height=18><div align="center">
<table width="98%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="67%"> <img src="images/006.gif" border="0">
<%=A%>|<a class=middle href="<%=newsurl%>" title="<%=rs3("title")%>" target="_blank" >
<%=img%>
<%if showtime="1" then%>
<<%=rs3("titletype")%>><font color="<%=rs3("titlecolor")%>">
<%if len(rs3("title"))>1 then%>
<%=left(rs3("title"),12)%>
<%else%>
<%=trim(rs3("title"))%>
<%end if%>
<%end if%>
</font></<%=rs3("titletype")%>> </a>
<%''if showauthor="1" then%>
<%''=rs3("Author")%>
<%''end if%>
</td>
<td width="17%">
<%if showtime="1" then%>
<%=datetime%>
<%end if%>
</td>
<td width="0%" align="center">
<%if showclick="1" then%>
<font color=#666666><%=rs3("click")%></font>
<%end if%>
</td>
<td width="13%" align="center">
<%if rs3("istop")="1" then%>
<img src="images/istop.gif" >
<%end if%>
<%if rs3("goodnews")="1" then%>
<img src="images/g.gif" >
<%end if%>
<%if year(rs3("updatetime"))=year(date()) and month(rs3("updatetime"))=month(date()) and day(rs3("updatetime"))=day(date()) then%>
<img src="images/new.gif">
<%end if%>
</td>
</tr>
</table>
</div></td>
</tr>
<%rs3.MoveNext
wend
%>
<tr>
<td width=50% align=right height=18><a class=class href='type.asp?typeid=<%=typeid%>'><img src="images/more.gif" border="0" alt="更多<%=typeName%>"> </a></td>
</tr>
</table>
<%
next
rs3.close
set rs3=nothing
else
Response.Write "<table width=98% border=0 height=25><tr><td>暂无大类</td></tr></table>"
end if
%>
</td>
</tr>
</table>
完
这里我下载的315安全网技术版的源代码
上面是首页栏目调用的一段代码,好像是重复运算的意思,可是我想一个栏目一个栏目的单位调用,有没有朋友会改?能帮帮小弟吗?小弟万分感激
如果可以的话加偶的QQ:240546751,小弟把系统给你传过来
|
|