%@LANGUAGE="VBSCRIPT"%>
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_ber_STRING
MM_ber_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/data/berriak.mdb")
%>
Error processing SSI file
<%
' FileName="Connection_odbc_conn_dsn.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_cvctx_STRING
MM_cvctx_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/data/txapel.mdb")
%>
<%
' technocurve arc 3 asp vb bv block1/3 start
Dim myColor1, myColor2, myColor
myColor1 = ""
myColor2 = "#F0F3FB"
myColor = myColor1
' technocurve arc 3 asp vb bv block1/3 start
%>
<%
Dim ber
Dim ber_cmd
Dim ber_numRows
Set ber_cmd = Server.CreateObject ("ADODB.Command")
ber_cmd.ActiveConnection = MM_ber_STRING
ber_cmd.CommandText = "SELECT Id, titulo FROM news ORDER BY Id DESC"
ber_cmd.Prepared = true
Set ber = ber_cmd.Execute
ber_numRows = 0
%>
<%
Dim berelc
Dim berelc_cmd
Dim berelc_numRows
Set berelc_cmd = Server.CreateObject ("ADODB.Command")
berelc_cmd.ActiveConnection = MM_berelc_STRING
berelc_cmd.CommandText = "SELECT headline, newsDate FROM news ORDER BY newsDate DESC"
berelc_cmd.Prepared = true
Set berelc = berelc_cmd.Execute
berelc_numRows = 0
%>
<%
Dim rp__MMColParam
rp__MMColParam = "1"
If (Request.QueryString("e") <> "") Then
rp__MMColParam = Request.QueryString("e")
End If
%>
<%
Dim rp
Dim rp_cmd
Dim rp_numRows
Set rp_cmd = Server.CreateObject ("ADODB.Command")
rp_cmd.ActiveConnection = MM_cvctx_STRING
rp_cmd.CommandText = "SELECT Id, e FROM prentsa WHERE e <> ? ORDER BY e ASC"
rp_cmd.Prepared = true
rp_cmd.Parameters.Append rp_cmd.CreateParameter("param1", 200, 1, 50, rp__MMColParam) ' adVarChar
Set rp = rp_cmd.Execute
rp_numRows = 0
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index
Repeat2__numRows = 10
Repeat2__index = 0
ber_numRows = ber_numRows + Repeat2__numRows
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
berelc_numRows = berelc_numRows + Repeat1__numRows
%>
<%
Dim Repeat3__numRows
Dim Repeat3__index
Repeat3__numRows = -1
Repeat3__index = 0
rp_numRows = rp_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
%>
|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||