Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dropped (again) some server side code for checking all items in a list

  • Loading branch information...
commit b1762ee467c0c10ec794a4ff661ef0990e81298d 1 parent 616e253
@roccivic roccivic authored
View
8 db_export.php
@@ -34,17 +34,13 @@
exit;
} // end if
-$checkall_url = 'db_export.php?'
- . PMA_generate_common_url($db)
- . '&goto=db_export.php';
-
$multi_values = '<div>';
-$multi_values .= '<a href="' . $checkall_url . '"';
+$multi_values .= '<a href="#"';
$multi_values .= ' onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">';
$multi_values .= __('Select All');
$multi_values .= '</a>';
$multi_values .= ' / ';
-$multi_values .= '<a href="' . $checkall_url . '&amp;unselectall=1"';
+$multi_values .= '<a href="#';
$multi_values .= ' onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">';
$multi_values .= __('Unselect All');
$multi_values .= '</a><br />';
View
24 libraries/DbSearch.class.php
@@ -127,20 +127,12 @@ private function _setSearchParams()
|| ! is_array($_REQUEST['criteriaTables'])
) {
unset($_REQUEST['submit_search']);
- } elseif (! isset($_REQUEST['selectall'])
- && ! isset($_REQUEST['unselectall'])
- ) {
+ } else {
$this->_criteriaTables = array_intersect(
$_REQUEST['criteriaTables'], $this->_tables_names_only
);
}
- if (isset($_REQUEST['selectall'])) {
- $this->_criteriaTables = $this->_tables_names_only;
- } elseif (isset($_REQUEST['unselectall'])) {
- $this->_criteriaTables = array();
- }
-
if (empty($_REQUEST['criteriaColumnName'])
|| ! is_string($_REQUEST['criteriaColumnName'])
) {
@@ -440,17 +432,11 @@ public function getSelectionForm($url_params)
$html_output .= '</select>';
$html_output .= '</td></tr>';
// Displays 'select all' and 'unselect all' links
- $alter_select = '<a href="db_search.php'
- . PMA_generate_common_url(
- array_merge($url_params, array('selectall' => 1))
- )
- . '#db_search" onclick="setSelectOptions(\'db_search\', \'criteriaTables[]\', true); return false;">'
+ $alter_select = '<a href="#" '
+ . 'onclick="setSelectOptions(\'db_search\', \'criteriaTables[]\', true); return false;">'
. __('Select All') . '</a> &nbsp;/&nbsp;';
- $alter_select .= '<a href="db_search.php'
- . PMA_generate_common_url(
- array_merge($url_params, array('unselectall' => 1))
- )
- . '#db_search" onclick="setSelectOptions(\'db_search\', \'criteriaTables[]\', false); return false;">'
+ $alter_select .= '<a href="#" '
+ . 'onclick="setSelectOptions(\'db_search\', \'criteriaTables[]\', false); return false;">'
. __('Unselect All') . '</a>';
$html_output .= '<tr><td class="right vbottom">' . $alter_select . '</td></tr>';
// Inputbox for column name entry
View
7 server_export.php
@@ -18,17 +18,14 @@
require 'libraries/server_common.inc.php';
$export_page_title = __('View dump (schema) of databases') . "\n";
-$checkall_url = 'server_export.php?'
- . PMA_generate_common_url()
- . '&amp;goto=db_export.php';
$multi_values = '<div style="text-align: left">';
-$multi_values .= '<a href="' . $checkall_url . '&amp;selectall=1"';
+$multi_values .= '<a href="#"';
$multi_values .= ' onclick="setSelectOptions(\'dump\', \'db_select[]\', true); return false;">';
$multi_values .= __('Select All');
$multi_values .= '</a>';
$multi_values .= ' / ';
-$multi_values .= '<a href="' . $checkall_url . '"'
+$multi_values .= '<a href="#"'
$multi_values .= ' onclick="setSelectOptions(\'dump\', \'db_select[]\', false); return false;">';
$multi_values .= __('Unselect All') . '</a><br />';
Please sign in to comment.
Something went wrong with that request. Please try again.