extended 'check/uncheck all tables' feature to js disabled browsers
This commit is contained in:
@@ -168,6 +168,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
|
||||
</tr>
|
||||
<?php
|
||||
$i = $sum_entries = $sum_size = 0;
|
||||
$checked = (!empty($checkall) ? ' checked="checked"' : '');
|
||||
while (list($keyname, $sts_data) = each($tables)) {
|
||||
$table = $sts_data['Name'];
|
||||
// Sets parameters for links
|
||||
@@ -181,7 +182,7 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
|
||||
?>
|
||||
<tr>
|
||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($table); ?>" />
|
||||
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($table); ?>"<?php echo $checked; ?> />
|
||||
</td>
|
||||
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap">
|
||||
<b><?php echo htmlspecialchars($table); ?> </b>
|
||||
@@ -331,14 +332,23 @@ else if (PMA_MYSQL_INT_VERSION >= 32300) {
|
||||
<input type="submit" name="submit_mult" value="<?php echo $strPrintView; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
// Check all tables url
|
||||
$checkall_url = 'db_details.php3'
|
||||
. '?lang=' . $lang
|
||||
. '&server=' . $server
|
||||
. '&db=' . urlencode($db);
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onclick="setCheckboxes('tablesForm', true); return false;">
|
||||
<a href="<?php echo $checkall_url; ?>&checkall=1" onclick="setCheckboxes('tablesForm', true); return false;">
|
||||
<?php echo $GLOBALS['strCheckAll']; ?></a>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>
|
||||
<a href="#" onclick="setCheckboxes('tablesForm', false); return false;">
|
||||
<a href="<?php echo $checkall_url; ?>" onclick="setCheckboxes('tablesForm', false); return false;">
|
||||
<?php echo $GLOBALS['strUncheckAll']; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -366,6 +376,7 @@ else {
|
||||
<th><?php echo ucfirst($strRecords); ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$checked = (!empty($checkall) ? ' checked="checked"' : '');
|
||||
while ($i < $num_tables) {
|
||||
// Sets parameters for links
|
||||
$url_query = 'lang=' . $lang
|
||||
@@ -378,7 +389,7 @@ else {
|
||||
?>
|
||||
<tr>
|
||||
<td align="center" bgcolor="<?php echo $bgcolor; ?>">
|
||||
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($tables[$i]); ?>" />
|
||||
<input type="checkbox" name="selected_tbl[]" value="<?php echo urlencode($tables[$i]); ?>"<?php echo $checked; ?> />
|
||||
</td>
|
||||
<td bgcolor="<?php echo $bgcolor; ?>" class="data">
|
||||
<b> <?php echo $tables[$i]; ?> </b>
|
||||
@@ -419,14 +430,23 @@ else {
|
||||
<input type="submit" name="submit_mult" value="<?php echo $strEmpty; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
// Check all tables url
|
||||
$checkall_url = 'db_details.php3'
|
||||
. '?lang=' . $lang
|
||||
. '&server=' . $server
|
||||
. '&db=' . urlencode($db);
|
||||
echo "\n";
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#" onclick="setCheckboxes('tablesForm', true); return false;">
|
||||
<a href="<?php $checkall_url; ?>&checkall=1" onclick="setCheckboxes('tablesForm', true); return false;">
|
||||
<?php echo $GLOBALS['strCheckAll']; ?></a>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>
|
||||
<a href="#" onclick="setCheckboxes('tablesForm', false); return false;">
|
||||
<a href="<?php $checkall_url; ?>" onclick="setCheckboxes('tablesForm', false); return false;">
|
||||
<?php echo $GLOBALS['strUncheckAll']; ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user