Cosmetic changes
This commit is contained in:
@@ -15,12 +15,13 @@ $Source$
|
|||||||
outsourced error messages.
|
outsourced error messages.
|
||||||
* left.js, left.php3, header.php3, language files: the font family is now
|
* left.js, left.php3, header.php3, language files: the font family is now
|
||||||
language dependant.
|
language dependant.
|
||||||
* tbl_properties.inc.php3, line 235: removed an unnecessary php closing
|
* tbl_properties.inc.php3: removed an unnecessary php closing tag and
|
||||||
tag.
|
commited some cosmetic changes.
|
||||||
* lib.inc.php3, lines 946-950; db_details.php3, lines 96 & 118; language
|
* lib.inc.php3, lines 946-950; db_details.php3, lines 96 & 118; language
|
||||||
files: thousands and decimal separators are now language dependant.
|
files: thousands and decimal separators are now language dependant.
|
||||||
* tbl_dump.php3, lines 78: Added a '#' before 'No tables found' so the
|
* 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.
|
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<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-07-06 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* users_details.php3: fixed many little scripting bugs.
|
* users_details.php3: fixed many little scripting bugs.
|
||||||
|
@@ -26,7 +26,7 @@ else
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
echo "<table border=$cfgBorder>\n";
|
echo "<table border=$cfgBorder>\n";
|
||||||
echo "<th>$strTable</th>";
|
echo '<th>' . UCFirst($strTable) . '</th>';
|
||||||
echo "<th>$strRecords</th>";
|
echo "<th>$strRecords</th>";
|
||||||
while($i < $num_tables)
|
while($i < $num_tables)
|
||||||
{
|
{
|
||||||
|
@@ -188,7 +188,7 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type!
|
|||||||
if (!empty($strSpaceUsage)) echo $strSpaceUsage.":\n";
|
if (!empty($strSpaceUsage)) echo $strSpaceUsage.":\n";
|
||||||
echo "<a name=showusage><a><table border=$cfgBorder>\n";
|
echo "<a name=showusage><a><table border=$cfgBorder>\n";
|
||||||
echo "<th>$strType</th>";
|
echo "<th>$strType</th>";
|
||||||
echo "<th colspan=2 align=right>";
|
echo '<th colspan=2 align="center">';
|
||||||
if (!empty($strUsage)) echo $strUsage;
|
if (!empty($strUsage)) echo $strUsage;
|
||||||
echo "</th>";
|
echo "</th>";
|
||||||
|
|
||||||
@@ -196,34 +196,34 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type!
|
|||||||
echo "<tr bgcolor=$cfgBgcolorTwo>\n";
|
echo "<tr bgcolor=$cfgBgcolorTwo>\n";
|
||||||
list($size,$unit)=format_byte_down($showtable["Data_length"]);
|
list($size,$unit)=format_byte_down($showtable["Data_length"]);
|
||||||
echo "<td style=\"padding-right:10px;\">";
|
echo "<td style=\"padding-right:10px;\">";
|
||||||
if (!empty($strData)) echo $strData;
|
if (!empty($strData)) echo UCFirst($strData);
|
||||||
echo "</td><td align=right>".$size."</td><td>".$unit."</td>";
|
echo "</td><td align=right>".$size."</td><td>".$unit."</td>";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
// Index
|
// Index
|
||||||
echo "<tr bgcolor=$cfgBgcolorTwo>\n";
|
echo "<tr bgcolor=$cfgBgcolorTwo>\n";
|
||||||
list($size,$unit)=format_byte_down($showtable["Index_length"]);
|
list($size,$unit)=format_byte_down($showtable["Index_length"]);
|
||||||
echo "<td style=\"padding-right:10px;\">$strIndex</td><td align=right>".$size."</td><td>".$unit."</td>";
|
echo '<td style="padding-right:10px;">' . UCFirst($strIndex) . '</td><td align="right">' . $size . '</td><td>' . $unit . '</td>';
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
// Overhead
|
// Overhead
|
||||||
if (isset($showtable["Data_free"]) && $showtable["Data_free"]!=0){
|
if (isset($showtable["Data_free"]) && $showtable["Data_free"]!=0){
|
||||||
echo "<tr bgcolor=$cfgBgcolorTwo style=\"color:#bb0000;\">\n";
|
echo "<tr bgcolor=$cfgBgcolorTwo style=\"color:#bb0000;\">\n";
|
||||||
list($size,$unit)=format_byte_down($showtable["Data_free"]);
|
list($size,$unit)=format_byte_down($showtable["Data_free"]);
|
||||||
echo "<td style=\"padding-right:10px;\">";
|
echo "<td style=\"padding-right:10px;\">";
|
||||||
if (!empty($strOverhead)) echo $strOverhead;
|
if (!empty($strOverhead)) echo UCFirst($strOverhead);
|
||||||
echo "</td><td align=right>".$size."</td><td>".$unit."</td>";
|
echo '</td><td align="right">' . $size . '</td><td>' . $unit . '</td>';
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
// Effective
|
// Effective
|
||||||
echo "<tr bgcolor=$cfgBgcolorOne>\n";
|
echo "<tr bgcolor=$cfgBgcolorOne>\n";
|
||||||
list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]-$showtable["Data_free"]);
|
list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]-$showtable["Data_free"]);
|
||||||
echo "<td style=\"padding-right:10px;\">";
|
echo "<td style=\"padding-right:10px;\">";
|
||||||
if (!empty($strOverhead)) echo $strEffective;
|
if (!empty($strOverhead)) echo UCFirst($strEffective);
|
||||||
echo "</td><td align=right>".$size."</td><td>".$unit."</td>";
|
echo '</td><td align="right">' . $size . '</td><td>' . $unit . '</td>';
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
// Total
|
// Total
|
||||||
echo "<tr bgcolor=$cfgBgcolorOne>\n";
|
echo "<tr bgcolor=$cfgBgcolorOne>\n";
|
||||||
list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]);
|
list($size,$unit)=format_byte_down($showtable["Data_length"]+$showtable["Index_length"]);
|
||||||
echo "<td style=\"padding-right:10px;\">$strTotal</td><td align=right>".$size."</td><td>".$unit."</td>";
|
echo '<td style="padding-right:10px;">' . UCFirst($strTotal) . '</td><td align="right">' . $size . '</td><td>' . $unit . '</td>';
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
if (!empty($showtable["Data_free"])){
|
if (!empty($showtable["Data_free"])){
|
||||||
@@ -246,14 +246,14 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>3 && $tbl_type!
|
|||||||
echo "<th>";
|
echo "<th>";
|
||||||
if (!empty($strStatement)) echo $strStatement;
|
if (!empty($strStatement)) echo $strStatement;
|
||||||
echo "</th>";
|
echo "</th>";
|
||||||
echo "<th align=right>";
|
echo '<th align="center">';
|
||||||
if (!empty($strValue)) echo $strValue;
|
if (!empty($strValue)) echo $strValue;
|
||||||
echo "</th>\n";
|
echo "</th>\n";
|
||||||
|
|
||||||
$i=0;
|
$i=0;
|
||||||
if (isset($showtable["Row_format"])){
|
if (isset($showtable["Row_format"])){
|
||||||
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
||||||
if (!empty($strFormat)) echo $strFormat;
|
if (!empty($strFormat)) echo UCFirst($strFormat);
|
||||||
echo "</td><td>";
|
echo "</td><td>";
|
||||||
if ($showtable["Row_format"]=="Fixed" && !empty($strFixed)) echo $strFixed;
|
if ($showtable["Row_format"]=="Fixed" && !empty($strFixed)) echo $strFixed;
|
||||||
else if ($showtable["Row_format"]=="Dynamic" && !empty($strDynamic)) echo $strDynamic;
|
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"])){
|
if (isset($showtable["Rows"])){
|
||||||
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
||||||
if (!empty($strRows)) echo $strRows;
|
if (!empty($strRows)) echo UCFirst($strRows);
|
||||||
echo "</td><td>".$showtable["Rows"]."</td></tr>\n";
|
echo '</td><td align="right">' . $showtable['Rows'] . '</td></tr>' . "\n";
|
||||||
}
|
}
|
||||||
if (isset($showtable["Avg_row_length"])){
|
if (isset($showtable["Avg_row_length"])){
|
||||||
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
||||||
if (!empty($strRowLength)) echo $strRowLength;
|
if (!empty($strRowLength)) echo UCFirst($strRowLength);
|
||||||
echo " ø";
|
echo " ø";
|
||||||
echo "</td><td>".$showtable["Avg_row_length"]."</td></tr>\n";
|
echo '</td><td align="right">' . $showtable['Avg_row_length'] . '</td></tr>' . "\n";
|
||||||
}
|
}
|
||||||
if (isset($showtable["Auto_increment"])){
|
if (isset($showtable["Auto_increment"])){
|
||||||
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
echo (++$i%2)?"<tr bgcolor=$cfgBgcolorTwo><td>":"<tr bgcolor=$cfgBgcolorOne><td>\n";
|
||||||
echo "$strNext Autoindex";
|
echo UCFirst($strNext) . ' Autoindex';
|
||||||
echo "</td><td>".$showtable["Auto_increment"]."</td></tr>\n";
|
echo '</td><td align="right">' . $showtable['Auto_increment'] . '</td></tr>' . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
Reference in New Issue
Block a user