From 9f6c97c361d28e6955f68e8df56e8228c16086a3 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 18 Jun 2004 12:56:55 +0000 Subject: [PATCH] Get the alternating row colors of the addrbook in sync with those 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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/addressbook.php b/src/addressbook.php index a3eab161..61eeeccd 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -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 "\n"; do_hook('addressbook_bottom'); ?> - \ No newline at end of file + -- 2.25.1