diff --git a/preferences/inc/hook_config.inc.php b/preferences/inc/hook_config.inc.php index 5cdbdd363a..0dd21c59ca 100644 --- a/preferences/inc/hook_config.inc.php +++ b/preferences/inc/hook_config.inc.php @@ -12,6 +12,33 @@ /* $Id$ */ + + function country_set($config) + { + global $phpgw; + + $country = array( + 'user_choice' => 'User Choice', + 'force_select' => 'Force Selectbox' + ); + + while (list ($key, $value) = each ($country)) + { + if ($config['countrylist'] == $key) + { + $selected = ' selected'; + } + else + { + $selected = ''; + } + $descr = lang($value); + + $out .= '' . "\n"; + } + return $out; + } + function force_theme($config) { global $phpgw; diff --git a/preferences/settings.php b/preferences/settings.php index 8723c8d45a..29de2a394f 100755 --- a/preferences/settings.php +++ b/preferences/settings.php @@ -16,6 +16,7 @@ $phpgw_info["flags"] = array("nonavbar" => True, "noheader" => True); } $phpgw_info["flags"]["currentapp"] = "preferences"; + $phpgw_info["flags"]["enable_sbox_class"] = True; include("../header.inc.php"); @@ -195,6 +196,35 @@ ?> + + + + + + sbox->form_select($phpgw_info['user']['preferences']['common']['country'],'settings[country]'); + ?> + + + + + + + +
+ + + + + + diff --git a/preferences/templates/default/config.tpl b/preferences/templates/default/config.tpl index 71d7da9c62..8ab47f98d3 100644 --- a/preferences/templates/default/config.tpl +++ b/preferences/templates/default/config.tpl @@ -29,6 +29,15 @@ + + {lang_Country_Selection} ({lang_Text_Entry}/{lang_SelectBox}): + + + + + {lang_Interface}/{lang_Template_Selection}: