From c92393ad6afac5707ad2a7ba8eac85867d0eb1ed Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 29 Nov 2000 00:00:21 +0000 Subject: [PATCH] Started converting the navbar over to templates --- preferences/settings.php | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/preferences/settings.php b/preferences/settings.php index 0c7e7b247e..77256ce7ce 100755 --- a/preferences/settings.php +++ b/preferences/settings.php @@ -27,23 +27,25 @@ : - " size="2"> - : + : - > + + : - + " . "" . "" . "\n"; @@ -95,7 +97,7 @@ - db->query("select preference_value from preferences where preference_owner='" . $phpgw_info["user"]["account_id"] . "' and preference_name='lang' and " @@ -124,6 +126,7 @@ ' . lang("show current users on navigation bar") . '' . ' - accounts->read_apps($phpgw_info["user"]["userid"]); @@ -162,7 +165,7 @@ $phpgw_info["user"]["preferences"]["common"]["currency"] = '$'; } ?> - "> + "> @@ -180,18 +183,11 @@ $phpgw->db->lock("preferences"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"maxmatchs","common"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"tz_offset","common"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"dateformat","common"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"timeformat","common"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"lang","common"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"default_app","common"); - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"currency","common"); - - if ($navbar_text) { - $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"navbar_text","common"); + while ($setting = each($settings)) { + $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],$setting[0],"common",$setting[1]); } + // This one is specialized, so we do it manually if ($phpgw_info["user"]["apps"]["admin"]) { if ($show_currentusers) { $phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"show_currentusers","common");