From 1b0a33882bc6a18569cce79eced96005c77ad4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Nov 2003 16:00:38 +0000 Subject: [PATCH] Can kill more proceses (bug #844353). --- ChangeLog | 3 +++ libraries/display_tbl.lib.php | 16 ++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 180b95cbd..777ffda7a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-11-18 Michal Cihar + * libraries/display_tbl.lib.php: Can kill more proceses (bug #844353). + 2003-11-18 Michal Cihar * almost EVERYTHING: The big rename from php3 to php. diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index becaea450..476734ce2 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -592,7 +592,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { // Start of form for multi-rows delete - if ($is_display['del_lnk'] == 'dr') { + if ($is_display['del_lnk'] == 'dr' || $is_display['del_lnk'] == 'kp' ) { echo '
' . "\n"; echo PMA_generate_common_hidden_inputs($db, $table, 1); echo '' . "\n"; @@ -605,6 +605,8 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { if ($disp_direction == 'horizontal' || $disp_direction == 'horizontalflipped') { $colspan = ($is_display['edit_lnk'] != 'nn' && $is_display['del_lnk'] != 'nn') ? ' colspan="3"' + : ($is_display['edit_lnk'] != 'nn' || $is_display['del_lnk'] != 'nn') + ? ' colspan="2"' : ''; } else { $rowspan = ($is_display['edit_lnk'] != 'nn' && $is_display['del_lnk'] != 'nn') @@ -619,7 +621,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { . '&pos=' . $pos . '&disp_direction=' . $disp_direction . '&repeat_cells=' . $repeat_cells - . '&goto=' . $goto + . '&goto=' . $gotXo . '&dontlimitchars=' . (($dontlimitchars) ? 0 : 1); // ... before the result table @@ -1196,6 +1198,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { . PMA_generate_common_url('mysql') . '&sql_query=' . urlencode('KILL ' . $row['Id']) . '&goto=' . urlencode($lnk_goto); + $del_query = urlencode('KILL ' . $row['Id']); $js_conf = 'KILL ' . $row['Id']; if ($GLOBALS['cfg']['PropertiesIconic'] == FALSE) { $del_str = $GLOBALS['strKill']; @@ -1867,8 +1870,9 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { // 4. ----- Displays the link for multi-fields delete - if ($is_display['del_lnk'] == 'dr') { + 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']; // echo '   ' . $GLOBALS['strWithChecked'] . ''; @@ -1879,14 +1883,14 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) { /* IE has trouble with '; } else { - echo ' ' . (($propicon == 'both') ? ' ' . $GLOBALS['strDelete'] : ''); + echo ' ' . (($propicon == 'both') ? ' ' . $delete_text : ''); } echo "\n"; } else { - echo ' ' . "\n"; + echo ' ' . "\n"; } echo '' . "\n"; echo '' . "\n";