Files
phpmyadmin/tbl_row_delete.php3
Marc Delisle a199e51025 clarification
2003-09-30 16:44:33 +00:00

60 lines
1.4 KiB
PHP
Executable File

<?php
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
if (!defined('PMA_GRAB_GLOBALS_INCLUDED')) {
include('./libraries/grab_globals.lib.php3');
}
if (!defined('PMA_COMMON_LIB_INCLUDED')) {
include('./libraries/common.lib.php3');
}
if (PMA_MYSQL_INT_VERSION >= 40100 && !defined('PMA_MYSQL_CHARSETS_LIB_INCLUDED')) {
include('./libraries/mysql_charsets.lib.php3');
}
require('./header.inc.php3');
/**
* Drop multiple rows if required
*/
// workaround for IE problem:
if (isset($submit_mult_x)) {
$submit_mult = 'row_delete';
}
if ((!empty($submit_mult) && isset($rows_to_delete))
|| isset($mult_btn)) {
$action = 'tbl_row_delete.php3';
$err_url = 'tbl_row_delete.php3?' . PMA_generate_common_url($db, $table);
if (!isset($mult_btn)) {
$original_sql_query = $sql_query;
$original_url_query = $url_query;
$original_pos = $pos;
}
include('./mult_submits.inc.php3');
}
$url_query = PMA_generate_common_url($db, $table)
. '&amp;goto=tbl_properties.php3';
/**
* Show result of multi submit operation
*/
if ((!empty($submit_mult) && isset($rows_to_delete))
|| isset($mult_btn)) {
PMA_showMessage($strSuccess);
}
$sql_query = $original_sql_query;
$url_query = $original_url_query;
$pos = $original_pos;
include('./sql.php3');
/**
* Displays the footer
*/
echo "\n";
require('./footer.inc.php3');
?>