<% if Session("fullName") = "" then response.redirect("index.asp")%> <% set RSCategories = Server.CreateObject("ADODB.Recordset") RSCategories.ActiveConnection = MM_workspace_STRING RSCategories.Source = "SELECT * FROM link_category ORDER BY category_name ASC" RSCategories.CursorType = 0 RSCategories.CursorLocation = 2 RSCategories.LockType = 3 RSCategories.Open() RSCategories_numRows = 0 %> <% set RSCategories2 = Server.CreateObject("ADODB.Recordset") RSCategories2.ActiveConnection = MM_workspace_STRING RSCategories2.Source = "SELECT * FROM link_category ORDER BY category_name ASC" RSCategories2.CursorType = 0 RSCategories2.CursorLocation = 2 RSCategories2.LockType = 3 RSCategories2.Open() RSCategories2_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 RSCategories_numRows = RSCategories_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Repeat2__numRows = -1 Dim Repeat2__index Repeat2__index = 0 RSCategories2_numRows = RSCategories2_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%>
  <% While ((Repeat2__numRows <> 0) AND (NOT RSCategories2.EOF)) %> <% set RSLinks = Server.CreateObject("ADODB.Recordset") RSLinks.ActiveConnection = MM_workspace_STRING RSLinks.Source = "SELECT * FROM links WHERE link_category_ID = " & RSCategories2("link_category_id") & "" RSLinks.CursorType = 0 RSLinks.CursorLocation = 2 RSLinks.LockType = 3 RSLinks.Open() RSLinks_numRows = 0 %> <% Dim Repeat3__numRows Repeat3__numRows = -1 Dim Repeat3__index Repeat3__index = 0 RSLinks_numRows = RSLinks_numRows + Repeat3__numRows %> <% if not RSLinks.EOF then %> <% end if %> <% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 RSCategories2.MoveNext() Wend %>
"><%=(RSCategories2.Fields.Item("category_name").Value)%>
<% if RSCategories2("category_description") <> "" then %>
<%=Replace((RSCategories2.Fields.Item("category_description").Value), vbCrLf, "
")%>
<% end if %>
<% While ((Repeat3__numRows <> 0) AND (NOT RSLinks.EOF)) %> <%=(RSLinks.Fields.Item("link_name").Value)%>
<% if RSLinks("link_description") <> "" then %><%=Replace((RSLinks.Fields.Item("link_description").Value), vbCrLf, "
")%>

<% end if %> " TARGET="_blank"><%=(RSLinks.Fields.Item("link_url").Value)%>

<% Repeat3__index=Repeat3__index+1 Repeat3__numRows=Repeat3__numRows-1 RSLinks.MoveNext() Wend %>
- top -

 



  link categories
<% While ((Repeat1__numRows <> 0) AND (NOT RSCategories.EOF)) %> "><%=(RSCategories.Fields.Item("category_name").Value)%>
<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 RSCategories.MoveNext() Wend %>
If you would like a link adding to this page please feel free to e-mail the <%=workspaceWebmasterName%>




 

<% RSCategories.Close() %> <% RSCategories2.Close() %> <% RSLinks.Close() %>