Remove odd CSS class logic from PHP file

Odd CSS class is no longer needed,
background coloring now done with CSS pseudo-class.

Signed-off-by: Patric Gustafsson <patricjgustafsson@outlook.com>
This commit is contained in:
Patric Gustafsson 2016-08-31 15:43:36 +03:00
parent c150f06b33
commit 91f3928c2d

View File

@ -55,16 +55,14 @@ $th = array(
</thead>
<tbody>
<?php
$odd_row = true;
foreach ($types[$ttype] as $key => $transform) {
$desc = PMA_getTransformationDescription($types[$ttype . '_file'][$key]);
?>
<tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
<tr>
<td><?php echo $transform; ?></td>
<td><?php echo $desc; ?></td>
</tr>
<?php
$odd_row = !$odd_row;
}
?>
</tbody>