瀏覽代碼

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 年之前
父節點
當前提交
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>