%@LANGUAGE="VBSCRIPT"%> [an error occurred while processing this directive]
|
|||||||||||||||
<%'@LANGUAGE="VBSCRIPT"%>
[an error occurred while processing this directive]
[an error occurred while processing this directive]
<%
set rsEditorLinks = Server.CreateObject("ADODB.Recordset")
rsEditorLinks.ActiveConnection = MM_connEditorLinks_STRING
rsEditorLinks.Source = "SELECT DocumentID, Status, Title, Sorting FROM Documents WHERE Status = 'Active' AND Title <> 'Home Page' ORDER BY Sorting ASC, Title ASC"
rsEditorLinks.CursorType = 0
rsEditorLinks.CursorLocation = 2
rsEditorLinks.LockType = 3
rsEditorLinks.Open()
rsEditorLinks_numRows = 0
%>
<%
Dim Repeat4__numRows
Repeat4__numRows = -1
Dim Repeat4__index
Repeat4__index = 0
rsEditorLinks_numRows = rsEditorLinks_numRows + Repeat4__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
%>
<% rsEditorLinks.Close() %> |
<% dim strConn strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("editor/database/Document.mdb") dim strConnImg strConnImg = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("editor/database/ImageLibrary.mdb") %> <% On Error Resume Next %> <% dim intDocumentID dim strTitle dim strContent dim adoCn dim strSQL set adoCn = Server.CreateObject("ADODB.Connection") adoCn.Open strConn intDocumentID = 21 dim adoRs set adoRs = Server.CreateObject("ADODB.Recordset") strSQL = "Select * From Documents where DocumentID=" & intDocumentID set adoRs = adoCn.Execute(strSQL) If not adoRs.EOF then strTitle = adoRs("Title") strContent = adoRs("Content") End If adoRs.Close set adoRs = nothing adoCn.Close set adoCn = nothing strContent = Replace(strContent, "770 717-9830", "770-641-8090") strContent = Replace(strContent, "770 717-7340", "770-641-7209") strContent = Replace(strContent, "P.O. Box 931686", "P.O. Box 501701") strContent = Replace(strContent, "Norcross, GA 30003", "Atlanta, GA 31150") %> <%=strContent%> |
||||||||||||||
|
<%= VarFooter%> |
|||||||||||||||