forked from phpmyadmin/phpmyadmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtbl_row_delete.php
59 lines (49 loc) · 1.32 KB
/
tbl_row_delete.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
require_once('./libraries/grab_globals.lib.php');
require_once('./libraries/common.lib.php');
require_once('./libraries/mysql_charsets.lib.php');
require_once('./header.inc.php');
/**
* 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) && is_array($rows_to_delete))
|| isset($mult_btn)) {
$action = 'tbl_row_delete.php';
$err_url = 'tbl_row_delete.php?' . PMA_generate_common_url($db, $table);
if (!isset($mult_btn)) {
$original_sql_query = $sql_query;
$original_url_query = $url_query;
$original_pos = $pos;
}
require('./mult_submits.inc.php');
}
$url_query = PMA_generate_common_url($db, $table)
. '&goto=tbl_properties.php';
/**
* Show result of multi submit operation
*/
if ((!empty($submit_mult) && isset($rows_to_delete))
|| isset($mult_btn)) {
PMA_showMessage($strSuccess);
}
if (isset($original_sql_query)) {
$sql_query = $original_sql_query;
}
if (isset($original_url_query)) {
$url_query = $original_url_query;
}
if (isset($original_pos)) {
$pos = $original_pos;
}
require('./sql.php');
/**
* Displays the footer
*/
require_once('./footer.inc.php');
?>