code cleanup and XHTML validity

This commit is contained in:
Michal Čihař
2005-11-23 15:32:15 +00:00
parent c7ec28b4c7
commit 77a264fd90

View File

@@ -26,7 +26,6 @@ function PMA_select_language($use_fieldset = FALSE) {
?> ?>
<form method="post" action="index.php" target="_parent"> <form method="post" action="index.php" target="_parent">
<bdo xml:lang="en" dir="ltr">
<?php <?php
if (isset($GLOBALS['collation_connection'])) { if (isset($GLOBALS['collation_connection'])) {
echo ' <input type="hidden" name="collation_connection" value="' echo ' <input type="hidden" name="collation_connection" value="'
@@ -48,27 +47,19 @@ function PMA_select_language($use_fieldset = FALSE) {
echo ' <input type="hidden" name="server" value="' echo ' <input type="hidden" name="server" value="'
. ((int)$GLOBALS['server']) . '" />' . "\n"; . ((int)$GLOBALS['server']) . '" />' . "\n";
} }
if ($use_fieldset) {
echo '<fieldset>';
echo '<legend>';
}
?>
Language <a href="./translators.html" target="documentation"><?php $language_title = 'Language <a href="./translators.html" target="documentation">' .
if ( $cfg['ReplaceHelpImg'] ) { ( $cfg['ReplaceHelpImg'] ?
echo '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_info.png" width="11" height="11" alt="Info" />' :
. 'b_info.png" width="11" height="11" alt="Info" />'; '(*)' ) . '</a>';
} else { echo '(*)'; }
?></a>
<?php
if ($use_fieldset) { if ($use_fieldset) {
echo '</legend>'; echo '<fieldset><legend xml:lang="en" dir="ltr">' . $language_title . '</legend>';
} else { } else {
echo ':'; echo '<bdo xml:lang="en" dir="ltr">' . $language_title . ':</bdo>';
} }
?> ?>
<select name="lang" onchange="this.form.submit();"> <select name="lang" onchange="this.form.submit();" xml:lang="en" dir="ltr">
<?php <?php
uasort($GLOBALS['available_languages'], 'PMA_language_cmp'); uasort($GLOBALS['available_languages'], 'PMA_language_cmp');
@@ -121,7 +112,6 @@ function PMA_select_language($use_fieldset = FALSE) {
?> ?>
</noscript> </noscript>
</bdo>
</form> </form>
<?php <?php
} // End of function PMA_select_language } // End of function PMA_select_language