Reintroduce alternating colors in addressbook, something that has
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 Nov 2003 12:07:18 +0000 (12:07 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 10 Nov 2003 12:07:18 +0000 (12:07 +0000)
(probably) accidentally disappeard in the past. Thanks Ronan Salmon
for the tip, closes #823290.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6133 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
src/addressbook.php

index 553ae87be35208180c844bb713befc1185ebb129..af169f184964403db66960dab2867fc9562a809c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -106,6 +106,8 @@ Version 1.5.0 -- CVS
   - New function: imap_general.php:create_imap_stream()
   - Updated src/login.php to detect, handle, and warn on LOGINDISABLED from IMAP server.
   - Fixed SquirrelMail to work under PHP5.
+  - Reintroduce alternating row colors in addressbook, something that has
+    accidentally disappeared in the past.
 
 **************************************
 *** SquirrelMail Stable Series 1.4 ***
index e4ceed557e09549856519a5a274b3fec7fbe49fd..a01466dbc451c6843377ab65ec8cc5e5027ac2ba 100644 (file)
@@ -376,7 +376,7 @@ if ($showaddrlist) {
             if ($line % 2) { $tr_bgcolor = $color[0]; }
             if ($squirrelmail_language == 'ja_JP')
                 {
-            echo html_tag( 'tr', '') .
+            echo html_tag( 'tr', '', '', $tr_bgcolor) .
                 html_tag( 'td',
                           '<SMALL>' .
                           '<INPUT TYPE=checkbox ' . $selected . ' NAME="sel[]" VALUE="' .
@@ -386,7 +386,7 @@ if ($showaddrlist) {
                 html_tag( 'td', '&nbsp;' . $row['lastname'] . ' ' . $row['firstname'] . '&nbsp;', 'left', '', 'valign="top" width="1%" nowrap' ) .
                 html_tag( 'td', '', 'left', '', 'valign="top" width="1%" nowrap' ) . '&nbsp;';
                 } else {
-            echo html_tag( 'tr', '') .
+            echo html_tag( 'tr', '', '', $tr_bgcolor) .
             html_tag( 'td',
                 '<SMALL>' .
                 '<INPUT TYPE=checkbox ' . $selected . ' NAME="sel[]" VALUE="' .