Get the alternating row colors of the addrbook in sync with those
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jun 2004 12:56:55 +0000 (12:56 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jun 2004 12:56:55 +0000 (12:56 +0000)
from the mailbox listing. Thanks Maurice Makaay for spotting this.

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

src/addressbook.php

index a3eab16157e83c13572e75b3b7fb1589a707cf60..61eeeccd0c40b396eaa16719927c468dd864f99c 100644 (file)
@@ -415,9 +415,12 @@ if ($showaddrlist) {
             /* Check if this user is selected */
             $selected = in_array($row['backend'] . ':' . $row['nickname'], $defselected);
     
-            /* Print one row */
-            $tr_bgcolor = '';
-            if ($line % 2) { $tr_bgcolor = $color[0]; }
+            /* Print one row, with alternating color */
+            if ($line % 2) { 
+                $tr_bgcolor = $color[12];
+            } else {
+                $tr_bgcolor = $color[4];
+            }
             if ($squirrelmail_language == 'ja_JP')
                 {
             echo html_tag( 'tr', '', '', $tr_bgcolor) .
@@ -486,4 +489,4 @@ echo "</form>\n";
 do_hook('addressbook_bottom');
 ?>
 
-</body></html>
\ No newline at end of file
+</body></html>