= 7)) ? "\n" . ' onfocus="if (typeof(document.layers) == \'undefined\' || typeof(textarea_selected) == \'undefined\') {textarea_selected = 1; document.sqlform.elements[\'sql_query\'].select();}"' : ''; $auto_sel .= ' ' . $locking; // garvin: If non-JS query window is embedded, display a list of databases to choose from. // Apart from that, a non-js query window sucks badly. /** * Get the list and number of available databases. */ if ($server > 0) { PMA_availableDatabases(); // this function is defined in "common.lib.php" } else { $num_dbs = 0; } if ($cfg['QueryFrame'] && (!$cfg['QueryFrameJS'] && !$db || ($cfg['QueryFrameJS'] && !$db))) { if ($num_dbs > 0) { $queryframe_db_list = ' '; $queryframe_thcolspan = ' colspan="2"'; $queryframe_tdcolspan = ''; } else { $queryframe_db_list = ''; $queryframe_thcolspan = ' colspan="3"'; $queryframe_tdcolspan = ' colspan="2"'; } } else { $queryframe_db_list = ''; if ($num_dbs > 0) { $queryframe_thcolspan = ' colspan="3"'; $queryframe_tdcolspan = ' colspan="2"'; } else { $queryframe_thcolspan = ' colspan="2"'; $queryframe_tdcolspan = ''; } } $form_items = 0; // ($is_upload defined in common.lib.php) if ($cfg['QueryFrame'] && $cfg['QueryFrameJS'] && isset($is_inside_querywindow) && $is_inside_querywindow) { ?> ' . "\n" . '
\n"; if (!isset($is_inside_querywindow) || (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && ($querydisplay_tab == 'files' || $querydisplay_tab == 'full')) && isset($db) && $db != '') { // loic1: displays import dump feature only if file upload available $ldi_target = 'ldi_table.php?' . $url_query . (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE ? '&focus_querywindow=true' : ''); if ($is_upload && isset($db) && isset($table)) { //if (!isset($is_inside_querywindow) || !$is_inside_querywindow) echo "