diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 8423c91b..3c10a010 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -394,6 +394,7 @@ switch ($action) { case 'localisation-post': $tzone = _post('tzone'); $date_format = _post('date_format'); + $country_code_phone = _post('country_code_phone'); $lan = _post('lan'); run_hook('save_localisation'); #HOOK if ($tzone == '' or $date_format == '' or $lan == '') { @@ -421,6 +422,18 @@ switch ($action) { $d->save(); } + + $d = ORM::for_table('tbl_appconfig')->where('setting', 'country_code_phone')->find_one(); + if($d){ + $d->value = $country_code_phone; + $d->save(); + }else{ + $d = ORM::for_table('tbl_appconfig')->create(); + $d->setting = 'country_code_phone'; + $d->value = $country_code_phone; + $d->save(); + } + $currency_code = $_POST['currency_code']; $d = ORM::for_table('tbl_appconfig')->where('setting', 'currency_code')->find_one(); $d->value = $currency_code; diff --git a/ui/ui/app-localisation.tpl b/ui/ui/app-localisation.tpl index ebbc960a..a5ca2ba5 100644 --- a/ui/ui/app-localisation.tpl +++ b/ui/ui/app-localisation.tpl @@ -1,80 +1,107 @@ {include file="sections/header.tpl"} -
-
-
-
{$_L['Localisation']}
-
+
+
+
+
{$_L['Localisation']}
+
-
+
- -
- -
-
-
- -
- -
-
-
- -
- + {foreach $tlist as $value => $label} + {/foreach} - -
- + +
- -
- -
+ +
+ +
- -
- -
+ +
+ +
+
- -
- - {$_L['currency_help']} -
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + {$_L['currency_help']} +
+
+
+ +
+
+ + + +
+
+
+
+
+ +
-
-
- -
-
- -
-
-
-
-{include file="sections/footer.tpl"} +
+
+
+ + +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/register-otp.tpl b/ui/ui/register-otp.tpl index bd48de86..cd571d4a 100644 --- a/ui/ui/register-otp.tpl +++ b/ui/ui/register-otp.tpl @@ -45,8 +45,11 @@
- +
+ + + +
diff --git a/ui/ui/register-rotp.tpl b/ui/ui/register-rotp.tpl index 87b80247..8cfe5b7a 100644 --- a/ui/ui/register-rotp.tpl +++ b/ui/ui/register-rotp.tpl @@ -58,8 +58,11 @@
- +
+ + + +
diff --git a/ui/ui/register.tpl b/ui/ui/register.tpl index 9b071830..c0777380 100644 --- a/ui/ui/register.tpl +++ b/ui/ui/register.tpl @@ -45,8 +45,11 @@
- +
+ + + +
diff --git a/ui/ui/user-login.tpl b/ui/ui/user-login.tpl index 40640367..ddecc803 100644 --- a/ui/ui/user-login.tpl +++ b/ui/ui/user-login.tpl @@ -40,35 +40,39 @@
{$_L['Sign_In_Member']}
-
-
- + +
+ +
+ + -
-
- - + placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']}{/if} {$_L['Phone_Number']}">
- +
+ + +
+ +
diff --git a/ui/ui/user-profile.tpl b/ui/ui/user-profile.tpl index 83af1118..e96078b6 100644 --- a/ui/ui/user-profile.tpl +++ b/ui/ui/user-profile.tpl @@ -12,8 +12,12 @@
- +
+ + + +
@@ -33,15 +37,18 @@
- +
+ + + +
- +