';
}
// Display previous update query (from tbl_replace)
if (isset($disp_query) && $cfg['ShowSQL'] == true) {
echo PMA_getMessage($disp_message, $disp_query, 'success');
}
if (isset($profiling_results)) {
// pma_token/url_query needed for chart export
?>
' . "\n";
echo '
';
echo '
' . "\n";
echo ' ' . "\n";
echo ' ' . __('Status') . PMA_showMySQLDocu('general-thread-states', 'general-thread-states') . ' | ' . "\n";
echo ' ' . __('Time') . ' | ' . "\n";
echo '
' . "\n";
$chart_json = Array();
foreach ($profiling_results as $one_result) {
echo ' ' . "\n";
echo '' . ucwords($one_result['Status']) . ' | ' . "\n";
echo '' . (PMA_formatNumber($one_result['Duration'], 3, 1)) . 's | ' . "\n";
if (isset($chart_json[ucwords($one_result['Status'])])) {
$chart_json[ucwords($one_result['Status'])] += $one_result['Duration'];
} else {
$chart_json[ucwords($one_result['Status'])] = $one_result['Duration'];
}
}
echo '
' . "\n";
echo '
';
//require_once 'libraries/chart.lib.php';
echo '
';
//PMA_chart_profiling($profiling_results);
echo json_encode($chart_json);
echo '
';
echo '' . "\n";
}
// Displays the results in a table
if (empty($disp_mode)) {
// see the "PMA_setDisplayMode()" function in
// libraries/display_tbl.lib.php
$disp_mode = 'urdr111101';
}
// hide edit and delete links for information_schema
if (PMA_is_system_schema($db)) {
$disp_mode = 'nnnn110111';
}
if (isset($label)) {
$message = PMA_message::success(__('Bookmark %s created'));
$message->addParam($label);
$message->display();
}
echo PMA_getTable($result, $disp_mode, $analyzed_sql);
PMA_DBI_free_result($result);
// BEGIN INDEX CHECK See if indexes should be checked.
if (isset($query_type) && $query_type == 'check_tbl' && isset($selected) && is_array($selected)) {
foreach ($selected as $idx => $tbl_name) {
$check = PMA_Index::findDuplicates($tbl_name, $db);
if (! empty($check)) {
printf(__('Problems with indexes of table `%s`'), $tbl_name);
echo $check;
}
}
} // End INDEX CHECK
// Bookmark support if required
if ($disp_mode[7] == '1'
&& (! empty($cfg['Bookmark']) && empty($id_bookmark))
&& ! empty($sql_query)
) {
echo "\n";
$goto = 'sql.php?'
. PMA_generate_common_url($db, $table)
. '&sql_query=' . urlencode($sql_query)
. '&id_bookmark=1';
?>
'; // end sqlqueryresults div
}
} // end rows returned
/**
* Displays the footer
*/
if (! isset($_REQUEST['table_maintenance'])) {
include 'libraries/footer.inc.php';
}
?>