<% sub ShowPicArticle(lm,num,word,css) strPic="" set rs=server.createobject("adodb.recordset") sqltext="Select * from lm where lm='"& lm &"'" rs.open sqltext,conn id=trim(rs("id")) rs.close set rs=server.createobject("adodb.recordset") sqltext="Select top " & num & " * from news where lm='"+id+"' order by id desc" rs.open sqltext,conn for ia=1 to num if rs.eof then else Title=trim(rs("title")) TitleLen=len(Title) newsdate=cstr(YEAR(rs("time")))&"-"&cstr(MONTH(rs("time")))&"-"&cstr(DAY(rs("time"))) if TitleLen" strPic=strPic+"" else DisplayTitle=mid(Title,1,word) strPic=strPic+"" strPic=strPic+"" end if rs.movenext end if next rs.close strPic=strPic+"
 " &Title &"" strPic=strPic+"
 " strPic=strPic+""&DisplayTitle&"...
" response.write strPic end sub %> 信息中心
  首页>信息中心

 
    <% call ShowPicArticle("文博快讯",6,20,"d") %>
    
 
 
文博快讯