关于新闻发布系统的问题?

good8232 2003-12-15 09:15:36
现在请大家看看autoup.asp的代码。
《% @language="vbscript" %》
《!--#include Virtual="/news/data/data.inc"--》
《%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from data Order by news_id Desc"
rs.open sql,conn,3,2
if rs.bof then
response.end
end if
dispmess="《table border=0 width=100% cellpadding=0》"

rs.movefirst
disp=""
count=0

disp="《tr》《td width=100% 》《b》广州市场《/b》《/td》《/tr》"

do while not rs.eof

'广州市场

if Cint(rs("news_class"))=3 then

disp=disp&"《tr》《td width=100% 》《a
href=http://www.aaaaa.com.cn/news/read.asp?news_id="&rs("news_id")&"
target=_blank》>>"&rs("news_title")&"《/a》(《font size=1》"&rs
("news_year")&"-"&rs("news_month")&"-"&rs("news_day")&" "&rs
("news_time")&"《/font》)《/td》《/tr》"
if count》=10 then 'clng(application("disp_1"))-1 then
exit do
end if
count=count+1
end if
rs.movenext

loop
disp=disp&"《tr》《td width=100% align=right》【更多新闻...】
《/td》《/tr》"
dispmess=dispmess&disp
rs.movefirst
disp=""
count=0

disp="《tr》《td width=100% 》《b》市场风云《/b》《/td》《/tr》"

do while not rs.eof

'市场风云

if Cint(rs("news_class"))=1 then

disp=disp&"《tr》《td width=100% 》《a
href=http://www.aaaaa.com.cn/news/read.asp?news_id="&rs("news_id")&"
target=_blank》>>"&rs("news_title")&"《/a》(《font size=1》"&rs
("news_year")&"-"&rs("news_month")&"-"&rs("news_day")&" "&rs
("news_time")&"《/font》)《/td》《/tr》"
if count》=10 then 'clng(application("disp_2"))-1 then
exit do
end if
count=count+1
end if
rs.movenext

loop
disp=disp&"《tr》《td width=100% align=right》【更多新闻...】
《/td》《/tr》"
dispmess=dispmess&disp
rs.movefirst
disp=""
count=0
disp="《tr》《td width=100% 》《b》IT新闻《/b》《/td》《/tr》"

do while not rs.eof
'IT新闻
if Cint(rs("news_class"))=2 then

disp=disp&"《tr》《td width=100% 》《a
href=http://www.aaaaa.com.cn/news/read.asp?news_id="&rs("news_id")&"
target=_blank》>>"&rs("news_title")&"《/a》(《font size=1》"&rs
("news_year")&"-"&rs("news_month")&"-"&rs("news_day")&" "&rs
("news_time")&"《/font》)《/td》《/tr》"
if count》=50 then 'clng(application("disp_3"))-1 then
exit do
end if
count=count+1

end if
rs.movenext
loop
disp=disp&"《tr》《td width=100% align=right》【更多新闻...】
《/td》《/tr》"
dispmess=dispmess&disp

dispmess=dispmess&"《/table》"

dispmess="document.write('"&dispmess&"')"
%》
《%=dispmess%》


http://www.aaaaa.com.cn/news/read.asp这个read.asp程序是什么?
...全文
20 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧