%
'*** To remove a bounding box set [display_box_acquire = False]
display_box_acquire = True
'*** To display packages by a column set [display_row = False]
display_row = True
'*** Use Appropriate currency sign
csign = "$"
If Sess_Array(29) = 0 And NOT Sess_Array(48) = Session.SessionID then
UpdateSessions False
Response.Redirect "register.asp"
End If
If Not ispack then
UpdateSessions False
Response.Redirect "default.asp"
End If
userID = Sess_Array(29)
If Sess_Array(29) = 0 then
msg = "You're logged only as admin.
Note: Payment forms will not work properly unless you logon as a user."
End If
If Sess_Array(48) = Session.SessionID then msg = msg & " Packages Configuration"
If lcase(Request.ServerVariables("REQUEST_METHOD")) = "post" then
ID = CLng(Request.Form("ID"))
If Not Len(CStr(ID)) = 0 then
Set rs = Server.CreateObject("ADODB.Recordset")
strCat = "SELECT " & tablPfx & "Pack.sortID, " & tablPfx & "Pack.packID FROM " & tablPfx & "Pack WHERE (packID > 1000 AND isoffline = 0) ORDER BY sortID;"
rs.CursorLocation = 3
rs.CursorType = 3
rs.Open strCat, strConn
rc = rs.RecordCount
On Error Resume Next
For c = 1 to rc
If Not rs.EOF then
nextID = CLng(rs("sortID"))
nextcatID = CLng(rs("packID"))
If CStr(ID) = CStr(nextID) then
Select Case Request.Form("B1")
Case "▲": rs.MovePrevious
Case "▼": rs.MoveNext
End Select
swapID = CLng(rs("sortID"))
swapcatID = CLng(rs("packID"))
Exit For
End If
rs.MoveNext
End If
Next
On Error GoTo 0
rs.close
If not swapID = Empty And Err.Number = 0 then
objConn.Execute("UPDATE " & tablPfx & "Pack SET sortID = " & swapID & " WHERE packID = " & nextcatID & ";")
objConn.Execute("UPDATE " & tablPfx & "Pack SET sortID = " & nextID & " WHERE packID = " & swapcatID & ";")
UpdateSessions False
Response.Redirect "acquire.asp"
End If
End If
End If
If ppArray(18) = 1 then
Sess_Array(58) = Empty
uid = userID
rid = CStr(uid) & CStr(randomid)
Sess_Array(58) = rid
End If
If ppArray(22) = 1 then
bstring = CStr(userID) & CStr(randomid)
sid = ppArray(23)
End If
%>
| Sort: | <% End If %><%= strText_Package %>: | <%= strText_PackageDescription %>: | <%= strText_Price %>: | <%= strText_PurchasePackage %>: | ||
|---|---|---|---|---|---|---|
| > | <% End If %>> <%= nextPackFormatName %> |
> <%= nextPackDescr %> |
><%= csign %><%= nextPackPrice %> | > <% Else str_Main_Row = str_Main_Row & " | "
str_Main_Row = str_Main_Row & ""
str_Main_Row = str_Main_Row & " " & nextPackDescr & " | "
str_Buttons_Row = str_Buttons_Row & ""
str_Buttons_Row = str_Buttons_Row & " " & csign & nextPackPrice & " " End If If ppArray(17) = 1 then str_PPForm = "" & vbcrlf If display_row then Response.Write str_PPForm Else str_Buttons_Row = str_Buttons_Row & str_PPForm End If End If If ppArray(18) = 1 then str_MBForm = "" & vbcrlf If display_row then Response.Write str_MBForm Else str_Buttons_Row = str_Buttons_Row & str_MBForm End If End If If ppArray(22) = 1 then str_2COForm = "" & vbcrlf If display_row then Response.Write str_2COForm Else str_Buttons_Row = str_Buttons_Row & str_2COForm End If End If If AuthorizeNetInstalled Then Set rsauth = objConn.Execute("SELECT m_active,m_method FROM " & tablPfx & "Merchant WHERE m_id = 'auth';") isAuth = CBool(rsauth(0)) isAIM = CBool(rsauth(1)) rsauth.close If Cbool(isAuth) then If isAIM Then auth_page = Replace(web_site,"http","https",1,1,1) & "auth_payment.asp": Else: auth_page = "auth_payment_sim.asp" str_ANForm = "" & vbcrlf If display_row then Response.Write str_ANForm Else str_Buttons_Row = str_Buttons_Row & str_ANForm End If End If End If str_BPForm = "" & vbcrlf If display_row then Response.Write str_BPForm Else str_Buttons_Row = str_Buttons_Row & str_BPForm End If If display_row Then Response.Write " |