Fixed some coding style inconcistencies
This commit is contained in:
@@ -118,8 +118,8 @@ $cfgThBgcolor = '#D3DCE3';
|
||||
$cfgBgcolorOne = '#CCCCCC';
|
||||
$cfgBgcolorTwo = '#DDDDDD';
|
||||
$cfgTextareaCols = 40;
|
||||
$cfgLimitChars = 50; // max field data length in browse mode
|
||||
$cfgTextareaRows = 7;
|
||||
$cfgLimitChars = 50; // max field data length in browse mode
|
||||
$cfgModifyDeleteAtLeft = TRUE;
|
||||
$cfgModifyDeleteAtRight = FALSE;
|
||||
$cfgLeftWidth = 150; // left frame width
|
||||
|
@@ -200,8 +200,8 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) {
|
||||
?>
|
||||
<tr bgcolor="<?php echo $cfgThBgcolor; ?>">
|
||||
<td colspan="7" align="center">
|
||||
<?php echo $strSum . "\n"; ?>
|
||||
<b>( <?php echo $num_tables . " " . $strTables; ?>)</b>
|
||||
<?php echo $strSum . "\n"; ?>
|
||||
<b>(<?php echo $num_tables . ' ' . $strTables; ?>)</b>
|
||||
</td>
|
||||
<td align="right" nowrap="nowrap">
|
||||
<?php echo number_format($sum_entries, 0, $number_decimal_separator, $number_thousands_separator) . "\n"; ?>
|
||||
|
@@ -192,7 +192,7 @@ if ($num_dbs > 1) {
|
||||
echo "\n";
|
||||
?>
|
||||
<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 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">
|
||||
<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 id="el2Child" class="child" style="margin-bottom: 5px">
|
||||
<?php
|
||||
|
@@ -161,7 +161,7 @@ if (!defined('__LIB_INC__')){
|
||||
* Gets the valid servers list and parameters
|
||||
*/
|
||||
reset($cfgServers);
|
||||
while(list($key, $val) = each($cfgServers)) {
|
||||
while (list($key, $val) = each($cfgServers)) {
|
||||
// Don't use servers with no hostname
|
||||
if (empty($val['host'])) {
|
||||
unset($cfgServers[$key]);
|
||||
@@ -856,7 +856,7 @@ window.parent.frames['nav'].location.replace('./left.php3?lang=<?php echo $GLOBA
|
||||
{
|
||||
global $lang, $server, $db, $table;
|
||||
global $sql_query, $goto, $pos;
|
||||
global $SelectNumRows, $cfgLimitChars;
|
||||
global $SelectNumRows;
|
||||
|
||||
// Gets the number of rows per page
|
||||
if (isset($GLOBALS['sessionMaxRows'])) {
|
||||
@@ -1131,8 +1131,8 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
|
||||
if (eregi('BLOB', $true_field_type['Type'])) {
|
||||
echo ' <td align="right"> [BLOB] </td>' . "\n";
|
||||
} else {
|
||||
if (strlen($row[$i]) > $cfgLimitChars){
|
||||
$row[$i] = substr($row[$i],0,$cfgLimitChars) . "...";
|
||||
if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) {
|
||||
$row[$i] = substr($row[$i], 0, $cfgLimitChars) . '...';
|
||||
}
|
||||
echo ' <td> ' . htmlspecialchars($row[$i]) . ' </td>' . "\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user