From 4fc4158dfe1819cca76b7ea72dce3a5c4eb81025 Mon Sep 17 00:00:00 2001 From: Kenta420 Date: Thu, 10 Apr 2025 17:55:05 +0700 Subject: [PATCH] THAI: update page_board --- xml/page_board.xml | 79 ++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/xml/page_board.xml b/xml/page_board.xml index 4612e6dd..e529a76d 100644 --- a/xml/page_board.xml +++ b/xml/page_board.xml @@ -180,7 +180,7 @@ If BoxID = 105005 Then Var XMLProfile = "Plus5AndInclude20Percent-taobin_notopup-taobin_nopro-taobin_notopping" - Var XMLProfile = "DiscountFromBO-MachineShedule" + Var XMLProfile = "DiscountFromBO-MachineShedule" EndIf DEBUGVAR XMLProfile @@ -474,6 +474,37 @@ ; zone init lang ; CountryName + If CountryName = "" Then + READ_FILE "/mnt/sdcard/coffeevending/country/short" StrCountryShort + DEBUGVAR StrCountryShort + If StrCountryShort = "MYS" Then + Var CountryName = "Malaysia" + EndIf + If StrCountryShort = "MYR" Then + Var CountryName = "Malaysia" + EndIf + + If StrCountryShort = "AUS" Then + Var CountryName = "Australia" + EndIf + + If StrCountryShort = "SGP" Then + Var CountryName = "Singapore" + EndIf + + If StrCountryShort = "HKG" Then + Var CountryName = "HongKong" + EndIf + + If StrCountryShort = "UAE_DUBAI" Then + Var CountryName = "UnitedArabEmirates Dubai" + EndIf + + If StrCountryShort = "" Then + Var CountryName = "Thailand" + EndIf + EndIf + Var show_eng_button_stage = "Enable" Var MemberButtonFileName = "ROOT/taobin_project/image/TermTempage2/bp_main_page_member.png" @@ -576,7 +607,7 @@ EndIf STRCONTAIN "default_english" XMLProfile default_english - + If default_english = "true" Then Var show_eng = "true" EndIf @@ -587,42 +618,6 @@ Var XButtonMember = 212 Var YButtonMember = 1695 - ; CountryName - If CountryName = "" Then - READ_FILE "/mnt/sdcard/coffeevending/country/short" StrCountryShort - DEBUGVAR StrCountryShort - If StrCountryShort = "MYS" Then - Var CountryName = "Malaysia" - EndIf - If StrCountryShort = "MYR" Then - Var CountryName = "Malaysia" - EndIf - - If StrCountryShort = "AUS" Then - Var CountryName = "Australia" - EndIf - - If StrCountryShort = "SGP" Then - Var CountryName = "Singapore" - EndIf - - If StrCountryShort = "HKG" Then - Var CountryName = "HongKong" - EndIf - - If StrCountryShort = "UAE_DUBAI" Then - Var CountryName = "UnitedArabEmirates Dubai" - EndIf - - If StrCountryShort = "" Then - Var CountryName = "Thailand" - EndIf - - ; - - - EndIf - ; Zone set video main page. ; ignore collection point @@ -1252,7 +1247,7 @@ Var CatalogLayoutV3 = 1 - + ; test payment Var New_Payment = 1 @@ -1276,7 +1271,7 @@ Var LanguageShow = "THAI" EnableLanguage "ENG" EnableLanguage "THAI" - + Var RedirectToNormalVersion = 1 ;EnableLanguage "MYANMAR" ;EnableLanguage "MSC" @@ -1591,11 +1586,11 @@ - + - +