indexpost=indexpost+ "<td class=""indexpost"">" If DataType=1 Then sql="select top 10 ID,BoardID,Subject,FileName,CreateHtml from LxTel_Topic where IsDel=false and postsh=false and isbest=1 order by lastposttime desc " Else sql="select top 10 ID,BoardID,Subject,FileName,CreateHtml from LxTel_Topic where IsDel=false and postsh=false order by lastposttime desc " End IF Set rs = Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,1 while not rs.eof if Application(BBSInfo&"sysinfo")(78,0)=true then indexpost=indexpost+ "·<a href=""post_"&rs("boardid")&"_"&rs("id")&"_1.html"" target=""_blank"">"&InterceptString(rs("subject"),36)&"</a><br>" else indexpost=indexpost+ "·<a href=""dispost.asp?boardid="&rs("boardid")&"&postid="&rs("id")&""" target=""_blank"">"&InterceptString(rs("subject"),30)&"</a><br>" end if rs.movenext wend rs.close set rs=nothing indexpost=indexpost+ "</td>"
|