Explorar el Código

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

Thijs Kinkhorst hace 21 años
padre
commit
cc3c4c9ee0
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  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>