* db_details.php3: feature request #451138: display # of tables,

* left.php3: added display of # of tables, for a better overview
        * config.php3, lib.inc.php3, docs: feature request #451137:
This commit is contained in:
Olivier Müller
2001-08-15 17:35:58 +00:00
parent 9e25784d3f
commit 65340286de
30 changed files with 48 additions and 4 deletions

View File

@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-15 Olivier M<>ller <om@omnis.ch>
* db_details.php3: feature request #451138: display # of tables,
added $strTables variable to all lang files.
* left.php3: added display of # of tables, for a better overview
* config.php3, lib.inc.php3, docs: feature request #451137:
limiting size of data printed in browse view (new cfg: $cfgLimitChars)
2001-08-15 Robin Johnson <robbat2@orbis-terrarum.net>
* Bug #450374 - (RC4) + becomes space - patched in tbl_replace.php3

View File

@@ -543,6 +543,14 @@
<br /><br />
</dd>
<dt>
<b>$cfgLimitChars </b>integer
</dt>
<dd>
Maximal number of Chars showed in a field on browse view.
<br /><br />
</dd>
<dt>
<b>$cfgModifyDeleteAtLeft </b>boolean<br />
<b>$cfgModifyDeleteAtRight </b>boolean

View File

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

View File

@@ -200,7 +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"; ?>
<?php echo $strSum . "\n"; ?> &nbsp;&nbsp;
<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"; ?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strQueryOnDb = 'SQL-query on database ';
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again ';
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -287,4 +287,5 @@ $strFormEmpty = 'Missing value in the form !';
$strQueryOnDb = ' SQL-query on database '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strUseBackquotes = ' Use backquotes with tables and fields names '; //to translate
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again ';
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strFormEmpty = 'Missing value in the form !';
$strQueryOnDb = 'SQL-query on database ';
$strShowPHPInfo = 'Show PHP information'; // To translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -287,4 +287,5 @@ $strQueryOnDb = 'SQL-query on database ';
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strFormEmpty = 'Missing value in the form !';
$strQueryOnDb = 'SQL-query on database ';
$strShowPHPInfo = 'Show PHP information'; // To translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -284,4 +284,5 @@ $strWelcome = 'Welcome to ';
$strWrongUser = 'Wrong username/password. Access denied.';
$strYes = 'Yes';
$strTables=" tables "; //to translate
?>

View File

@@ -284,4 +284,5 @@ $strWelcome = 'Bienvenue
$strWrongUser = 'Erreur d\'utilisateur/mot de passe. Acc<63>s refus<75>';
$strYes = 'Oui';
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strWrongUser = 'Falscher Benutzername/Passwort. Zugriff verweigert.';
$strYes = 'Ja';
// To translate
$strTables=" Tabellen "; //to translate
?>

View File

@@ -287,4 +287,5 @@ $strFormEmpty = 'Missing value in the form !';
$strQueryOnDb = 'SQL-query on database ';
$strShowPHPInfo = 'Show PHP information'; // To translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strYes = 'Tak';
// To translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strBzip = '"bzipped"'; // To translate
$strGzip = '"gzipped"'; // To translate
$strOffSet = 'offset'; // To translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strTables=" tables "; //to translate
?>

View File

@@ -286,4 +286,5 @@ $strBzip = '"bzipped"'; // To translate
$strGzip = '"gzipped"'; // To translate
$strOffSet = 'offset'; // To translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strTables=" tables "; //to translate
?>

View File

@@ -287,4 +287,5 @@ $strYes = '
// To translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strTables=" tables "; //to translate
?>

View File

@@ -288,4 +288,5 @@ $strFieldsEmpty = ' The field count is empty! '; //to translate
$strFormEmpty = 'Missing value in the form !';
$strOffSet = 'offset';
$strShowPHPInfo = 'Show PHP information'; // To translate
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -291,4 +291,5 @@ $strRowSize = ' Row size '; //to translate
$strShowPHPInfo = 'Show PHP information'; // To translate
$strShowThisQuery = ' Show this query here again '; //to translate
$strUseBackquotes = 'Use backquotes with tables and fields\' names';
$strTables=" tables "; //to translate
?>

View File

@@ -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; ?></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; ?></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

View File

@@ -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;
global $SelectNumRows, $cfgLimitChars;
// Gets the number of rows per page
if (isset($GLOBALS['sessionMaxRows'])) {
@@ -1131,6 +1131,9 @@ var errorMsg2 = '<?php echo(str_replace('\'', '\\\'', $GLOBALS['strNotValidNumbe
if (eregi('BLOB', $true_field_type['Type'])) {
echo ' <td align="right">&nbsp;[BLOB]&nbsp;</td>' . "\n";
} else {
if (strlen($row[$i]) > $cfgLimitChars){
$row[$i] = substr($row[$i],0,$cfgLimitChars) . "...";
}
echo ' <td>&nbsp;' . htmlspecialchars($row[$i]) . '&nbsp;</td>' . "\n";
}
} else {