use PMA_generate_html_radio()

This commit is contained in:
Marc Delisle
2008-01-08 18:22:40 +00:00
parent d32b9ae46c
commit ad63e8f0eb
2 changed files with 27 additions and 32 deletions

View File

@@ -278,10 +278,13 @@ if ($cfgRelation['pdfwork']) {
echo "\n";
?>
</select>
<input type="radio" name="action_choose" value="0" id="radio_choose0" checked="checked" style="vertical-align: middle" /><label for="radio_choose0">
<?php echo $strEdit; ?> </label>
<input type="radio" name="action_choose" value="1" id="radio_choose1" style="vertical-align: middle" /><label for="radio_choose1">
<?php echo $strDelete; ?> </label>
<?php
$choices = array(
'0' => $strEdit,
'1' => $strDelete);
PMA_generate_html_radio('action_choose', $choices, '0', false);
unset($choices);
?>
<input type="submit" value="<?php echo $strGo; ?>" /><br />
</fieldset>
</form>

View File

@@ -1877,20 +1877,16 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
. ' <legend>' . $GLOBALS['strChangeCopyUser'] . '</legend>' . "\n";
PMA_displayLoginInformationFields('change');
echo ' <fieldset>' . "\n"
. ' <legend>' . $GLOBALS['strChangeCopyMode'] . '</legend>' . "\n"
. ' <input type="radio" name="mode" value="4" id="radio_mode_4" checked="checked" /><label for="radio_mode_4">' . "\n"
. ' ' . $GLOBALS['strChangeCopyModeCopy'] . "\n"
. ' </label><br />' . "\n"
. ' <input type="radio" name="mode" value="1" id="radio_mode_1" /><label for="radio_mode_1">' . "\n"
. ' ' . $GLOBALS['strChangeCopyModeJustDelete'] . "\n"
. ' </label><br />' . "\n"
. ' <input type="radio" name="mode" value="2" id="radio_mode_2" /><label for="radio_mode_2">' . "\n"
. ' ' . $GLOBALS['strChangeCopyModeRevoke'] . "\n"
. ' </label><br />' . "\n"
. ' <input type="radio" name="mode" value="3" id="radio_mode_3" /><label for="radio_mode_3">' . "\n"
. ' ' . $GLOBALS['strChangeCopyModeDeleteAndReload'] . "\n"
. ' </label>' . "\n"
. ' </fieldset>' . "\n"
. ' <legend>' . $GLOBALS['strChangeCopyMode'] . '</legend>' . "\n";
$choices = array(
'4' => $GLOBALS['strChangeCopyModeCopy'],
'1' => $GLOBALS['strChangeCopyModeJustDelete'],
'2' => $GLOBALS['strChangeCopyModeRevoke'],
'3' => $GLOBALS['strChangeCopyModeDeleteAndReload']);
PMA_generate_html_radio('mode', $choices, '4', true);
unset($choices);
echo ' </fieldset>' . "\n"
. '</fieldset>' . "\n"
. '<fieldset id="fieldset_change_copy_user_footer" class="tblFooters">' . "\n"
. ' <input type="submit" name="change_copy" value="' . $GLOBALS['strGo'] . '" />' . "\n"
@@ -1908,20 +1904,16 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
. PMA_generate_common_hidden_inputs('', '');
PMA_displayLoginInformationFields('new');
echo '<fieldset id="fieldset_add_user_database">' . "\n"
. '<legend>' . $GLOBALS['strCreateUserDatabase'] . '</legend>' . "\n"
. ' <div class="item">' . "\n"
. ' <input type="radio" name="createdb" value="0" id="radio_createdb_0" checked="checked" />' . "\n"
. ' <label for="radio_createdb_0">' . $GLOBALS['strCreateUserDatabaseNone'] . '</label>' . "\n"
. ' </div>' . "\n"
. ' <div class="item">' . "\n"
. ' <input type="radio" name="createdb" value="1" id="radio_createdb_1" />' . "\n"
. ' <label for="radio_createdb_1">' . $GLOBALS['strCreateUserDatabaseName'] . '</label>' . "\n"
. ' </div>' . "\n"
. ' <div class="item">' . "\n"
. ' <input type="radio" name="createdb" value="2" id="radio_createdb_2" />' . "\n"
. ' <label for="radio_createdb_2">' . $GLOBALS['strCreateUserDatabaseWildcard'] . '</label>' . "\n"
. ' </div>' . "\n"
. '</fieldset>' . "\n";
. '<legend>' . $GLOBALS['strCreateUserDatabase'] . '</legend>' . "\n";
$choices = array(
'0' => $GLOBALS['strCreateUserDatabaseNone'],
'1' => $GLOBALS['strCreateUserDatabaseName'],
'2' => $GLOBALS['strCreateUserDatabaseWildcard']);
PMA_generate_html_radio('createdb', $choices, '0', true);
unset($choices);
echo '</fieldset>' . "\n";
PMA_displayPrivTable('*', '*', FALSE);
echo ' <fieldset id="fieldset_add_user_footer" class="tblFooters">' . "\n"
. ' <input type="submit" name="adduser_submit" value="' . $GLOBALS['strGo'] . '" />' . "\n"