You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-28 07:41:55 +03:00
Added table results for actions in Table maintenance in Table options
This commit is contained in:
27
sql.php
27
sql.php
@@ -867,10 +867,31 @@ else {
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['ajax_request']) && isset($_REQUEST['table_maintenance'])) {
|
||||
echo $show_query;
|
||||
$GLOBALS['js_include'][] = 'functions.js';
|
||||
$GLOBALS['js_include'][] = 'makegrid.js';
|
||||
$GLOBALS['js_include'][] = 'sql.js';
|
||||
|
||||
// Gets the list of fields properties
|
||||
if (isset($result) && $result) {
|
||||
$fields_meta = PMA_DBI_get_fields_meta($result);
|
||||
$fields_cnt = count($fields_meta);
|
||||
}
|
||||
|
||||
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 ($db == 'information_schema') {
|
||||
$disp_mode = 'nnnn110111';
|
||||
}
|
||||
|
||||
$message = PMA_Message::success($message);
|
||||
$extra_data['sql_query'] = PMA_showMessage($message, $GLOBALS['sql_query'], 'success');
|
||||
PMA_ajaxResponse($message,$message->isSuccess(),$extra_data);
|
||||
echo PMA_showMessage($message, $GLOBALS['sql_query'], 'success');
|
||||
PMA_displayTable($result, $disp_mode, $analyzed_sql);
|
||||
exit();
|
||||
}
|
||||
|
||||
// Displays the headers
|
||||
|
||||
Reference in New Issue
Block a user