<%@LANGUAGE="VBSCRIPT"%> <% Dim rsNews__MMColParam rsNews__MMColParam = "Current" if (Request("MM_EmptyValue") <> "") then rsNews__MMColParam = Request("MM_EmptyValue") %> <% set rsNews = Server.CreateObject("ADODB.Recordset") rsNews.ActiveConnection = MM_mccain_STRING rsNews.Source = "SELECT * FROM News WHERE NewsStatus = '" + Replace(rsNews__MMColParam, "'", "''") + "' ORDER BY NewsRank ASC" rsNews.CursorType = 0 rsNews.CursorLocation = 2 rsNews.LockType = 3 rsNews.Open() rsNews_numRows = 0 %> <% set rsDisplayArticle = Server.CreateObject("ADODB.Recordset") rsDisplayArticle.ActiveConnection = MM_mccain_STRING if not(request("ID")="") then rsDisplayArticle.Source = "SELECT * FROM News WHERE ID="&request("ID")&" and NewsStatus = 'current' ORDER BY NewsRank ASC" else rsDisplayArticle.Source = "SELECT * FROM News WHERE NewsStatus = 'current' ORDER BY NewsRank ASC" end if 'response.write rsDisplayArticle.Source rsDisplayArticle.CursorType = 0 rsDisplayArticle.CursorLocation = 2 rsDisplayArticle.LockType = 3 rsDisplayArticle.Open() rsDisplayArticle_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = -1 Dim Repeat1__index Repeat1__index = 0 rsNews_numRows = rsNews_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 %> McCain - traffic signals, traffic controllers, traffic software
McCain - the power of ingenuity
Featured Products about Us Products Current News Contact McCain

News

<% While ((Repeat1__numRows <> 0) AND (NOT rsNews.EOF)) %> " class="sideNavBrown"><%=(rsNews.Fields.Item("NewsTitle").Value)%>

<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rsNews.MoveNext() Wend %>
 
 

News

<%=(rsDisplayArticle.Fields.Item("NewsTitle").Value)%>
<%=(rsDisplayArticle.Fields.Item("NewsDate").Value)%>

<%=Replace((rsDisplayArticle.Fields.Item("NewsArticle").Value), chr(13), "
") %>

| Home | Featured Products | About | Products | News | Employment | Contact |

© Copyright 2002 McCain
Site Design by Nuvonix

<% rsNews.Close() %> <% rsDisplayArticle.Close() %>