% Timeout(1) Set con = Server.CreateObject("ADODB.Connection") con.Open Application("CString") if Request("CategoryID") <> Empty and IsNumeric(Request("CategoryID")) then Session("LibraryCategoryID") = Request("CategoryID") end if strSQL = "SELECT CategoryID, [Name] AS 'Category' " & _ "FROM Library_Category " & _ "ORDER BY [Name]" Set rsCategory = con.execute(strSQL) %>
| File / Document Library - Library maintenance | ||||||||||
|
<%
s_SelectedCategory = ""
if rsCategory.EOF then
%>
There are no categories! <% else %>To view existing files select a category. | ||||||||||
| <% end if Set rsCategory = Nothing %> | ||||||||||
| <%=Server.HTMLEncode(s_SelectedCategory)%> | ||||||||||
|
<%
strSQL = "SELECT Lib_FileID, [Description], FileName, FileType, UploadDate FROM Library WHERE CategoryID = " & Session("LibraryCategoryID") & " ORDER BY UploadDate DESC, Lib_FileID DESC"
set rsLibrary = server.createobject("ADODB.Recordset")
rsLibrary.open strSQL, con, 3, 1
if rsLibrary.EOF then
%>
There are no Files / Documents. <% else rsLibrary.PageSize = 15 intPageCount = rsLibrary.PageCount if request("intPage") <> empty and IsNumeric(request("intPage")) then intPage = CInt(request("intPage")) else intPage = 1 end if if intPage > intPageCount then intPage = intPageCount elseif intPage < 1 then intPage = 1 end if rsLibrary.AbsolutePage = intPage if intPagecount > 1 then %>
| ||||||||||
<%end if%>
|
||||||||||
|
|
||||||||||