Просмотр исходного кода

Get the alternating row colors of the addrbook in sync with those
from the mailbox listing. Thanks Maurice Makaay for spotting this.

Thijs Kinkhorst 21 лет назад
Родитель
Сommit
cc3c4c9ee0
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      src/addressbook.php

+ 7 - 4
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 "</form>\n";
 do_hook('addressbook_bottom');
 ?>
 
-</body></html>
+</body></html>