%@LANGUAGE="VBSCRIPT"%> <% set campus = Server.CreateObject("ADODB.Recordset") campus.ActiveConnection = MM_feminist_STRING campus.Source = "SELECT TOP 3 rsName,NewsID, LEFT(LTRIM(Body),100) AS Body, datepart(dd,created) AS Day, datepart(mm,created) AS Month FROM dbo.USNews WHERE PR = 0 ORDER BY Created DESC, Priority ASC" campus.CursorType = 3 campus.CursorLocation = 2 campus.LockType = 3 campus.Open() campus_numRows = 0 %> <% set events = Server.CreateObject("ADODB.Recordset") events.ActiveConnection = MM_feminist_STRING events.Source = "SELECT vcEvent, dtDate, idSchedule FROM dbo.Schedule WHERE approved = 1 and (dtDate >= getdate()) and (dtDate < (getdate() + 7)) AND feminist = 1 ORDER BY dtDate" events.CursorType = 0 events.CursorLocation = 2 events.LockType = 3 events.Open() events_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 campus_numRows = campus_numRows + Repeat1__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 %> <% Dim Repeat3__numRows Repeat3__numRows = -1 Dim Repeat3__index Repeat3__index = 0 events_numRows = events_numRows + Repeat3__numRows %>
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2013 Feminist Campus |
|||||||||||||||||||||||||||||||||||||