= 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. if ($cfg['QueryFrame'] && (!$cfg['QueryFrameJS'] && !$db || ($cfg['QueryFrameJS'] && !$db))) { /** * 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 ($num_dbs > 0) { $queryframe_db_list = '
'; for ($i = 0; $i < $num_dbs; $i++) { $t_db = $dblist[$i]; $queryframe_db_list .= '
' . htmlspecialchars($t_db) . '
'; } $queryframe_db_list .= '
'; } else { $queryframe_db_list = ''; } } else { $queryframe_db_list = ''; } $form_items = 0; if ($cfg['QueryFrame'] && $cfg['QueryFrameJS'] && isset($is_inside_querywindow) && $is_inside_querywindow) { ?>
name="sqlform">
onsubmit="return checkSqlQuery(this)" name="sqlform">
0) { ?>
' : ' ') . PMA_showMySQLDocu('Reference', 'SELECT'); ?>
> <?php if (!empty($query_to_display)) { echo htmlspecialchars($query_to_display); } elseif (isset($table)) { echo htmlspecialchars(str_replace('%d', PMA_backquote($db), str_replace('%t', PMA_backquote($table), $cfg['DefaultQueryTable']))); } else { echo htmlspecialchars(str_replace('%d', PMA_backquote($db), $cfg['DefaultQueryDatabase'])); } ?>
' : '') . $strFields; ?>:
' . htmlspecialchars($fields_list[$i]) . '' . "\n"; } ?>
' . $strOr . '' : '') . ' ' . $strLocationTextfile . ' :
' . "\n"; ?>
' . "\n" . '
' . $strAutodetect . '
' . "\n" . '
' . "\n" . '
' . $strNone . '
' . "\n"; if ($is_gzip) { echo '
' . "\n" . '
' . $strGzip . '
' . "\n"; } if ($is_bzip) { echo '
' . "\n" . '
' . $strBzip . '
' . "\n"; } } else { echo '
' . "\n"; } ?>
' . $strOr . '' : '') . ' ' . $strWebServerUploadDirectory . ' :
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; $form_items++; } // end if (is_first) echo '
' . htmlspecialchars($file) . '
' . "\n"; $is_first++; } // end if (is_file) } // end while if ($is_first > 0) { echo '
' . "\n" . '
' . "\n\n"; } // end if (isfirst > 0) @closedir($handle); } else { echo '
' . "\n"; echo '
' . $strError . '
' . "\n"; echo ' ' . $strWebServerUploadDirectoryError . "\n"; echo '
' . "\n"; } } // end if (web-server upload directory) echo "\n"; // Encoding setting form appended by Y.Kawada if (function_exists('PMA_set_enc_form')) { echo PMA_set_enc_form(' '); $form_items++; } // Charset conversion options if (($is_upload || $is_upload_dir) && (!isset($is_inside_querywindow) || (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && ($querydisplay_tab == 'files' || $querydisplay_tab == 'full'))) && isset($db) && $db != ''){ if ($cfg['AllowAnywhereRecoding'] && $allow_recoding) { $form_items++; echo '
' . "\n"; $temp_charset = reset($cfg['AvailableCharsets']); echo $strCharsetOfFile . "\n" . '
' . "\n" . '
' . $temp_charset . '
' . "\n"; while ($temp_charset = next($cfg['AvailableCharsets'])) { echo '
' . $temp_charset . '
' . "\n"; } echo '
' . "\n" . ' '; echo '
' . "\n"; } // end if (recoding) } // Bookmark Support $bookmark_go = FALSE; if (!isset($is_inside_querywindow) || (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && ($querydisplay_tab == 'history' || $querydisplay_tab == 'full'))) { if ($cfg['Bookmark']['db'] && $cfg['Bookmark']['table']) { if (($bookmark_list = PMA_listBookmarks($db, $cfg['Bookmark'])) && count($bookmark_list) > 0) { $form_items++; echo " " . ((isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && $querydisplay_tab == 'full') || !isset($is_inside_querywindow) ? "
$strOr
" : '') . " $strBookmarkQuery :
\n"; if (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE) { ?>
' . "\n"; echo '
' . "\n"; echo '
' . "\n"; foreach($bookmark_list AS $key => $value) { echo '
' . htmlspecialchars($key) . '
' . "\n"; } echo '
' . "
\n"; echo ' ' . $strVar . ' (
' . $strDocu . '
):
' . "\n"; echo '
' . $strSubmit . '
' . "\n"; echo '
' . $strBookmarkView . '
' . "\n"; echo '
' . $strDelete . '
' . "\n"; echo '
' . "\n"; echo ' ' . "\n"; $bookmark_go = TRUE; } } } if (!isset($is_inside_querywindow) || (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && (($querydisplay_tab == 'files') || $querydisplay_tab == 'sql' || $querydisplay_tab == 'full' || ($querydisplay_tab == 'history' && $bookmark_go)))) { if ($form_items > 0) { ?>
: