= 7)) ? "\n" . ' onfocus="if (typeof(document.layers) == \'undefined\' || typeof(textarea_selected) == \'undefined\') {textarea_selected = 1; this.form.elements[\'sql_query\'].select();}"' : ''; // 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. if ($cfg['QueryFrame'] && (!$cfg['QueryFrameJS'] || ($cfg['QueryFrameJS'] && !$db))) { /** * Get the list and number of available databases. */ if ($server > 0) { PMA_availableDatabases(); // this function is defined in "common.lib.php3" } else { $num_dbs = 0; } if ($num_dbs > 0) { $queryframe_db_list = ''; } } else { $queryframe_db_list = ''; } ?>