getHeader(); $scripts = $header->getScripts(); $scripts->addFile('server_status_queries.js'); /* < IE 9 doesn't support canvas natively */ if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER < 9) { $scripts->addFile('jqplot/excanvas.js'); } // for charting $scripts->addFile('jqplot/jquery.jqplot.js'); $scripts->addFile('jqplot/plugins/jqplot.pieRenderer.js'); $scripts->addFile('jqplot/plugins/jqplot.canvasTextRenderer.js'); $scripts->addFile('jqplot/plugins/jqplot.canvasAxisLabelRenderer.js'); $scripts->addFile('jqplot/plugins/jqplot.dateAxisRenderer.js'); $scripts->addFile('jqplot/plugins/jqplot.highlighter.js'); $scripts->addFile('jqplot/plugins/jqplot.cursor.js'); $scripts->addFile('jquery/jquery.tablesorter.js'); $scripts->addFile('server_status_sorter.js'); // Add the html content to the response $response->addHTML('
' . __('Statements') . ' | '; $retval .= ''; /* l10n: # = Amount of queries */ $retval .= __('#'); $retval .= ' | '; $retval .= 'ø ' . __('per hour') . ' | '; $retval .= '% | '; $retval .= '
---|---|---|---|
' . htmlspecialchars($name) . ' | '; $retval .= ''; $retval .= htmlspecialchars(PMA_Util::formatNumber($value, 5, 0, true)); $retval .= ' | '; $retval .= ''; $retval .= htmlspecialchars( PMA_Util::formatNumber($value * $hour_factor, 4, 1, true) ); $retval .= ' | '; $retval .= ''; $retval .= htmlspecialchars( PMA_Util::formatNumber($value * $perc_factor, 0, 2) ); $retval .= ' | '; $retval .= '