%@LANGUAGE="VBSCRIPT"%>
<%
Dim Rechy1__MMColParam
Rechy1__MMColParam = "7"
If (Request("MM_EmptyValue") <> "") Then
Rechy1__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Rechy1
Dim Rechy1_numRows
Set Rechy1 = Server.CreateObject("ADODB.Recordset")
Rechy1.ActiveConnection = MM_conjc_STRING
Rechy1.Source = "SELECT hy_id, hy_title, hy_time FROM tab_hy1 WHERE hy_type='14' and province = '" + Replace(Rechy1__MMColParam, "'", "''") + "' ORDER BY hy_time DESC"
Rechy1.CursorType = 0
Rechy1.CursorLocation = 2
Rechy1.LockType = 1
Rechy1.Open()
Rechy1_numRows = 0
%>
<%
Dim Recbs__MMColParam
Recbs__MMColParam = "20"
If (Request("MM_EmptyValue") <> "") Then
Recbs__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recbs
Dim Recbs_numRows
Set Recbs = Server.CreateObject("ADODB.Recordset")
Recbs.ActiveConnection = MM_connbbs_STRING
Recbs.Source = "SELECT ID, ForumID, Topic, IsGood FROM BBSXP_Threads WHERE ForumID = " + Replace(Recbs__MMColParam, "'", "''") + " ORDER BY LastTime DESC"
Recbs.CursorType = 0
Recbs.CursorLocation = 2
Recbs.LockType = 1
Recbs.Open()
Recbs_numRows = 0
%>
<%
Dim Recfw__MMColParam
Recfw__MMColParam = "7"
If (Request("MM_EmptyValue") <> "") Then
Recfw__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recfw
Dim Recfw_numRows
Set Recfw = Server.CreateObject("ADODB.Recordset")
Recfw.ActiveConnection = MM_conjc_STRING
Recfw.Source = "SELECT hy_id, hy_title, hy_time FROM tab_hy WHERE hy_type='14' and province = '" + Replace(Recfw__MMColParam, "'", "''") + "' ORDER BY hy_top desc,hy_time DESC"
Recfw.CursorType = 0
Recfw.CursorLocation = 2
Recfw.LockType = 1
Recfw.Open()
Recfw_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 5
Repeat1__index = 0
Recfw_numRows = Recfw_numRows + Repeat1__numRows
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index
Repeat2__numRows = 5
Repeat2__index = 0
Rechy1_numRows = Rechy1_numRows + Repeat2__numRows
%>
<%
Dim Repeat3__numRows
Dim Repeat3__index
Repeat3__numRows = 5
Repeat3__index = 0
Recbs_numRows = Recbs_numRows + Repeat3__numRows
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_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)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' 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
%>