True, "nonavbar" => True, "currentapp" => "addressbook", "enable_addressbook_class" => True, "enable_nextmatchs_class" => True); include("../header.inc.php"); $this = CreateObject("phpgwapi.contacts"); if ($submit) { $totalerrors = 0; if (! count($ab_selected)) { $errors[$totalerrors++] = lang("You must select at least 1 column to display"); } if (! $totalerrors) { while (list($pref[0]) = each($this->stock_contact_fields)) { if ($ab_selected["$pref[0]"]) { $phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]); $phpgw->preferences->add("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]); } else { $phpgw->preferences->delete("addressbook",$pref[0],"addressbook_" . $ab_selected["$pref[0]"]); } } if ($mainscreen_showbirthdays) { $phpgw->preferences->delete("addressbook","mainscreen_showbirthdays"); $phpgw->preferences->add("addressbook","mainscreen_showbirthdays"); } else { $phpgw->preferences->delete("addressbook","mainscreen_showbirthdays"); } $phpgw->preferences->save_repository(); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php")); } } $phpgw->common->phpgw_header(); echo parse_navbar(); if ($totalerrors) { echo "

" . $phpgw->common->error_list($errors) . "
"; } echo "

" . lang("Addressbook preferences") . ":" . "


"; ?>

\n"; $i = 0; $j = 0; $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); echo "\n"; while (list($col, $descr) = each($this->stock_contact_fields)) { // echo "
test: $col - $i $j - " . count($abc); $i++; $j++; $showcol = display_name($descr); if ($showcol) { echo "\t\n"; } else { $i--; next; } if ($i == 3) { echo "\n"; $i = 0; } if ($i == 0 && $showcol) { $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); echo "\n"; } if ($j == count($this->stock_contact_fields)) { if ($i == 1) { echo "\t\n"; } if ($i == 2) { echo "\t\n"; } echo "\n"; } } $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); ?>
 
' . lang($showcol) . "
   
>
">
common->phpgw_footer(); ?>