% 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] FROM L_Categories ORDER BY [Name]" Set rsCategory = con.execute(strSQL) %>
| File / Document Library - Sub-Category maintenance | ||||||
|
<%
s_SelectedCategory = ""
if rsCategory.EOF then
%>
There are no categories! <% else %>To view existing sub-categories select a category. | ||||||
| <% end if Set rsCategory = Nothing %> | ||||||
| <%=Server.HTMLEncode(s_SelectedCategory)%> | ||||||
|
<%
strSQL = "SELECT SubcategoryID, [Name] FROM L_Subcategories WHERE CategoryID = " & Session("LibraryCategoryID") & " ORDER BY [Name]"
set rsSubCategory = server.createobject("ADODB.Recordset")
rsSubCategory.open strSQL, con, 3, 1
if rsSubCategory.EOF then
%>
There are no sub-categories. <% else rsSubCategory.PageSize = 15 intPageCount = rsSubCategory.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 rsSubCategory.AbsolutePage = intPage if intPagecount > 1 then %>
| ||||||
<%end if%>
|
||||||
|
|
||||||