use PMA_generate_html_radio()
This commit is contained in:
@@ -330,16 +330,14 @@ if (!$is_information_schema) {
|
|||||||
?>
|
?>
|
||||||
</legend>
|
</legend>
|
||||||
<input type="text" name="newname" size="30" class="textfield" value="" /><br />
|
<input type="text" name="newname" size="30" class="textfield" value="" /><br />
|
||||||
<input type="radio" name="what" value="structure"
|
<?php
|
||||||
id="radio_copy_structure" style="vertical-align: middle" />
|
$choices = array(
|
||||||
<label for="radio_copy_structure"><?php echo $strStrucOnly; ?></label><br />
|
'structure' => $strStrucOnly,
|
||||||
<input type="radio" name="what" value="data" id="radio_copy_data"
|
'data' => $strStrucData,
|
||||||
checked="checked" style="vertical-align: middle" />
|
'dataonly' => $strDataOnly);
|
||||||
<label for="radio_copy_data"><?php echo $strStrucData; ?></label><br />
|
PMA_generate_html_radio('what', $choices, 'data', true);
|
||||||
<input type="radio" name="what" value="dataonly"
|
unset($choices);
|
||||||
id="radio_copy_dataonly" style="vertical-align: middle" />
|
?>
|
||||||
<label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label><br />
|
|
||||||
|
|
||||||
<input type="checkbox" name="create_database_before_copying" value="1"
|
<input type="checkbox" name="create_database_before_copying" value="1"
|
||||||
id="checkbox_create_database_before_copying"
|
id="checkbox_create_database_before_copying"
|
||||||
style="vertical-align: middle" checked="checked" />
|
style="vertical-align: middle" checked="checked" />
|
||||||
|
@@ -2293,10 +2293,11 @@ function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '
|
|||||||
echo ' checked="checked"';
|
echo ' checked="checked"';
|
||||||
}
|
}
|
||||||
echo ' />' . "\n";
|
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) {
|
if ($line_break) {
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
}
|
}
|
||||||
|
echo "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user