diff --git a/ChangeLog b/ChangeLog index 2185c27d9..1a00e11c8 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ $Source$ XHTML compl., NOTICE, Icons for Edit/Revoke Links * server_processlist.php, libraries/display_import.lib.php, css/phpmyadmin.css.php: XHTML compl. + * libraries/display_import.lib.php, css/phpmyadmin.css.php: + JavaScript errors, layout errors 2005-10-12 Sebastian Mendel * css/phpmyadmin.css.php, libraries/common.lib.php, diff --git a/css/phpmyadmin.css.php b/css/phpmyadmin.css.php index fc611fecf..5e9a2c698 100644 --- a/css/phpmyadmin.css.php +++ b/css/phpmyadmin.css.php @@ -181,6 +181,7 @@ div#queryboxcontainer div#bookmarkoptions { margin-top: 0.5em; } +fieldset .formelementrow, fieldset .formelement { line-height: 2.4em; float: left; @@ -189,11 +190,14 @@ fieldset .formelement { white-space: nowrap; } /* revert for Gecko */ +fieldset div[class=formelementrow], fieldset div[class=formelement] { white-space: normal; } /* IE */ +fieldset .formelementrow input, +fieldset .formelementrow select, fieldset .formelement input, fieldset .formelement select { margin-top: 0.5em; @@ -201,6 +205,8 @@ fieldset .formelement select { height: 1.3em; } /* revert for Gecko */ +fieldset div[class=formelementrow] input, +fieldset div[class=formelementrow] select, fieldset div[class=formelement] input, fieldset div[class=formelement] select { margin-top: auto; @@ -208,6 +214,11 @@ fieldset div[class=formelement] select { height: auto; } +fieldset .formelementrow { + clear: left; + float: none; +} + /* end querybox */ diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php index e729b46ab..f34735ca0 100644 --- a/libraries/display_import.lib.php +++ b/libraries/display_import.lib.php @@ -77,10 +77,10 @@ echo ' $val) { if (isset($val['options'])) { - echo 'getElement("' . $key . '_options").style.display = "none";'; + echo 'document.getElementById("' . $key . '_options").style.display = "none";'; } }?> - getElement("none_options").style.display = 'none'; + document.getElementById("none_options").style.display = 'none'; } function init_options() { @@ -89,15 +89,15 @@ echo ' $val) { echo 'if (document.getElementById("radio_import_' . $key . '").checked) {'; if (isset($val['options'])) { - echo 'getElement("' . $key . '_options").style.display = "block";'; + echo 'document.getElementById("' . $key . '_options").style.display = "block";'; } else { - echo 'getElement("none_options").style.display = "block";'; + echo 'document.getElementById("none_options").style.display = "block";'; } echo ' } else '; } ?> { - getElement('none_options').style.display = 'block'; + document.getElementById('none_options').style.display = 'block'; } } @@ -127,6 +127,7 @@ foreach($import_list as $key => $val) {
+
@@ -135,6 +136,7 @@ foreach($import_list as $key => $val) { echo '
' . "\n"; echo PMA_displayMaximumUploadSize($max_upload_size); echo '
' . "\n"; +echo '
' . "\n"; // some browsers should respect this :) echo PMA_generateHiddenMaxFileSize($max_upload_size) . "\n"; @@ -147,14 +149,14 @@ if (!empty($cfg['UploadDir'])) { $matcher = '@\.(' . $extensions . ')(\.(' . PMA_supportedDecompressions() . '))?$@'; $files = PMA_getFileSelectOptions($cfg['UploadDir'], $matcher, (isset($timeout_passed) && $timeout_passed && isset($local_import_file)) ? $local_import_file : ''); - echo '
' . "\n"; + echo '
' . "\n"; if ($files === FALSE) { - echo '
' . "\n"; - echo ' ' . $strError . '
' . "\n"; + echo '
' . "\n"; + echo ' ' . $strError . ': ' . "\n"; echo ' ' . $strWebServerUploadDirectoryError . "\n"; echo '
' . "\n"; } elseif (!empty($files)) { - echo "
\n"; + echo "\n"; echo ' ' . $strOr . '
 : ' . "\n"; echo ' '; echo sprintf($strTimeoutInfo, $offset) . ''; echo '
' . "\n"; } ?> -
+
/>
-
+
@@ -237,7 +239,7 @@ echo "\n"; foreach($import_list as $key => $val) { ?> - /> + />