Can kill more proceses (bug #844353).
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2003-11-18 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* libraries/display_tbl.lib.php: Can kill more proceses (bug #844353).
|
||||
|
||||
2003-11-18 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* almost EVERYTHING: The big rename from php3 to 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 '<form method="post" action="tbl_row_delete.php" name="rowsDeleteForm">' . "\n";
|
||||
echo PMA_generate_common_hidden_inputs($db, $table, 1);
|
||||
echo '<input type="hidden" name="disp_direction" value="' . $disp_direction . '" />' . "\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 ' <img src="./images/arrow_' . $GLOBALS['text_dir'] . '.gif" border="0" width="38" height="22" alt="' . $GLOBALS['strWithChecked'] . '" />';
|
||||
@@ -1879,14 +1883,14 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')) {
|
||||
/* IE has trouble with <button> */
|
||||
if (PMA_USR_BROWSER_AGENT != 'IE') {
|
||||
echo ' <button class="mult_submit" type="submit" name="submit_mult" value="row_delete" title="' . $GLOBALS['strDelete'] . '">' . "\n"
|
||||
. '<img src="./images/button_drop.png" title="' . $GLOBALS['strDelete'] . '" alt="' . $GLOBALS['strDelete'] . '" width="11" height="13" />' . (($propicon == 'both') ? ' ' . $GLOBALS['strDelete'] : '') . "\n"
|
||||
. '<img src="./images/button_drop.png" title="' . $delete_text . '" alt="' . $GLOBALS['strDelete'] . '" width="11" height="13" />' . (($propicon == 'both') ? ' ' . $delete_text : '') . "\n"
|
||||
. '</button>';
|
||||
} else {
|
||||
echo ' <input type="image" name="submit_mult" value="row_delete" title="' . $GLOBALS['strDelete'] . '" src="./images/button_drop.png" />' . (($propicon == 'both') ? ' ' . $GLOBALS['strDelete'] : '');
|
||||
echo ' <input type="image" name="submit_mult" value="row_delete" title="' . $delete_text . '" src="./images/button_drop.png" />' . (($propicon == 'both') ? ' ' . $delete_text : '');
|
||||
}
|
||||
echo "\n";
|
||||
} else {
|
||||
echo ' <input type="submit" name="submit_mult" value="row_delete" title="' . $GLOBALS['strDelete'] . '" />' . "\n";
|
||||
echo ' <input type="submit" name="submit_mult" value="row_delete" title="' . $delete_text . '" />' . "\n";
|
||||
}
|
||||
echo '<input type="hidden" name="sql_query" value="' . $sql_query . '" />' . "\n";
|
||||
echo '<input type="hidden" name="pos" value="' . $pos . '" />' . "\n";
|
||||
|
Reference in New Issue
Block a user