% If Not session("admin_loggedin" & strSUnique) = Session.SessionID then Response.Redirect "default.asp" Dim totalPage, totalRecords, displayRecords pp = 30 With Response .Write vbcrlf & "
| Category | " .Write "Status | " .Write "Posted | " .Write "Expired | " .Write "Author | " .Write "Subject | " .Write "Body | " .Write "IP | " .Write "Price | " .Write "HotList | " .Write "" strAd = "SELECT " & tablPfx & "Ads.*," & tablPfx & "Cat.catName," & tablPfx & "Scat.scatName FROM " & tablPfx & "Ads," & tablPfx & "Cat," & tablPfx & "Scat WHERE " strAd = strAd & "(" & tablPfx & "Ads.catID = " & tablPfx & "Cat.catID AND " & tablPfx & "Ads.scatID = " & tablPfx & "Scat.sCatID) ORDER BY " & tablPfx & "Ads.ID DESC;" rs.PageSize = pp rs.CacheSize = pp rs.CursorLocation = 3 rs.Open strAd, strConn, 0, 1 If Not rs.EOF then nPage = Session("allads_print" & strSUnique) URLlink = "extract.asp?" & Server.URLEncode(Request.Querystring) pageType = 15 strPaging = buildPages(nPage, URLlink, pageType) '## paging built in libraries.asp .Write strPaging .Write "
| " & catName & "/" & scatName & " | " .Write "" & status & " | " .Write "" & FormatDateTime(CDate(rs(5)), 2) & " | " .Write "" & FormatDateTime(CDate(rs(6)), 2) & " | " .Write "" & rs(7) & " | " .Write "" & subject & " | " .Write "" & rs(14) & " | " .Write "" & rs(16) & " | " .Write "" & price & " | " .Write "" & hotlist & " | " .Write "