<% if Session("fullName") = "" then response.redirect("../index.asp")%> <% set RScategories = Server.CreateObject("ADODB.Recordset") RScategories.ActiveConnection = MM_workspace_STRING RScategories.Source = "SELECT * FROM workspace_categories ORDER BY category_name ASC" RScategories.CursorType = 0 RScategories.CursorLocation = 2 RScategories.LockType = 3 RScategories.Open() RScategories_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 RScategories_numRows = RScategories_numRows + Repeat1__numRows %> <% Dim RSentity__MMColParam RSentity__MMColParam = "1" if (Request.QueryString("category_id") <> "") then RSentity__MMColParam = Request.QueryString("category_id") %> <% set RSentity = Server.CreateObject("ADODB.Recordset") RSentity.ActiveConnection = MM_workspace_STRING RSentity.Source = "SELECT entity_id, subject, subheading, myDate, author FROM workspace_entity WHERE category_id = " + Replace(RSentity__MMColParam, "'", "''") + "" RSentity.CursorType = 0 RSentity.CursorLocation = 2 RSentity.LockType = 3 RSentity.Open() RSentity_numRows = 0 %> <% Dim Repeat2__numRows Repeat2__numRows = -1 Dim Repeat2__index Repeat2__index = 0 RSentity_numRows = RSentity_numRows + Repeat2__numRows %> <% Dim Repeat3__numRows Repeat3__numRows = -1 Dim Repeat3__index Repeat3__index = 0 RScategories_numRows = RScategories_numRows + Repeat3__numRows %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each Item In Request.QueryString NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item)) End If Next ' add the Form variables to the MM_keepForm string For Each Item In Request.Form NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> <%=workspaceName%>
 

These are the document collections under the <%=request.querystring("category_name")%> category. Click on a collection name below to view the list of related documents.

<% While ((Repeat2__numRows <> 0) AND (NOT RSentity.EOF)) %> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 RSentity.MoveNext() Wend %>
Subject Date Author
&<%= MM_keepNone & MM_joinChar(MM_keepNone) & "category_name=" & request.querystring("category_name") %>&<%= MM_keepNone & MM_joinChar(MM_keepNone) & "collection_name=" & RSentity.Fields.Item("subject").Value %>&<%= MM_keepNone & MM_joinChar(MM_keepNone) & "category_id=" & request.querystring("category_id") %>"> <%=(RSentity.Fields.Item("subject").Value)%> <%= DoDateTime((RSentity.Fields.Item("myDate").Value), 2, 2057) %> <%=(RSentity.Fields.Item("author").Value)%>

 

 



 

<% While ((Repeat3__numRows <> 0) AND (NOT RScategories.EOF)) %> <% Repeat3__index=Repeat3__index+1 Repeat3__numRows=Repeat3__numRows-1 RScategories.MoveNext() Wend %>
<% thisCategory = CInt(request.querystring("category_id")) %> &<%= MM_keepNone & MM_joinChar(MM_keepNone) & "category_name=" & RScategories.Fields.Item("category_name").Value%>"> <% if thisCategory = (RScategories.Fields.Item("category_id").Value) then response.write("") end if %> <%=(RScategories.Fields.Item("category_name").Value)%> <% if thisCategory = (RScategories.Fields.Item("category_id").Value) then response.write("") end if %>

 


 

 

 

<% RSentity.Close() %>