getFooter()->setMinimal(); $header = $response->getHeader(); $header->disableMenu(); $header->setBodyId('bodyquerywindow'); $scripts = $header->getScripts(); $scripts->addFile('common.js'); $scripts->addFile('querywindow.js'); if (PMA_isValid($_REQUEST['auto_commit'], 'identical', 'true')) { $scripts->addEvent('load', 'PMA_queryAutoCommit'); } // always set focus to the textarea if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') { $scripts->addEvent('load', 'PMA_querywindowSetFocus'); } echo '
'; if ($tabs) { echo PMA_Util::getHtmlTabs($tabs, array(), 'topmenu', true); unset($tabs); } PMA_sqlQueryForm($query_to_display, $querydisplay_tab); // Hidden forms and query frame interaction stuff $_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']); if (! empty($_sql_history) && ($querydisplay_tab == 'history' || $querydisplay_tab == 'full') ) { $tab = $querydisplay_tab != 'full' ? 'sql' : 'full'; echo __('SQL history') . ':
' . '' . "\n"; } echo '
'; echo PMA_generate_common_hidden_inputs('', ''); echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
';