bug #3119882, Display query chart on demand
This commit is contained in:
@@ -125,6 +125,7 @@
|
||||
thanks to garas - garas
|
||||
- bug #3123433 [interface] Avoid double escaping of MySQL errors.
|
||||
- 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)
|
||||
- bug [doc] Fix references to MySQL doc
|
||||
|
@@ -603,7 +603,7 @@ foreach ($sections as $section_name => $section) {
|
||||
|
||||
<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.'),
|
||||
PMA_formatNumber($server_status['Questions'], 0)); ?></h3>
|
||||
|
||||
@@ -702,9 +702,19 @@ foreach ($used_queries as $name => $value) {
|
||||
<div class="clearfloat"></div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div id="serverstatusquerieschart">
|
||||
<?php
|
||||
if (empty($_REQUEST["query_chart"])) {
|
||||
echo '<a href="' . $PMA_PHP_SELF . '?' . $url_query . '&query_chart=1#serverstatusqueries"'
|
||||
.'title="' . __('Show query chart') . '">'
|
||||
. __('Show query chart') . '</a>';
|
||||
} else {
|
||||
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>
|
||||
|
||||
|
Reference in New Issue
Block a user