bug #3119882, Display query chart on demand

This commit is contained in:
Dieter Adriaenssens
2010-12-04 15:12:45 +01:00
parent d370730eff
commit 7dcd159da6
2 changed files with 16 additions and 5 deletions

View File

@@ -125,6 +125,7 @@
thanks to garas - garas thanks to garas - garas
- bug #3123433 [interface] Avoid double escaping of MySQL errors. - bug #3123433 [interface] Avoid double escaping of MySQL errors.
- bug #3119874 [interface] Show integers without decimals on status page. - bug #3119874 [interface] Show integers without decimals on status page.
- bug #3119882 [interface] Display query chart on demand.
3.3.9.0 (not yet released) 3.3.9.0 (not yet released)
- bug [doc] Fix references to MySQL doc - bug [doc] Fix references to MySQL doc

View File

@@ -603,7 +603,7 @@ foreach ($sections as $section_name => $section) {
<hr class="clearfloat" /> <hr class="clearfloat" />
<h3><?php echo <h3 id="serverstatusqueries"><?php echo
sprintf(__('<b>Query statistics</b>: Since its startup, %s queries have been sent to the server.'), sprintf(__('<b>Query statistics</b>: Since its startup, %s queries have been sent to the server.'),
PMA_formatNumber($server_status['Questions'], 0)); ?></h3> PMA_formatNumber($server_status['Questions'], 0)); ?></h3>
@@ -702,10 +702,20 @@ foreach ($used_queries as $name => $value) {
<div class="clearfloat"></div> <div class="clearfloat"></div>
</div> </div>
<div> <div id="serverstatusquerieschart">
<?php <?php
if (empty($_REQUEST["query_chart"])) {
echo '<a href="' . $PMA_PHP_SELF . '?' . $url_query . '&amp;query_chart=1#serverstatusqueries"'
.'title="' . __('Show query chart') . '">'
. __('Show query chart') . '</a>';
} else {
echo PMA_chart_status($used_queries); echo PMA_chart_status($used_queries);
?> echo '<a href="' . $PMA_PHP_SELF . '?' . $url_query . '#serverstatusqueries"'
.'title="' . __('Hide query chart') . '">'
. __('Hide query chart') . '</a>';
}
PMA_Message::warning(__('Note: Generating the query chart can take a long time.'))->display();
?>
</div> </div>
<div id="serverstatussection"> <div id="serverstatussection">