diff --git a/ChangeLog b/ChangeLog index bdb6ede47..542ee2636 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-10-08 Garvin Hicking + * lots of files: Adjusted superfluous spaces, added + more CSS-ID attributes for better themeability. + 2004-10-04 Michal Čihař * tbl_query_box.php: Reenabled %f substitution. diff --git a/db_datadict.php b/db_datadict.php index 50f7b19e3..ab42e6dc0 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -153,7 +153,7 @@ while ($row = PMA_DBI_fetch_assoc($rowset)) { * Displays the comments of the table if MySQL >= 3.23 */ if (!empty($show_comment)) { - echo $strTableComments . ' : ' . $show_comment . '

'; + echo $strTableComments . ': ' . $show_comment . '

'; } /** diff --git a/db_details.php b/db_details.php index 830af4140..c11c921e7 100644 --- a/db_details.php +++ b/db_details.php @@ -88,8 +88,7 @@ if (!empty($query_to_display)) { - - + diff --git a/db_details_importdocsql.php b/db_details_importdocsql.php index 0103be0b2..3b9ad746f 100644 --- a/db_details_importdocsql.php +++ b/db_details_importdocsql.php @@ -239,7 +239,7 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) { // garvin: displays import dump feature only if file upload available if ($is_upload) { echo '

'; - echo ' ' . $strOr . ' ' . $strLocationTextfile . ' :
' . "\n"; + echo ' ' . $strOr . ' ' . $strLocationTextfile . ':
' . "\n"; ?>

@@ -266,17 +266,13 @@ if (isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir'])) { $is_bzip = ($cfg['BZipDump'] && @function_exists('bzdecompress')); if ($is_bzip || $is_gzip) { echo ' ' . $strCompression . ':' . "\n" - . ' ' . "\n" - . '    ' . "\n" - . ' ' . "\n" - . '    ' . "\n"; + . '    ' . "\n" + . '    ' . "\n"; if ($is_gzip) { - echo ' ' . "\n" - . '    ' . "\n"; + echo '    ' . "\n"; } if ($is_bzip) { - echo ' ' . "\n" - . '    ' . "\n"; + echo '    ' . "\n"; } } else { echo ' ' . "\n"; diff --git a/db_details_links.php b/db_details_links.php index 027431407..c20eba6a6 100644 --- a/db_details_links.php +++ b/db_details_links.php @@ -63,7 +63,7 @@ else { if ($cfg['LightTabs']) { echo ' '; } else { - echo '' . "\n" + echo '
' . "\n" . ' ' . "\n" . '
0 } // end if ?> + +
0) { $takeaway = $url_query . '&table=' . urlencode($table); } -if (($cfgRelation['pdfwork'] && $num_tables > 0) || -($num_tables > 0 - && $cfgRelation['relwork'] && $cfgRelation['commwork'] - && isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir']) - ) -) { ?>
0) { - ?> +if (($cfgRelation['pdfwork'] && $num_tables > 0) || + ($num_tables > 0 + && $cfgRelation['relwork'] && $cfgRelation['commwork'] + && isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir']) + )) { ?> +
+ 0) { ?> - - + } ?>PDF + + + + + 0) { $test_query = 'SELECT * FROM ' . PMA_backquote($cfgRelation['pdf_pages']) . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\''; $test_rs = PMA_query_as_cu($test_query, NULL, PMA_DBI_QUERY_STORE); - if ($test_rs && PMA_DBI_num_rows($test_rs) > 0) { - echo "\n"; - ?> - - + - - - - - - - - - - - - - + + + + + - - - - - - + + + + + + + + + + + - - 0 @@ -888,23 +885,29 @@ if ($num_tables > 0 ) { ?> - + + + 0) || -($num_tables > 0 - && $cfgRelation['relwork'] && $cfgRelation['commwork'] - && isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir']) - ) -) { ?>
- + + '; - } -?>PDF
'; - if ($cfg['PropertiesIconic']) { - echo ''; - } - echo ''. $strEditPDFPages . ''; - ?>
+ '; + if ($cfg['PropertiesIconic']) { + echo ''; + } + echo ''. $strEditPDFPages . ''; + ?> +
- 0) { ?> +
+ '; } - echo $strDisplayPDF; -?>: 
  -   -
  - -
  - -
  - -
  - -
  - -
  - -
  + +
+ +
+
+
+
+
+ + +
  - -
+ + +
  -   
   
'; - if ($cfg['PropertiesIconic']) { - echo ''; - } - echo $strImportDocSQL . ''; - ?> -
+ '; + if ($cfg['PropertiesIconic']) { + echo ''; + } + echo $strImportDocSQL . ''; + ?> +
0 + && $cfgRelation['relwork'] && $cfgRelation['commwork'] + && isset($cfg['docSQLDir']) && !empty($cfg['docSQLDir']) + )) { ?> + + +  - /> -  *
- /> -  *
- /> -
- /> -
+ /> *
+ /> *
+ />
+ />

diff --git a/header.inc.php b/header.inc.php index 6b2c520d9..242242c77 100644 --- a/header.inc.php +++ b/header.inc.php @@ -152,7 +152,7 @@ if (empty($GLOBALS['is_header_sent'])) { */ if (PMA_DISPLAY_HEADING) { - echo '' . "\n" + echo '
' . "\n" . ' ' . "\n"; $header_url_qry = '?' . PMA_generate_common_url(); $server_info = (!empty($cfg['Server']['verbose']) diff --git a/index.php b/index.php index 2138572f8..d6be3cca7 100644 --- a/index.php +++ b/index.php @@ -79,14 +79,14 @@ $query_frame_height = 0; if ($cfg['LeftDisplayLogo'] && @file_exists($logo_image)) { $tmp_imgsize = @getimagesize($logo_image); $query_frame_height = ($tmp_imgsize[1] + 60); - // increase the height to take into account font size differences in + // increase the height to take into account font size differences in // theme 'original'? (TODO: improve with a parameter in layout.inc.php) $query_frame_height += ((!isset($GLOBALS['theme']) || $GLOBALS['theme']=='original') ? 25 : 0); } if ($query_frame_height == 0) { $query_frame_height = 60; } -// increase the height to take into account font size differences in +// increase the height to take into account font size differences in // theme 'original'? (TODO: improve with a parameter in layout.inc.php) $query_frame_height += ((!isset($GLOBALS['theme']) || $GLOBALS['theme']=='original') ? 20 : 10); @@ -114,10 +114,10 @@ if ($cfg['QueryFrame']) { echo ' +
- +
diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index ea8cd3520..3259f7848 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -186,11 +186,9 @@ if (isset($sql_query)) { @@ -211,42 +208,33 @@ if (!$hide_structure) { ?> @@ -306,8 +286,7 @@ if (!$hide_structure) { ?> @@ -519,8 +491,7 @@ if (!$hide_structure) { ?>
:
- style="vertical-align: middle" /> -
+ style="vertical-align: middle" />
- style="vertical-align: middle" /> -
+ style="vertical-align: middle" />
:
- style="vertical-align: middle" /> - + style="vertical-align: middle" />
- onclick="if (!this.checked && !getElement('checkbox_sql_data').checked) return false; else return true;" /> -
+ onclick="if (!this.checked && !getElement('checkbox_sql_data').checked) return false; else return true;" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
    
-          style="vertical-align: middle" /> -
+          style="vertical-align: middle" />
-          style="vertical-align: middle" /> -
+          style="vertical-align: middle" />
-          style="vertical-align: middle" /> -
+          style="vertical-align: middle" />
-          style="vertical-align: middle" /> -
+          style="vertical-align: middle" />
@@ -259,26 +247,19 @@ if (!$hide_structure) { ?>
- onclick="if (!this.checked && (!getElement('checkbox_sql_structure') || !getElement('checkbox_sql_structure').checked)) return false; else return true;" style="vertical-align: middle" /> -
+ onclick="if (!this.checked && (!getElement('checkbox_sql_structure') || !getElement('checkbox_sql_structure').checked)) return false; else return true;" style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
- - @@ -297,8 +278,7 @@ if (!$hide_structure) { ?>
- style="vertical-align: middle" /> -
+ style="vertical-align: middle" />
- onclick="if (!this.checked && !getElement('checkbox_latex_data').checked) return false; else return true;" style="vertical-align: middle" /> -
+ onclick="if (!this.checked && !getElement('checkbox_latex_data').checked) return false; else return true;" style="vertical-align: middle" />
@@ -334,20 +313,17 @@ if (!$hide_structure) { ?> -      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
-      style="vertical-align: middle" /> -
+      style="vertical-align: middle" />
@@ -359,10 +335,8 @@ if (!$hide_structure) { ?>
     
- onclick="if (!this.checked && (!getElement('checkbox_latex_structure') || !getElement('checkbox_latex_structure').checked)) return false; else return true;" style="vertical-align: middle" /> -
-      style="vertical-align: middle" /> -
+ onclick="if (!this.checked && (!getElement('checkbox_latex_structure') || !getElement('checkbox_latex_structure').checked)) return false; else return true;" style="vertical-align: middle" />
+      style="vertical-align: middle" />
@@ -448,8 +422,7 @@ if (!$hide_structure) { ?>
    
- style="vertical-align: middle" /> - + style="vertical-align: middle" />
@@ -474,8 +447,7 @@ if (!$hide_structure) { ?>
- style="vertical-align: middle" /> - + style="vertical-align: middle" />
- /> - + />
@@ -565,17 +536,14 @@ if (isset($table) && !empty($table) && !isset($num_tables)) {
- style="vertical-align: middle" /> - + style="vertical-align: middle" />
-      style="vertical-align: middle" /> - ,
-      style="vertical-align: middle" /> - +      style="vertical-align: middle" />,
+      style="vertical-align: middle" />
@@ -605,8 +573,7 @@ if (isset($table) && !empty($table) && !isset($num_tables)) { echo '" '; ?> style="vertical-align: middle" /> ( - style="vertical-align: middle" /> - + style="vertical-align: middle" /> )* -
-
+
1 diff --git a/read_dump.php b/read_dump.php index f03dfb0a0..f84378b5d 100644 --- a/read_dump.php +++ b/read_dump.php @@ -411,7 +411,7 @@ if (!empty($id_bookmark) && $action_bookmark == 2) { $message = $strNoQuery; } } else if ($sql_query_cpy == '') { - $message = "$strSuccess :
$strTheContent ($pieces_count $strInstructions) "; + $message = "$strSuccess:
$strTheContent ($pieces_count $strInstructions) "; } else { $message = $strSuccess; } diff --git a/server_links.inc.php b/server_links.inc.php index 8dd7caede..0f724a4aa 100644 --- a/server_links.inc.php +++ b/server_links.inc.php @@ -44,7 +44,7 @@ if (!empty($message)) { if ($cfg['LightTabs']) { echo ' '; } else { - echo '' . "\n" + echo '
' . "\n" . ' ' . "\n" . ' diff --git a/tbl_printview.php b/tbl_printview.php index b63f6609a..647481a8d 100644 --- a/tbl_printview.php +++ b/tbl_printview.php @@ -58,7 +58,7 @@ if ($multi_tables) { $tbl_list .= (empty($tbl_list) ? '' : ', ') . PMA_backquote(urldecode($table)); } - echo ''. $strShowTables . ' : ' . $tbl_list . '' . "\n"; + echo ''. $strShowTables . ': ' . $tbl_list . '' . "\n"; echo '
' . "\n"; } // end if @@ -155,7 +155,7 @@ foreach ($the_tables AS $key => $table) { * Displays the comments of the table if MySQL >= 3.23 */ if (!empty($show_comment)) { - echo $strTableComments . ' : ' . $show_comment . '

'; + echo $strTableComments . ': ' . $show_comment . '

'; } /** @@ -301,7 +301,7 @@ foreach ($the_tables AS $key => $table) {

- tabindex="" style="vertical-align: middle" /> -
+ tabindex="" style="vertical-align: middle" />
      
- tabindex="" style="vertical-align: middle" /> -
+ tabindex="" style="vertical-align: middle" />
      
- tabindex="" style="vertical-align: middle" /> - + tabindex="" style="vertical-align: middle" />
@@ -406,7 +406,7 @@ foreach ($the_tables AS $key => $table) {
-   +   @@ -462,7 +462,7 @@ foreach ($the_tables AS $key => $table) {
-   +   diff --git a/tbl_properties_links.php b/tbl_properties_links.php index 97990bf10..189ffb26f 100644 --- a/tbl_properties_links.php +++ b/tbl_properties_links.php @@ -68,7 +68,7 @@ $class7 = 'Drop'; if ($cfg['LightTabs']) { echo ' '; } else { - echo '
' . "\n" + echo '
' . "\n" . ' ' . "\n" . '
- +
@@ -169,10 +169,8 @@ function PMA_tbl_select_operator(f, index, multiple) { } // end for ?>
- -
- - +
+
diff --git a/user_password.php b/user_password.php index 429b86eb3..3531078e3 100644 --- a/user_password.php +++ b/user_password.php @@ -95,7 +95,7 @@ echo '

' . $strChangePassword . '

' . "\n\n"; // Displays an error message if required if (!empty($error_msg)) { - echo '

' . $strError . ' : ' . $error_msg . '

' . "\n"; + echo '

' . $strError . ': ' . $error_msg . '

' . "\n"; } // loic1: autocomplete feature of IE kills the "onchange" event handler and it @@ -118,12 +118,12 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
-  :  + ="nopass[1].checked = true" />    -  :  + ="nopass[1].checked = true" />