$del_query) { $primary_key[] = urldecode($i_primary_key); } include './tbl_change.php'; } break; case 'row_export': if (isset($rows_to_delete) && is_array($rows_to_delete)) { // Needed to allow SQL export $single_table = TRUE; $primary_key = array(); $sql_query = urldecode($sql_query); // garvin: As we got the fields to be edited from the 'rows_to_delete' checkbox, we use the index of it as the // indicating primary key. Then we built the array which is used for the tbl_change.php script. foreach($rows_to_delete AS $i_primary_key => $del_query) { $primary_key[] = urldecode($i_primary_key); } include './tbl_properties_export.php'; } break; case 'row_delete': default: if ((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 = urldecode($original_sql_query); } if (isset($original_url_query)) { $url_query = $original_url_query; } if (isset($original_pos)) { $pos = $original_pos; } // this is because sql.php could call tbl_properties_structure // which would think it needs to call mult_submits.inc.php: unset($submit_mult); unset($mult_btn); require('./sql.php'); /** * Displays the footer */ require_once('./footer.inc.php'); break; } } ?>