%@ ENABLESESSIONSTATE = FALSE %>
<% dim typename,classid,classname if IsNumeric(Request.QueryString("typeid"))=False then Response.Redirect"info.asp?info=錯誤的參數" else typeid=cint(Request.QueryString("typeid")) end if set temprs=conn.execute("select name,classid from type where id="&typeid) typename=temprs(0) classid=temprs(1) set temprs=nothing set temprs=conn.execute("select name from class where id="&classid) classname=temprs(0) set temprs=nothing %><% Dim ipagecount Dim ipagecurrent Dim strorderBy Dim irecordsshown if request.querystring("page")="" then ipagecurrent=1 else ipagecurrent=cint(request.querystring("page")) end if sql = "SELECT minipic,ck,name,id FROM desktop where typeid="&typeid&" ORDER BY id DESC" Set rs = Server.CreateObject("ADODB.Recordset") rs.pagesize = 12 rs.cachesize = 12 rs.open sql,conn,1,1 ipagecount = rs.pagecount If ipagecurrent > ipagecount Then ipagecurrent = ipagecount If ipagecurrent < 1 Then ipagecurrent = 1 if ipagecount=0 then response.write " | |||
沒有任何文件 | |||
"
if not rs.eof then
Response.Write" "&rs("name")&" | 察看:"&rs("ck")&" | "
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write""
if not rs.eof then
Response.Write" "&rs("name")&" | 察看:"&rs("ck")&" | "
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write""
if not rs.eof then
Response.Write" "&rs("name")&" | 察看:"&rs("ck")&" | "
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write""
if not rs.eof then
Response.Write" "&rs("name")&" | 察看:"&rs("ck")&" | "
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write"
每頁顯示 12 個文件 共有 "&ipagecount&" 頁 當前為第 "&ipagecurrent&" 頁 " if ipagecurrent=1 then Response.Write"首頁 | " else Response.Write"首頁 | " end if if ipagecurrent=1 then Response.Write"上一頁 | " else Response.Write"上一頁 | " end if if ipagecount>ipagecurrent then Response.Write"下一頁 " else Response.Write"下一頁" end if if ipagecount>ipagecurrent then Response.Write"| 末頁 " else Response.Write"| 末頁 " end if Response.Write" |