diff --git a/addressbook/index.php b/addressbook/index.php index 14477ed371..3fb0183e2d 100755 --- a/addressbook/index.php +++ b/addressbook/index.php @@ -76,21 +76,45 @@ ?>
- - nextmatchs->show_sort_order($sort,"lastname",$order,"index.php", - lang("Last Name")); - ?> - - | -"> - - nextmatchs->show_sort_order($sort,"firstname",$order,"index.php", - lang("First Name")); - ?> - - | +|||||||
'; + echo ''; + echo $phpgw->nextmatchs->show_sort_order($sort,"lastname",$order,"index.php", + lang("Last Name")); + echo ' | '; + } + if ( $phpgw_info["user"]["preferences"]["addressbook_view_firstname"] == "True" ) { + echo ''; + echo ''; + echo $phpgw->nextmatchs->show_sort_order($sort,"firstname",$order,"index.php", + lang("First Name")); + echo ' | '; + } + if ( $phpgw_info["user"]["preferences"]["addressbook_view_email"] == "True" ) { + echo ''; + echo ''; + echo $phpgw->nextmatchs->show_sort_order($sort,"email",$order,"index.php", + lang("Email")); + echo ' | '; + } + if ( $phpgw_info["user"]["preferences"]["addressbook_view_wphone"] == "True" ) { + echo ''; + echo ''; + echo $phpgw->nextmatchs->show_sort_order($sort,"wphone",$order,"index.php", + lang("Work Phone")); + echo ' | '; + } + ?> +@@ -104,6 +128,7 @@ | ||||
> - - - - | - - - $firstname - - "; - ?> + '; + if ( $phpgw_info["user"]["preferences"]["addressbook_view_company"] == 'True' ) { + echo ''; + echo ''; + echo $company; + echo ' | '; + }; + if ( $phpgw_info["user"]["preferences"]["addressbook_view_lastname"] == 'True' ) { + echo ''; + echo ''; + echo $lastname; + echo ' | '; + }; + if ( $phpgw_info["user"]["preferences"]["addressbook_view_firstname"] == 'True' ) { + echo ''; + echo ''; + echo $firstname; + echo ' | '; + }; + if ( $phpgw_info["user"]["preferences"]["addressbook_view_email"] == 'True' ) { + echo ''; + echo ''; + echo $email; + echo ' | '; + }; + if ( $phpgw_info["user"]["preferences"]["addressbook_view_wphone"] == 'True' ) { + echo ''; + echo ''; + echo $wphone; + echo ' | '; + }; + ?>
common->preferences_add($n_loginid,"dateformat","m/d/Y");
$phpgw->common->preferences_add($n_loginid,"timeformat","12");
$phpgw->common->preferences_add($n_loginid,"lang","en");
+ $phpgw->common->preferences_add($n_loginid,"addressbook_view_company","True");
+ $phpgw->common->preferences_add($n_loginid,"addressbook_view_lastname","True");
+ $phpgw->common->preferences_add($n_loginid,"addressbook_view_firstname","True");
// Even if they don't have access to the calendar, we will add these.
// Its better then the calendar being all messed up, they will be deleted
diff --git a/preferences/settings.php b/preferences/settings.php
index a1c9017d7b..49211e5865 100755
--- a/preferences/settings.php
+++ b/preferences/settings.php
@@ -24,13 +24,17 @@
$phpgw->common->navbar();
}
- function display_option($text,$check,$option) {
+ function display_option($text,$check,$option,$indent) {
global $phpgw, $phpgw_info;
if ($phpgw_info["user"]["apps"][$check]) {
?>
- ?
+ ') {};
+ echo lang($text);
+ for ($i=0; $i < $indent; $i++, print '') {};
+ ?>
|
>
@@ -143,9 +147,9 @@
|
| Addressbook columns : |