Browse Source

Reintroduce alternating colors in addressbook, something that has
(probably) accidentally disappeard in the past. Thanks Ronan Salmon
for the tip, closes #823290.

Thijs Kinkhorst 21 years ago
parent
commit
2822dd9935
2 changed files with 4 additions and 2 deletions
  1. 2 0
      ChangeLog
  2. 2 2
      src/addressbook.php

+ 2 - 0
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 ***

+ 2 - 2
src/addressbook.php

@@ -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="' .