use PMA_generate_html_radio()

This commit is contained in:
Marc Delisle
2007-12-29 21:06:30 +00:00
parent cf1303f0fe
commit 6d63f4bbd1
2 changed files with 10 additions and 11 deletions

View File

@@ -330,16 +330,14 @@ if (!$is_information_schema) {
?>
</legend>
<input type="text" name="newname" size="30" class="textfield" value="" /><br />
<input type="radio" name="what" value="structure"
id="radio_copy_structure" style="vertical-align: middle" />
<label for="radio_copy_structure"><?php echo $strStrucOnly; ?></label><br />
<input type="radio" name="what" value="data" id="radio_copy_data"
checked="checked" style="vertical-align: middle" />
<label for="radio_copy_data"><?php echo $strStrucData; ?></label><br />
<input type="radio" name="what" value="dataonly"
id="radio_copy_dataonly" style="vertical-align: middle" />
<label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label><br />
<?php
$choices = array(
'structure' => $strStrucOnly,
'data' => $strStrucData,
'dataonly' => $strDataOnly);
PMA_generate_html_radio('what', $choices, 'data', true);
unset($choices);
?>
<input type="checkbox" name="create_database_before_copying" value="1"
id="checkbox_create_database_before_copying"
style="vertical-align: middle" checked="checked" />

View File

@@ -2293,10 +2293,11 @@ function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '
echo ' checked="checked"';
}
echo ' />' . "\n";
echo '<label for="' . $html_field_id . '">' . htmlspecialchars($choice_label) . '</label>' . "\n";
echo '<label for="' . $html_field_id . '">' . htmlspecialchars($choice_label) . '</label>';
if ($line_break) {
echo '<br />';
}
echo "\n";
}
}
?>