%@ LANGUAGE="VBSCRIPT" %> <% PageStrings = "33, 68, 69, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 108, 119, 164, 264, 263, 740, 781, 782, 783, 845, 846, 847, 978, 1141, 1411, 1412, 1413, 1512, 1513, 1514, 1515, 1631, 1632, 1719, 1720, 1721, 1755, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1812, 1813, 1814, 1815, 1820, 1848, 1849, 1850, 1851, 1852, 1935" blnDateStrings = true %> <% blnMustBeLoggedIn = true %> <% '=============================================== ' CactuShop ASP Shopping Cart ' ©1999-2007 Cactusoft International FZ-LLC ' www.cactusoft.com '=============================================== ' All rights reserved. ' Use of this code is covered by the terms and ' conditions in the license agreement. No ' unauthorized duplication or distribution is ' permitted. Cactusoft's copyright notices must ' remain in the ASP sections of the code. '=============================================== '----------------------------------------------- 'CUSTOMER HOME 'This page does lots of things: '- Order History (with link through for more ' details on each order) '- Downloadable Products '- Stored Baskets '- Change Password Link '----------------------------------------------- '----------------------------------------------- 'READ PAGE TEMPLATE FROM FILE '----------------------------------------------- Call ReadFromTemplate(strTemplateLocation, aryPageTemplate) '----------------------------------------------- 'WRITE FIRST HALF OF PAGE HTML '----------------------------------------------- response.write(aryPageTemplate(0)) 'Get a specific show strShow = ListSafe(request.QueryString("strShow"), "all,orders,baskets,wishlists", "all") 'Get useful application variables numAppMaxOrders = NumSafe(GetAppVar("maxorders")) numAppMaxBaskets = NumSafe(GetAppVar("maxbaskets")) strAppUploadsFolder = GetAppVar("uploadsfolder") 'If we're showing a full list, or config settings set to 0, then don't limit (-2) If numAppMaxOrders = 0 or strShow = "orders" then numAppMaxOrders = -2 If numAppMaxBaskets = 0 or strShow = "baskets" then numAppMaxBaskets = -2 If numAppMaxBaskets = 0 or strShow = "wishlists" then numAppMaxBaskets = -2 Set objOrderCurrency = New CurrencyData %>
<% WriteString("ContentText_OrderNotFound") %>
<% Else objOrderCurrency.Load(objRecordSet) %><% If numTotalOrders > numAppMaxOrders and numAppMaxOrders <> -2 then WriteString("ContentText_OrdersBelowRecent") else WriteString("ContentText_OrdersBelow") end if %>
| <% WriteString("ContentText_SmallNumber") %> | <% WriteString("ContentText_OrderDate") %> | <% WriteString("ContentText_LastUpdate") %> | <% WriteString("ContentText_Amount") %> | |
|---|---|---|---|---|
| <%= O_ID %> | <%= WriteSafe(FormatDate(O_Date, strDateAndTimeFormat)) %> | <%= WriteSafe(FormatDate(O_LastModified, strDateAndTimeFormat)) %> | <%= WriteSafe(objOrderCurrency.Display(O_TotalPrice, false, false)) %> | <% WriteString("ContentText_Invoice") %> <% WriteString("ContentText_View") %> |
<% WriteString("ContentText_DownloadExplanation") %>
| <% WriteString("ContentText_CodeNumberSmall") %> | <% WriteString("ContentText_OrderDate") %> | <% WriteString("ContentText_DownLoadInfo") %> | |
|---|---|---|---|
| <%= WriteSafe(IR_VersionName) %> | <%= WriteSafe(IR_VersionCode) %> | <%= WriteSafe(FormatDate(O_Date, strDateFormat)) %> | <%= strDownloadURL %> |
<%= IIf(numTotalBaskets > numAppMaxBaskets and numAppMaxBaskets <> -2, GetString("ContentText_StoreBasketsDescRecent"), GetString("ContentText_StoreBasketsDesc")) %>
| <% WriteString("ContentText_BasketName") %> | <% WriteString("ContentText_DateSaved") %> | |
|---|---|---|
| <%= WriteSafe(BSKT_Name) %> | <%= WriteSafe(FormatDate(BSKT_DateTime, strDateAndTimeFormat)) %> | <% WriteString("ContentText_Delete") %> <% WriteString("ContentText_Load") %> |
<% WriteString("ContentText_ViewAllBaskets") %>
<% end if Else %><% WriteString("ContentText_NoSavedBaskets") %>
<% End If objRecordSet.Close If objBasket.TotalItems > 0 then %>
" title="<% WriteSafeString("ContentText_SaveRecoverBasketDesc") %>" /><% WriteString("PageTitle_SaveRecoverBasketContents") %>
<% WriteString("ContentText_SaveRecoverBasketDesc") %>
<% WriteString("ContentText_RecoverExistingWishList") %>
| <% WriteString("ContentText_WishListName") %> | <% WriteString("ContentText_DateSaved") %> | |
|---|---|---|
| <%= WriteSafe(WL_Name) %> | <%= WriteSafe(FormatDate(WL_DateTime, strDateAndTimeFormat)) %> | <% WriteString("ContentText_Delete") %> <% WriteString("ContentText_Edit") %> <% WriteString("ContentText_Load") %> |
<% WriteString("ContentText_ViewAllWishLists") %>
<% end if Else %><% WriteString("ContentText_NoWishLists") %>
<% End If objRecordSet.Close If objBasket.TotalItems > 0 then %>
" title="<% WriteSafeString("ContentText_SaveWishList") %>" /><% WriteString("ContentText_SaveWishList") %>
<% WriteString("ContentText_SaveWishListDesc") %>
<% WriteString("ContentText_AffiliateLinkText") %>
<%= GetAppVar("webshopurl") & "?af=" & DB_C_ID %>
<% WriteString("ContentText_ToViewAffiliateActivity") %> <% WriteString("ContentText_CustomerCodeClickHere") %>.
<% WriteString("ContentText_ViewAccountBalance") %> <% WriteString("ContentText_CustomerCodeClickHere") %>.
<% else %><% WriteString("ContentText_AffiliateApplicationPending") %>
<% end if %> <% else %><% WriteString("ContentText_NotAffiliateYet") %> <% WriteString("ContentText_CustomerCodeClickHere") %>.
<% End if %><% WriteString("ContentText_ToChangeCustomerCode") %> <% WriteString("ContentText_CustomerCodeClickHere") %>.
<%= GetString("ContentText_CustomerDiscountText1") & "" & DB_C_CustomerDiscount & "% " & GetString("ContentText_CustomerDiscountText2") %>