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"; echo "\n";
?> ?>
</select> </select>
<input type="radio" name="action_choose" value="0" id="radio_choose0" checked="checked" style="vertical-align: middle" /><label for="radio_choose0"> <?php
<?php echo $strEdit; ?> </label> $choices = array(
<input type="radio" name="action_choose" value="1" id="radio_choose1" style="vertical-align: middle" /><label for="radio_choose1"> '0' => $strEdit,
<?php echo $strDelete; ?> </label> '1' => $strDelete);
PMA_generate_html_radio('action_choose', $choices, '0', false);
unset($choices);
?>
<input type="submit" value="<?php echo $strGo; ?>" /><br /> <input type="submit" value="<?php echo $strGo; ?>" /><br />
</fieldset> </fieldset>
</form> </form>

View File

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