From ab9773190c8c2db48c3f10d04517c633a52d0fe2 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Fri, 18 Jul 2003 11:12:04 +0000 Subject: [PATCH] Added warning message and hide Go button for file import tab in querywindow when no options are available --- ChangeLog | 6 ++++++ tbl_query_box.php3 | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 61968d0b4..59b071e8c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-07-18 Garvin Hicking + * tbl_query_box.php3: For the querywindow - if no items are available + for the 'file import' tab, hide the 'Go' button and instead display + a warning message. Can happen if you don't have $cfg['UploadDir'] + set and $is_upload is false. + 2003-07-17 Marc Delisle * server_status.php3: the percentages of Query types did not add up to 100, because the number of connections is included in the total diff --git a/tbl_query_box.php3 b/tbl_query_box.php3 index b78a4bf58..d864d5286 100755 --- a/tbl_query_box.php3 +++ b/tbl_query_box.php3 @@ -86,6 +86,8 @@ if ($cfg['QueryFrame'] && (!$cfg['QueryFrameJS'] && !$db || ($cfg['QueryFrameJS' $queryframe_db_list = ''; } +$form_items = 0; + if ($cfg['QueryFrame'] && $cfg['QueryFrameJS'] && isset($is_inside_querywindow) && $is_inside_querywindow) { ?> ' . $strOr . '' : '') . ' ' . $strLocationTextfile . ' :
' . "\n"; ?>
@@ -230,6 +235,7 @@ if ($cfg['UploadDir'] != '' && !isset($is_inside_querywindow) || echo '
' . "\n"; echo '