From: tokul Date: Sun, 18 Apr 2004 10:15:26 +0000 (+0000) Subject: adding list sort options. no sort indicator yet. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d9879e2938cc2943531662236c6de7c7e2b10ea0 adding list sort options. no sort indicator yet. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7142 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/addressbook.php b/src/addressbook.php index 39211b87..04adee2c 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -373,23 +373,47 @@ if ($showaddrlist) { html_tag( 'td', ' 
', 'center', '', 'colspan="5"' ) ) , 'center' ); - } - - echo html_tag( 'table', - html_tag( 'tr', - html_tag( 'td', "\n" . '' . $row['source'] . '' . "\n", 'center', $color[0] ) - ) , - 'center', '', 'width="95%"' ) ."\n" . - "\n" . - html_tag( 'table', '', 'center', '', 'border="0" cellpadding="1" cellspacing="0" width="90%"' ) . - html_tag( 'tr', "\n" . - html_tag( 'th', ' ', 'left', '', 'width="1%"' ) . - html_tag( 'th', _("Nickname"), 'left', '', 'width="1%"' ) . - html_tag( 'th', _("Name"), 'left', '', 'width="1%"' ) . - html_tag( 'th', _("E-mail"), 'left', '', 'width="1%"' ) . - html_tag( 'th', _("Info"), 'left', '', 'width="1%"' ) , + echo "\n\n" . + html_tag( 'table', '', 'center', '', 'border="0" cellpadding="1" cellspacing="0" width="90%"' ) . + html_tag( 'tr', "\n" . + html_tag( 'th', ' ', 'left', '', 'width="1%"' ) . "\n" . + html_tag( 'th', _("Nickname") . + " ". + "\"sort", 'left', '', 'width="1%"' ) . "\n" . + html_tag( 'th', _("Name") . + " " . + "", 'left', '', 'width="1%"' ) . "\n" . + html_tag( 'th', _("E-mail") . + " " . + "", 'left', '', 'width="1%"' ) . "\n" . + html_tag( 'th', _("Info") . + " " . + "", 'left', '', 'width="1%"' ) . "\n", '', $color[9] ) . "\n"; - + } + + // Separate different backends with
+ if($prevbackend > 0) { + echo html_tag( 'tr', + html_tag( 'td', "
", 'center', '' ,'colspan="5"' ) + ); + } + // Print backend name + echo html_tag( 'tr', + html_tag( 'td', "\n" . '' . $row['source'] . '' . "\n", 'center', $color[0] ,'colspan="5"' ) + ); + $line = 0; $headerprinted = true; } /* End of header */ @@ -431,10 +455,10 @@ if ($showaddrlist) { html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'valign="top" width="1%"' ) . "\n"; $line++; - echo "\n". - "\n"; } - + echo "" . + "\n\n"; + /* End of list. Add edit/delete select buttons */ if ($headerprinted) { echo html_tag( 'table',