diff --git a/ChangeLog b/ChangeLog index cbf23fb8a..275df1f0e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,8 @@ $Source$ css/phpmyadmin.css.php: Get rid of wrap="virtual" to achieve more XHTML validity. * libraries/common.lib.php, lang/*: Add Refresh link (RFE #942110). + * sql.php, libraries/display_tbl.lib.php: Export only SELECT queries, do + not show multi row actions when no checkboxes shown. 2004-05-03 Garvin Hicking * left.php: Bug #946501 - Nested table now also work with aliased diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 98dcfa9e3..f13c74688 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -1797,7 +1797,7 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) // 4. ----- Displays the link for multi-fields delete - if ($is_display['del_lnk'] == 'dr' || $is_display['del_lnk'] == 'kp') { + if ($is_display['del_lnk'] == 'dr' && $is_display['del_lnk'] != 'kp') { $delete_text = $is_display['del_lnk'] == 'dr' ? $GLOBALS['strDelete'] : $GLOBALS['strKill']; $propicon = (string)$GLOBALS['cfg']['PropertiesIconic']; @@ -1816,21 +1816,26 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql) echo ' '; - - echo ' '; + if ($analyzed_sql[0]['querytype'] == 'SELECT') { + echo ' '; + } } else { echo ' ' . (($propicon == 'both') ? ' ' . $GLOBALS['strEdit'] : ''); echo ' ' . (($propicon == 'both') ? ' ' . $delete_text : ''); - echo ' ' . (($propicon == 'both') ? ' ' . $GLOBALS['strExport'] : ''); + if ($analyzed_sql[0]['querytype'] == 'SELECT') { + echo ' ' . (($propicon == 'both') ? ' ' . $GLOBALS['strExport'] : ''); + } } echo "\n"; } else { echo ' ' . "\n"; echo ' ' . "\n"; - echo ' ' . "\n"; + if ($analyzed_sql[0]['querytype'] == 'SELECT') { + echo ' ' . "\n"; + } } echo '' . "\n"; echo '' . "\n"; diff --git a/sql.php b/sql.php index 278e66e0a..fa3d0436d 100644 --- a/sql.php +++ b/sql.php @@ -726,7 +726,7 @@ else { // (the url_query has extra parameters that won't be used to export) // (the single_table parameter is used in display_export.lib.php // to hide the SQL and the structure export dialogs) - if (!isset($printview)) { + if ($analyzed_sql[0]['querytype'] == 'SELECT' && !isset($printview)) { if (isset($analyzed_sql[0]['table_ref'][0]['table_true_name']) && !isset($analyzed_sql[0]['table_ref'][1]['table_true_name'])) { $single_table = '&single_table=true'; } else {