Skip to content

Commit

Permalink
Remove odd CSS class logic from PHP file
Browse files Browse the repository at this point in the history
Odd CSS class is no longer nedeed, background coloring
is now donw with CSS pseudo-classes.

Signed-off-by: Patric Gustafsson <patricjgustafsson@outlook.com>
  • Loading branch information
vosgus committed Aug 23, 2016
1 parent 9ac93dd commit 640bbe1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions libraries/server_status_queries.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ function PMA_getHtmlForServerStatusQueriesDetails($ServerStatusData)
// reverse sort by value to show most used statements first
arsort($used_queries);

$odd_row = true;

//(- $ServerStatusData->status['Connections']);
$perc_factor = 100 / $total_queries;

Expand All @@ -103,7 +101,6 @@ function PMA_getHtmlForServerStatusQueriesDetails($ServerStatusData)
$query_sum = array_sum($used_queries);
$other_sum = 0;
foreach ($used_queries as $name => $value) {
$odd_row = !$odd_row;
// For the percentage column, use Questions - Connections, because
// the number of connections is not an item of the Query types
// but is included in Questions. Then the total of the percentages is 100.
Expand All @@ -115,9 +112,7 @@ function PMA_getHtmlForServerStatusQueriesDetails($ServerStatusData)
} else {
$chart_json[$name] = $value;
}
$retval .= '<tr class="';
$retval .= $odd_row ? 'odd' : 'even';
$retval .= '">';
$retval .= '<tr>';
$retval .= '<th class="name">' . htmlspecialchars($name) . '</th>';
$retval .= '<td class="value">';
$retval .= htmlspecialchars(
Expand Down

0 comments on commit 640bbe1

Please sign in to comment.