% if request.QueryString("type") = "" then ne_type = 1 else ne_type = request.QueryString("type") end if set rs=server.CreateObject("adodb.recordset") sql_cmd = "select * from [news] where [news].ne_type = " & ne_type & " and ne_online = 'y' order by id desc" rs.open sql_cmd,OBJConn,1,1 page = request("page") if page = "" then page = 1 else page = cint(page) end if rs.pagesize = 10 totalpage = rs.PageCount totalnum = rs.recordcount if page < 1 then page = 1 elseif page > totalpage then page = totalpage end if %>
|
||||||||||||||||||||||||||||||
|