True, "nonavbar" => True, "currentapp" => "addressbook"); include("../header.inc.php"); if ($submit) { $totalerrors = 0; if (! count($ab_selected)) { $errors[$totalerrors++] = lang("You must select at least 1 column to display"); } if (! $totalerrors) { $phpgw->common->preferences_delete("byapp",$phpgw_info["user"]["userid"],"addressbook"); while ($pref = each($ab_selected)) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],$pref[0],"addressbook","addressbook_" . $pref[1]); } if ($mainscreen_showbirthdays) { $phpgw->common->preferences_add($phpgw_info["user"]["userid"],"mainscreen_showbirthdays","addressbook"); } Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/index.php")); } } $phpgw->common->phpgw_header(); $phpgw->common->navbar(); if ($totalerrors) { echo "

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

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


"; ?>

'; $abc = get_abc(); # AddressBook Columns $i = 0; $j = 0; $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); echo ''; while (list($col, $descr) = each($abc)) { $i++; $j++; echo ''; if ($i ==3) { echo ""; $i = 0; } if ($i == 0) { $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); echo ''; } if ($j == count($abc)) { echo ""; } } $tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color); ?>
 
' . $descr . '
>
">