Project

General

Profile

« Previous | Next » 

Revision 1658

Added by darkviper about 12 years ago

fixed alternating row styles in droplet listing

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12
===============================================================================
13 13

  
14
05 Apr-2012 Build 1658 Werner v.d.Decken(DarkViper)
15
# fixed alternating row styles in droplet listing
14 16
04 Apr-2012 Build 1657 Dietmar Woellbrink (Luisehahne)
15 17
! some validation fixes in backend
16 18
02 Apr-2012 Build 1656 Werner v.d.Decken(DarkViper)
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1657');
54
if(!defined('REVISION')) define('REVISION', '1658');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/modules/droplets/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