fixed the layout of the chart in the server status page

This commit is contained in:
Martynas Mickevicius
2010-06-15 20:13:12 +03:00
parent 9e25d0536d
commit 473b9b38dc

View File

@@ -587,22 +587,19 @@ foreach ($used_queries as $name => $value) {
?> ?>
</tbody> </tbody>
</table> </table>
<div class="clearfloat"></div>
</div> </div>
<div> <div>
<table> <?php
<tr><td> // format keys which will be shown in the chart
<?php $chart_data = array();
// format keys which will be shown in the chart foreach($used_queries as $key => $value) {
$chart_data = array(); $key = str_replace(array('Com_', '_'), array('', ' '), $key);
foreach($used_queries as $key => $value) { $chart_data[ucwords($key)] = (int)$value;
$key = str_replace(array('Com_', '_'), array('', ' '), $key); }
$chart_data[ucwords($key)] = (int)$value; echo PMA_chart_pie(__('Query type'), $chart_data);
} ?>
echo PMA_chart_pie(__('Query type'), $chart_data);
?>
</td></tr>
</table>
</div> </div>
<div id="serverstatussection"> <div id="serverstatussection">