From f4ceff0e84fba63ac4a316b24e7a0ca0bac89127 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 2 Oct 2003 18:36:02 +0000 Subject: [PATCH] bug 816658 --- ChangeLog | 2 ++ libraries/display_tbl.lib.php3 | 45 +++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9860e5a48..7f158a8bd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2003-10-02 Marc Delisle * libraries/grab_globals.lib.php3: bug 807047, protect POST variables against cookies of the same name + * libraries/display_tbl.lib.php3: bug 816658, the multi-row delete + icon should not be displayed in all cases 2003-10-01 Marc Delisle * lang/slovenian update, thanks to Kositer Uros diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index e7a0bb176..fc4a0139b 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -588,8 +588,10 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { // Start of form for multi-rows delete - echo '
' . "\n"; - echo PMA_generate_common_hidden_inputs($db, $table, 1); + if ($is_display['del_lnk'] == 'dr') { + echo '' . "\n"; + echo PMA_generate_common_hidden_inputs($db, $table, 1); + } // 1. Displays the full/partial text button (part 1)... if ($disp_direction == 'horizontal' || $disp_direction == 'horizontalflipped') { @@ -1775,30 +1777,33 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { // 4. ----- Displays the link for multi-fields delete - $propicon = (string)$GLOBALS['cfg']['PropertiesIconic']; + if ($is_display['del_lnk'] == 'dr') { + + $propicon = (string)$GLOBALS['cfg']['PropertiesIconic']; // echo '   ' . $GLOBALS['strWithChecked'] . ''; - echo '  ' . $GLOBALS['strWithChecked'] . ''. "\n"; + echo '  ' . $GLOBALS['strWithChecked'] . ''. "\n"; - if ($cfg['PropertiesIconic']) { - /* Opera has trouble with */ - /* IE has trouble with '; + if ($cfg['PropertiesIconic']) { + /* Opera has trouble with */ + /* IE has trouble with '; + } else { + echo ' ' . (($propicon == 'both') ? ' ' . $GLOBALS['strDelete'] : ''); + } + echo "\n"; } else { - echo ' ' . (($propicon == 'both') ? ' ' . $GLOBALS['strDelete'] : ''); + echo ' ' . "\n"; } - echo "\n"; - } else { - echo ' ' . "\n"; + echo '' . "\n"; + echo '' . "\n"; + echo '' . "\n"; + echo '
' . "\n"; + echo '
' . "\n"; } - echo '' . "\n"; - echo '' . "\n"; - echo '' . "\n"; - echo '
' . "\n"; - echo '' . "\n"; // 5. ----- Displays the navigation bar at the bottom if required -----