%
'*** 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 CStr(session("user_logged_ID" & strSUnique)) = Empty And NOT session("admin_loggedin" & strSUnique) = Session.SessionID then Response.Redirect "register.asp"
If Not ispack then Response.Redirect "default.asp"
userID = session("user_logged_ID" & strSUnique)
If CStr(session("user_logged_ID" & strSUnique)) = Empty then
msg = "You're logged only as admin.
Note: Payment forms will not work properly unless you logon as a user."
End If
If session("admin_loggedin" & strSUnique) = 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
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 & ";")
Response.Redirect "acquire.asp"
End If
End If
End If
If ppArray(18) = 1 then
session("local_txn_ID" & strSUnique) = Empty
uid = userID
rid = CStr(uid) & CStr(randomid)
session("local_txn_ID" & strSUnique) = rid
End If
If ppArray(22) = 1 then
bstring = CStr(userID) & CStr(randomid)
sid = ppArray(23)
End If
%>
| <%= strText_Home %>::<%= strText_PurchasePackage %> | ||||||||||||||||||||||||||
|
<%= msg %>
<%= strText_PleasePurchase %> <% If display_box_acquire then %>
|
||||||||||||||||||||||||||