|
<%
if not rs.eof then
cid=rs("id")
type_name=rs("typename")
%>
<%
sql="select id,title,content,filepath1 from t_news where class="&cid&" and flag=1 and banben=0 order by jointime desc"
RsInfo.open sql,conn,1,1
%>
|
<%=type_name%> |
|
<%
if not rsinfo.eof then
id=RsInfo("id")
title=RsInfo("title")
filepath1=replace(rsinfo("filepath1"),"../../","")
content=rsinfo("content")
content1=gettitle(content,140)
%>
|
|
<%=content1%> |
<% end if%>
|
|
详情 >>
|
<% RsInfo.close%>
<%
rs.movenext
end if
%>
<%
if not rs.eof then
cid=rs("id")
type_name=rs("typename")
%>
<%
sql="select top 10 id,title,content,filepath1 from t_news where class="&cid&" and flag=1 and banben=0 order by jointime desc"
RsInfo.open sql,conn,1,1
%>
|
<%=type_name%> |
|
<%
for a=0 to 9
if not rsinfo.eof then
id=RsInfo("id")
title=RsInfo("title")
title1=gettitle(title,200)
filepath1=replace(rsinfo("filepath1"),"../../","")
content=rsinfo("content")
content1=gettitle(content,150)
%>
|
|
|
|
<%
rsinfo.movenext
else
exit for
end if
next
%>
|