query chart : improve message layout and remove disable link

This commit is contained in:
Dieter Adriaenssens
2010-12-06 21:21:24 +01:00
parent 9d9507c42b
commit 08701a59ce

View File

@@ -705,16 +705,14 @@ foreach ($used_queries as $name => $value) {
<div id="serverstatusquerieschart"> <div id="serverstatusquerieschart">
<?php <?php
if (empty($_REQUEST["query_chart"])) { if (empty($_REQUEST["query_chart"])) {
echo '<a href="' . $PMA_PHP_SELF . '?' . $url_query . '&amp;query_chart=1#serverstatusqueries"' echo '<a href="' . $PMA_PHP_SELF . '?' . $url_query
.'title="' . __('Show query chart') . '">' . '&amp;query_chart=1#serverstatusqueries"'
. __('Show query chart') . '</a>'; . 'title="' . __('Show query chart') . '">['
. __('Show query chart') . ']</a>';
PMA_Message::notice( __('Note: Generating the query chart can take a long time.'))->display();
} else { } 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>