From 263829ffb3965d67716d8dfbb8b1a7e586e25ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 1 Jun 2002 16:31:17 +0000 Subject: [PATCH] coding standards, comments... --- libraries/display_tbl.lib.php3 | 11 ++++++----- pdf_schema.php3 | 12 ++++++------ sql.php3 | 9 +++++---- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/libraries/display_tbl.lib.php3 b/libraries/display_tbl.lib.php3 index 1af9abd23..34f0f1004 100644 --- a/libraries/display_tbl.lib.php3 +++ b/libraries/display_tbl.lib.php3 @@ -24,7 +24,8 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ * no delete link...); * - the next characters are boolean values (1/0) and respectively stand * for sorting links, navigation bar, "insert a new row" link, the - * bookmark feature and the expand/collapse text/blob fields button. + * bookmark feature, the expand/collapse text/blob fields button and + * the "display printable view" option. * Of course '0'/'1' means the feature won't/will be enabled. * * @param string the synthetic value for display_mode (see §1 a few @@ -139,13 +140,13 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ // TODO: May be problematic with same fields names in // two joined table. // $do_display['sort_lnk'] = (string) '0'; - $do_display['ins_row'] = (string) '0'; + $do_display['ins_row'] = (string) '0'; if ($do_display['text_btn'] == '1') { break; } } // end if (2.3.2) // 2.3.3 Always display print view link - $do_display['pview_lnk'] = (string) '1'; + $do_display['pview_lnk'] = (string) '1'; $prev_table = $fields_meta[$i]->table; } // end for } // end if..elseif...else (2.1 -> 2.3) @@ -798,7 +799,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){ if ($GLOBALS['cfg']['BrowseMarkerColor'] != '') { $on_mouse .= ' onmousedown="setPointer(this, ' . $row_no . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\')"'; } - } + } // end if ?> > ' . "\n"; // Displays "Insert a new row" link if required @@ -446,7 +447,7 @@ else { echo "\n"; } // end insert new row - // Displays "print view" link if required + // Displays "printable view" link if required if ($disp_mode[9] == '1') { $url_query = '?lang=' . $lang . '&server=' . $server @@ -460,8 +461,8 @@ else { . (($dontlimitchars == '1') ? '&dontlimitchars=1' : '') . '&sql_query=' . urlencode($sql_query); echo ' ' . "\n" - . ' ' . $strPrintView . '' . "\n"; - } + . ' ' . $strPrintView . '' . "\n"; + } // end displays "printable view" echo '

' . "\n"; }