% 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 Repeat3__numRows Repeat3__numRows = -1 Dim Repeat3__index Repeat3__index = 0 RScategories_numRows = RScategories_numRows + Repeat3__numRows %> <% Dim RSentity__MMColParam RSentity__MMColParam = "1" if (Request.QueryString("entity_id") <> "") then RSentity__MMColParam = Request.QueryString("entity_id") %> <% set RSentity = Server.CreateObject("ADODB.Recordset") RSentity.ActiveConnection = MM_workspace_STRING RSentity.Source = "SELECT * FROM workspace_entity WHERE entity_id = " + Replace(RSentity__MMColParam, "'", "''") + "" RSentity.CursorType = 0 RSentity.CursorLocation = 2 RSentity.LockType = 3 RSentity.Open() RSentity_numRows = 0 %> <% set RSdocuments = Server.CreateObject("ADODB.Recordset") RSdocuments.ActiveConnection = MM_workspace_STRING RSdocuments.Source = "SELECT * FROM workspace_documents WHERE entity_id = " & Replace(RSentity("entity_id"), "'", "''") & "" RSdocuments.CursorType = 0 RSdocuments.CursorLocation = 2 RSdocuments.LockType = 3 RSdocuments.Open() RSdocuments_numRows = 0 %> <% Dim Repeat2__numRows Repeat2__numRows = -1 Dim Repeat2__index Repeat2__index = 0 RSdocuments_numRows = RSdocuments_numRows + Repeat2__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 %>
|
|
<% RSentity.Close() %> <% RSdocuments.Close() %>