<% 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 %> <%=workspaceName%>
 

<%=(RSentity.Fields.Item("subject").Value)%>
<%=(RSentity.Fields.Item("subheading").Value)%>
<%= DoDateTime((RSentity.Fields.Item("myDate").Value), 1, 1033) %>

<%=(RSentity.Fields.Item("author").Value)%>
<%=(RSentity.Fields.Item("author_details").Value)%>

<% ' Replance Line Feeds for
if RSentity.Fields.Item("description").Value <> "" then response.write Replace((RSentity.Fields.Item("description").Value), vbCrLf, "
") end if %>

These are the documents related to the this collection. Click on a document title below to view that document. Or you can 'right-click' on the link and choose 'Save target as...' to save the file to your hard disc.

<% While ((Repeat2__numRows <> 0) AND (NOT RSdocuments.EOF)) %> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 RSdocuments.MoveNext() Wend %>
Title File Size Format Version Date Created Date Modified Posted By
" target="_blank"><%=(RSdocuments.Fields.Item("title").Value)%> <%=(RSdocuments.Fields.Item("fileSize").Value)%> <% if RSdocuments("format") = "Word Document" then %>Microsoft Word Document<% end if %> <% if RSdocuments("format") = "Acrobat PDF" then %>Adobe Acrobat PDF<% end if %> <% if RSdocuments("format") = "Power Point" then %>Microsoft Power Point<% end if %> <% if RSdocuments("format") = "Excel" then %>Microsoft Excel<% end if %> <% if RSdocuments("format") = "JPEG" then %>JPEG Image<% end if %> <% if RSdocuments("format") = "Access" then %>Microsoft Access<% end if %> <% if RSdocuments("format") = "Bitmap" then %>Bitmap Image<% end if %> <% if RSdocuments("format") = "GIF" then %>GIF Image<% end if %> <% if RSdocuments("format") = "HTML" then %>HTML Document<% end if %> <% if RSdocuments("format") = "Other" then %>Other/Unknown<% end if %> <% if RSdocuments("format") = "Text" then %>Text File<% end if %> <% if RSdocuments("format") = "WinZip" then %>Zip Archive<% end if %>
<%=(RSdocuments.Fields.Item("version").Value)%>
<%= DoDateTime((RSdocuments.Fields.Item("date_created").Value), 2, 2057) %> <%if RSdocuments.Fields.Item("date_modified").Value <> RSdocuments.Fields.Item("date_created").Value then response.write(DoDateTime((RSdocuments.Fields.Item("date_modified").Value), 2, 2057)) else response.write(DoDateTime((RSdocuments.Fields.Item("date_created").Value), 2, 2057)) %> <%=(RSdocuments.Fields.Item("submitted_by").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() %> <% RSdocuments.Close() %>