* db_details.php, libraries/functions.js: added possibility to
(un)select all tables at once in the database dump part of the page. Thanks to Joachim Fornallaz <jf@omnis.ch> for the patch.
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-01-07 Olivier M<>ller <om@omnis.ch>
|
||||
* db_details.php, libraries/functions.js: added possibility to
|
||||
(un)select all tables at once in the database dump part of the page.
|
||||
Thanks to Joachim Fornallaz <jf@omnis.ch> for the patch.
|
||||
|
||||
2002-01-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/display_tbl.lib.php3: typo thanks to
|
||||
yrtimd at users.sourceforge.net
|
||||
|
@@ -605,7 +605,16 @@ if ($num_tables > 0) {
|
||||
<input type="radio" name="what" value="data" />
|
||||
<?php echo $strStrucData; ?><br />
|
||||
<input type="radio" name="what" value="dataonly" />
|
||||
<?php echo $strDataOnly . "\n"; ?>
|
||||
<?php echo $strDataOnly . "\n"; ?><br />
|
||||
<?php
|
||||
if ($num_tables > 1) {
|
||||
?>
|
||||
<a href="<?php echo $checkall_url; ?>&checkall=1" onclick="javascript:setSelectOptions('db_dump','table_select[]',true); return false;"><?php echo $strCheckAll; ?></a>
|
||||
/
|
||||
<a href="<?php echo $checkall_url; ?>" onclick="javascript:setSelectOptions('db_dump','table_select[]',false); return false;"><?php echo $strUncheckAll; ?></a>
|
||||
<?php
|
||||
} // end if
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -347,3 +347,25 @@ function setCheckboxes(the_form, do_check)
|
||||
return true;
|
||||
} // end of the 'setCheckboxes()' function
|
||||
|
||||
|
||||
/**
|
||||
* Checks/unchecks all options of a <select> element
|
||||
*
|
||||
* @param string the form name
|
||||
* @param string the element name
|
||||
* @param boolean whether to check or to uncheck the element
|
||||
*
|
||||
* @return boolean always true
|
||||
*/
|
||||
function setSelectOptions(the_form, the_select, do_check)
|
||||
{
|
||||
var selectObject = document.forms[the_form].elements[the_select];
|
||||
var selectCount = selectObject.length;
|
||||
|
||||
for (var i = 0; i < selectCount; i++) {
|
||||
selectObject.options[i].selected = do_check;
|
||||
} // end for
|
||||
|
||||
return true;
|
||||
} // end of the 'setSelectOptions()' function
|
||||
|
||||
|
Reference in New Issue
Block a user