Use fieldsets on login form (RFE #1364546).
This commit is contained in:
@@ -32,6 +32,8 @@ $Source$
|
|||||||
* css/phpmyadmin.css.php, libraries/auth/cookie.auth.lib.php: Use
|
* css/phpmyadmin.css.php, libraries/auth/cookie.auth.lib.php: Use
|
||||||
fieldsets on login form (RFE #1364546), use notice box for cookie
|
fieldsets on login form (RFE #1364546), use notice box for cookie
|
||||||
information.
|
information.
|
||||||
|
* libraries/display_select_lang.lib.php,
|
||||||
|
libraries/auth/cookie.auth.lib.php: Use fieldset for language selection.
|
||||||
|
|
||||||
2005-11-22 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-11-22 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* added test/theme.php: for testing themes
|
* added test/theme.php: for testing themes
|
||||||
|
@@ -144,7 +144,7 @@ echo sprintf( $GLOBALS['strWelcome'],
|
|||||||
if (empty($cfg['Lang'])) {
|
if (empty($cfg['Lang'])) {
|
||||||
echo "\n";
|
echo "\n";
|
||||||
require_once('./libraries/display_select_lang.lib.php');
|
require_once('./libraries/display_select_lang.lib.php');
|
||||||
PMA_select_language();
|
PMA_select_language(TRUE);
|
||||||
}
|
}
|
||||||
echo "\n\n";
|
echo "\n\n";
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
* @return the sorted array
|
* @return the sorted array
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function PMA_language_cmp( &$a, $b ) {
|
function PMA_language_cmp( &$a, &$b ) {
|
||||||
return (strcmp($a[1], $b[1]));
|
return (strcmp($a[1], $b[1]));
|
||||||
} // end of the 'PMA_language_cmp()' function
|
} // end of the 'PMA_language_cmp()' function
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ function PMA_language_cmp( &$a, $b ) {
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function PMA_select_language() {
|
function PMA_select_language($use_fieldset = FALSE) {
|
||||||
global $cfg, $lang;
|
global $cfg, $lang;
|
||||||
?>
|
?>
|
||||||
<form method="post" action="index.php" target="_parent">
|
<form method="post" action="index.php" target="_parent">
|
||||||
@@ -42,12 +42,25 @@ function PMA_select_language() {
|
|||||||
if (isset($GLOBALS['server'])) {
|
if (isset($GLOBALS['server'])) {
|
||||||
echo ' <input type="hidden" name="server" value="' . ((int)$GLOBALS['server']) . '" />' . "\n";
|
echo ' <input type="hidden" name="server" value="' . ((int)$GLOBALS['server']) . '" />' . "\n";
|
||||||
}
|
}
|
||||||
|
if ($use_fieldset) {
|
||||||
|
echo '<fieldset>';
|
||||||
|
echo '<legend>';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
Language <a href="./translators.html" target="documentation"><?php
|
Language <a href="./translators.html" target="documentation"><?php
|
||||||
if ( $cfg['ReplaceHelpImg'] ) {
|
if ( $cfg['ReplaceHelpImg'] ) {
|
||||||
echo '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_info.png" width="11" height="11" alt="Info" />';
|
echo '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_info.png" width="11" height="11" alt="Info" />';
|
||||||
} else { echo '(*)'; }
|
} else { echo '(*)'; }
|
||||||
?></a>: <select name="lang" onchange="this.form.submit();">
|
?></a>
|
||||||
|
<?php
|
||||||
|
if ($use_fieldset) {
|
||||||
|
echo '</legend>';
|
||||||
|
} else {
|
||||||
|
echo ':';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<select name="lang" onchange="this.form.submit();">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
uasort($GLOBALS['available_languages'], 'PMA_language_cmp');
|
uasort($GLOBALS['available_languages'], 'PMA_language_cmp');
|
||||||
@@ -77,8 +90,25 @@ function PMA_select_language() {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
<?php
|
||||||
|
if ($use_fieldset) {
|
||||||
|
echo '</fieldset>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<noscript>
|
||||||
|
<?php
|
||||||
|
if ($use_fieldset) {
|
||||||
|
echo '<fieldset class="tblFooters">';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<input type="submit" value="Go" />
|
||||||
|
<?php
|
||||||
|
if ($use_fieldset) {
|
||||||
|
echo '</fieldset>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</noscript>
|
||||||
</bdo>
|
</bdo>
|
||||||
<noscript><input type="submit" value="Go" /></noscript>
|
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
} // End of function PMA_select_language
|
} // End of function PMA_select_language
|
||||||
|
Reference in New Issue
Block a user