| |
| °ïÖúĿ¼ |
<%
set rsh=server.CreateObject("adodb.recordset")
sqlh="select id,title from [news] where lbid=6 order by px"
rsh.open sqlh,conn,1,1
for i=1 to rsh.recordcount
if rsh.eof then exit for
%>
| "><%=showtitle(rsh("title"),"12")%> |
<%
rsh.movenext
next
rsh.close
%>
|
|
|
<%
if request("id")="" then
sql="select top 1 * from [news] where lbid=6 order by px"
else
sql="select * from [news] where id="&clng(request("id"))
end if
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
%>
| <%=rs("title")%> |
| <%=rs("longcontent")%> |
<%
rs.close
%>
|