Revision 1658
Added by darkviper over 13 years ago
| tool.php | ||
|---|---|---|
| 91 | 91 |
$num_droplets = $query_droplets->numRows(); |
| 92 | 92 |
if($num_droplets > 0) {
|
| 93 | 93 |
?> |
| 94 |
<table summary="" class="row_a" border="0" cellspacing="0" cellpadding="3" width="100%">
|
|
| 94 |
<table summary="" class="row_0" border="0" cellspacing="0" cellpadding="3" width="100%">
|
|
| 95 | 95 |
<thead> |
| 96 | 96 |
<tr> |
| 97 | 97 |
<td width="3%"></td> |
| ... | ... | |
| 102 | 102 |
</tr> |
| 103 | 103 |
</thead> |
| 104 | 104 |
<?php |
| 105 |
$row = 'a';
|
|
| 105 |
$row = 0;
|
|
| 106 | 106 |
while($droplet = $query_droplets->fetchRow()) {
|
| 107 | 107 |
$get_modified_user = $database->query("SELECT display_name,username, user_id FROM ".TABLE_PREFIX."users WHERE user_id = '".$droplet['modified_by']."' LIMIT 1");
|
| 108 | 108 |
if($get_modified_user->numRows() > 0) {
|
| ... | ... | |
| 150 | 150 |
</td> |
| 151 | 151 |
</tr> |
| 152 | 152 |
<?php |
| 153 |
// Alternate row color |
|
| 154 |
if($row == 'a') {
|
|
| 155 |
$row = 'b'; |
|
| 156 |
} else {
|
|
| 157 |
$row = 'a'; |
|
| 158 |
} |
|
| 153 |
// Alternate row color (toggle between 0 and 1) |
|
| 154 |
$row = ++$row & 1; |
|
| 159 | 155 |
} |
| 160 | 156 |
?> |
| 161 | 157 |
</table> |
Also available in: Unified diff
fixed alternating row styles in droplet listing