From 16f050afe73269dae61a2f9cdb7ac9c0bd3a4337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 7 Jul 2001 18:22:00 +0000 Subject: [PATCH] Cosmetic changes --- ChangeLog | 5 +++-- db_printview.php3 | 2 +- tbl_properties.php3 | 32 ++++++++++++++++---------------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 556098dd3..93ea55044 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,12 +15,13 @@ $Source$ outsourced error messages. * left.js, left.php3, header.php3, language files: the font family is now language dependant. - * tbl_properties.inc.php3, line 235: removed an unnecessary php closing - tag. + * tbl_properties.inc.php3: removed an unnecessary php closing tag and + commited some cosmetic changes. * lib.inc.php3, lines 946-950; db_details.php3, lines 96 & 118; language files: thousands and decimal separators are now language dependant. * tbl_dump.php3, lines 78: Added a '#' before 'No tables found' so the generated dump file may be imported later even if there is no table. + * db_printview.php3, line 29: Cosmetic change in column case name. 2001-07-06 Loïc Chapeaux * users_details.php3: fixed many little scripting bugs. diff --git a/db_printview.php3 b/db_printview.php3 index aa951fa86..f55c44688 100755 --- a/db_printview.php3 +++ b/db_printview.php3 @@ -26,7 +26,7 @@ else $i = 0; echo "\n"; - echo ""; + echo ''; echo ""; while($i < $num_tables) { diff --git a/tbl_properties.php3 b/tbl_properties.php3 index b4b844640..4f538ed07 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -188,7 +188,7 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type! if (!empty($strSpaceUsage)) echo $strSpaceUsage.":\n"; echo "
$strTable' . UCFirst($strTable) . '$strRecords
\n"; echo ""; - echo ""; @@ -196,34 +196,34 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type! echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_length"]); echo ""; echo "\n"; // Index echo "\n"; list($size,$unit)=format_byte_down($showtable["Index_length"]); - echo ""; + echo ''; echo "\n"; // Overhead if (isset($showtable["Data_free"]) && $showtable["Data_free"]!=0){ echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_free"]); echo ""; + if (!empty($strOverhead)) echo UCFirst($strOverhead); + echo ''; echo "\n"; // Effective echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]-$showtable["Data_free"]); echo ""; + if (!empty($strOverhead)) echo UCFirst($strEffective); + echo ''; echo "\n"; } // Total echo "\n"; list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]); - echo ""; + echo ''; echo "\n"; if (!empty($showtable["Data_free"])){ @@ -246,14 +246,14 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type! echo ""; - echo "\n"; $i=0; if (isset($showtable["Row_format"])){ echo (++$i%2)?"\n"; + if (!empty($strRows)) echo UCFirst($strRows); + echo '' . "\n"; } if (isset($showtable["Avg_row_length"])){ echo (++$i%2)?"\n"; + echo '' . "\n"; } if (isset($showtable["Auto_increment"])){ echo (++$i%2)?"\n"; + echo UCFirst($strNext) . ' Autoindex'; + echo '' . "\n"; } echo "
$strType"; + echo ''; if (!empty($strUsage)) echo $strUsage; echo "
"; - if (!empty($strData)) echo $strData; + if (!empty($strData)) echo UCFirst($strData); echo "".$size."".$unit."
$strIndex".$size."".$unit."' . UCFirst($strIndex) . '' . $size . '' . $unit . '
"; - if (!empty($strOverhead)) echo $strOverhead; - echo "".$size."".$unit."' . $size . '' . $unit . '
"; - if (!empty($strOverhead)) echo $strEffective; - echo "".$size."".$unit."' . $size . '' . $unit . '
$strTotal".$size."".$unit."' . UCFirst($strTotal) . '' . $size . '' . $unit . '
"; if (!empty($strStatement)) echo $strStatement; echo ""; + echo ''; if (!empty($strValue)) echo $strValue; echo "
":"
\n"; - if (!empty($strFormat)) echo $strFormat; + if (!empty($strFormat)) echo UCFirst($strFormat); echo ""; if ($showtable["Row_format"]=="Fixed" && !empty($strFixed)) echo $strFixed; else if ($showtable["Row_format"]=="Dynamic" && !empty($strDynamic)) echo $strDynamic; @@ -262,19 +262,19 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type! } if (isset($showtable["Rows"])){ echo (++$i%2)?"
":"
\n"; - if (!empty($strRows)) echo $strRows; - echo "".$showtable["Rows"]."
' . $showtable['Rows'] . '
":"
\n"; - if (!empty($strRowLength)) echo $strRowLength; + if (!empty($strRowLength)) echo UCFirst($strRowLength); echo " ø"; - echo "".$showtable["Avg_row_length"]."
' . $showtable['Avg_row_length'] . '
":"
\n"; - echo "$strNext Autoindex"; - echo "".$showtable["Auto_increment"]."
' . $showtable['Auto_increment'] . '
\n";