Fixed some coding style inconcistencies

This commit is contained in:
Loïc Chapeaux
2001-08-15 18:08:46 +00:00
parent 749d8a6903
commit 7eeb5056a8
4 changed files with 13 additions and 13 deletions

View File

@@ -118,8 +118,8 @@ $cfgThBgcolor = '#D3DCE3';
$cfgBgcolorOne = '#CCCCCC'; $cfgBgcolorOne = '#CCCCCC';
$cfgBgcolorTwo = '#DDDDDD'; $cfgBgcolorTwo = '#DDDDDD';
$cfgTextareaCols = 40; $cfgTextareaCols = 40;
$cfgLimitChars = 50; // max field data length in browse mode
$cfgTextareaRows = 7; $cfgTextareaRows = 7;
$cfgLimitChars = 50; // max field data length in browse mode
$cfgModifyDeleteAtLeft = TRUE; $cfgModifyDeleteAtLeft = TRUE;
$cfgModifyDeleteAtRight = FALSE; $cfgModifyDeleteAtRight = FALSE;
$cfgLeftWidth = 150; // left frame width $cfgLeftWidth = 150; // left frame width

View File

@@ -201,7 +201,7 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) {
<tr bgcolor="<?php echo $cfgThBgcolor; ?>"> <tr bgcolor="<?php echo $cfgThBgcolor; ?>">
<td colspan="7" align="center"> <td colspan="7" align="center">
<?php echo $strSum . "\n"; ?>&nbsp;&nbsp; <?php echo $strSum . "\n"; ?>&nbsp;&nbsp;
<b>( <?php echo $num_tables . " " . $strTables; ?>)</b> <b>(<?php echo $num_tables . ' ' . $strTables; ?>)</b>
</td> </td>
<td align="right" nowrap="nowrap"> <td align="right" nowrap="nowrap">
<?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?> <?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>

View File

@@ -192,7 +192,7 @@ if ($num_dbs > 1) {
echo "\n"; echo "\n";
?> ?>
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="expandBase('el<?php echo $j; ?>', false);"> <a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="expandBase('el<?php echo $j; ?>', false);">
<font color="black" class="heada"><?php echo $db; ?> (<?php echo "$num_tables"; ?>)</font></a> <font color="black" class="heada"><?php echo $db; ?> (<?php echo $num_tables; ?>)</font></a>
</div> </div>
<div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px"> <div id="el<?php echo $j;?>Child" class="child" style="margin-bottom: 5px">
@@ -253,7 +253,7 @@ else if ($num_dbs == 1) {
?> ?>
<div id="el2Parent" class="parent"> <div id="el2Parent" class="parent">
<a class="item" href="db_details.php3?<?php echo $common_url_query; ?>"> <a class="item" href="db_details.php3?<?php echo $common_url_query; ?>">
<font color="black" class="heada"><?php echo $db; ?> (<?php echo "$num_tables"; ?>)</font></a> <font color="black" class="heada"><?php echo $db; ?> (<?php echo $num_tables; ?>)</font></a>
</div> </div>
<div id="el2Child" class="child" style="margin-bottom: 5px"> <div id="el2Child" class="child" style="margin-bottom: 5px">
<?php <?php

View File

@@ -856,7 +856,7 @@ window.parent.frames['nav'].location.replace('./left.php3?lang=<?php echo $GLOBA
{ {
global $lang, $server, $db, $table; global $lang, $server, $db, $table;
global $sql_query, $goto, $pos; global $sql_query, $goto, $pos;
global $SelectNumRows, $cfgLimitChars; global $SelectNumRows;
// Gets the number of rows per page // Gets the number of rows per page
if (isset($GLOBALS['sessionMaxRows'])) { if (isset($GLOBALS['sessionMaxRows'])) {
@@ -1131,8 +1131,8 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
if (eregi('BLOB', $true_field_type['Type'])) { if (eregi('BLOB', $true_field_type['Type'])) {
echo ' <td align="right">&nbsp;[BLOB]&nbsp;</td>' . "\n"; echo ' <td align="right">&nbsp;[BLOB]&nbsp;</td>' . "\n";
} else { } else {
if (strlen($row[$i]) > $cfgLimitChars){ if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) {
$row[$i] = substr($row[$i],0,$cfgLimitChars) . "..."; $row[$i] = substr($row[$i], 0, $cfgLimitChars) . '...';
} }
echo ' <td>&nbsp;' . htmlspecialchars($row[$i]) . '&nbsp;</td>' . "\n"; echo ' <td>&nbsp;' . htmlspecialchars($row[$i]) . '&nbsp;</td>' . "\n";
} }