From 65340286de958b3b7f2524b11924caadef186b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20M=C3=BCller?= Date: Wed, 15 Aug 2001 17:35:58 +0000 Subject: [PATCH] * 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: --- ChangeLog | 7 +++++++ Documentation.html | 8 ++++++++ config.inc.php3 | 1 + db_details.php3 | 3 ++- lang/brazilian_portuguese.inc.php3 | 1 + lang/bulgarian-win1251.inc.php3 | 1 + lang/catala.inc.php3 | 1 + lang/chinese_big5.inc.php3 | 1 + lang/chinese_gb.inc.php3 | 1 + lang/czech-iso.inc.php3 | 1 + lang/czech-win1250.inc.php3 | 1 + lang/danish.inc.php3 | 1 + lang/dutch.inc.php3 | 1 + lang/english.inc.php3 | 1 + lang/french.inc.php3 | 1 + lang/german.inc.php3 | 1 + lang/italian.inc.php3 | 1 + lang/japanese.inc.php3 | 1 + lang/korean.inc.php3 | 1 + lang/norwegian.inc.php3 | 1 + lang/polish.inc.php3 | 1 + lang/portuguese.inc.php3 | 1 + lang/russian-koi8.inc.php3 | 1 + lang/russian-win1251.inc.php3 | 1 + lang/slovak-iso.inc.php3 | 1 + lang/spanish.inc.php3 | 1 + lang/swedish.inc.php3 | 1 + lang/thai.inc.php3 | 1 + left.php3 | 4 ++-- lib.inc.php3 | 5 ++++- 30 files changed, 48 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c11f92e89..b629f984c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,13 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-08-15 Olivier Müller + * 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 * Bug #450374 - (RC4) + becomes space - patched in tbl_replace.php3 diff --git a/Documentation.html b/Documentation.html index fe892d4ef..ef65b8997 100755 --- a/Documentation.html +++ b/Documentation.html @@ -543,6 +543,14 @@

+
+ $cfgLimitChars integer +
+
+ Maximal number of Chars showed in a field on browse view. +

+
+
$cfgModifyDeleteAtLeft boolean
$cfgModifyDeleteAtRight boolean diff --git a/config.inc.php3 b/config.inc.php3 index ac8ddfa3c..87603827e 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -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; diff --git a/db_details.php3 b/db_details.php3 index 922aad4a0..bd8291311 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -200,7 +200,8 @@ else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) { ?> - +    + ( ) diff --git a/lang/brazilian_portuguese.inc.php3 b/lang/brazilian_portuguese.inc.php3 index b73c27893..7707402f2 100644 --- a/lang/brazilian_portuguese.inc.php3 +++ b/lang/brazilian_portuguese.inc.php3 @@ -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 ?> diff --git a/lang/bulgarian-win1251.inc.php3 b/lang/bulgarian-win1251.inc.php3 index f2da03106..57b63351f 100644 --- a/lang/bulgarian-win1251.inc.php3 +++ b/lang/bulgarian-win1251.inc.php3 @@ -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 ?> diff --git a/lang/catala.inc.php3 b/lang/catala.inc.php3 index 1998278eb..91bc43a83 100644 --- a/lang/catala.inc.php3 +++ b/lang/catala.inc.php3 @@ -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 ?> diff --git a/lang/chinese_big5.inc.php3 b/lang/chinese_big5.inc.php3 index 5a89e95f9..f144a8706 100644 --- a/lang/chinese_big5.inc.php3 +++ b/lang/chinese_big5.inc.php3 @@ -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 ?> diff --git a/lang/chinese_gb.inc.php3 b/lang/chinese_gb.inc.php3 index 6722ed98d..2bbb66e26 100644 --- a/lang/chinese_gb.inc.php3 +++ b/lang/chinese_gb.inc.php3 @@ -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 ?> diff --git a/lang/czech-iso.inc.php3 b/lang/czech-iso.inc.php3 index 5562c65ad..b4197de0d 100644 --- a/lang/czech-iso.inc.php3 +++ b/lang/czech-iso.inc.php3 @@ -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 ?> diff --git a/lang/czech-win1250.inc.php3 b/lang/czech-win1250.inc.php3 index 49b7c122c..89ed94cad 100644 --- a/lang/czech-win1250.inc.php3 +++ b/lang/czech-win1250.inc.php3 @@ -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 ?> diff --git a/lang/danish.inc.php3 b/lang/danish.inc.php3 index cdd38e6ef..da10057d1 100644 --- a/lang/danish.inc.php3 +++ b/lang/danish.inc.php3 @@ -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 ?> diff --git a/lang/dutch.inc.php3 b/lang/dutch.inc.php3 index 90a3ce681..760e4e193 100644 --- a/lang/dutch.inc.php3 +++ b/lang/dutch.inc.php3 @@ -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 ?> diff --git a/lang/english.inc.php3 b/lang/english.inc.php3 index 4c51f9475..2e2bf70d7 100644 --- a/lang/english.inc.php3 +++ b/lang/english.inc.php3 @@ -284,4 +284,5 @@ $strWelcome = 'Welcome to '; $strWrongUser = 'Wrong username/password. Access denied.'; $strYes = 'Yes'; +$strTables=" tables "; //to translate ?> diff --git a/lang/french.inc.php3 b/lang/french.inc.php3 index 6bf3ccbba..fd38240fa 100644 --- a/lang/french.inc.php3 +++ b/lang/french.inc.php3 @@ -284,4 +284,5 @@ $strWelcome = 'Bienvenue $strWrongUser = 'Erreur d\'utilisateur/mot de passe. Accès refusé'; $strYes = 'Oui'; +$strTables=" tables "; //to translate ?> diff --git a/lang/german.inc.php3 b/lang/german.inc.php3 index eceab3a40..1505430b1 100644 --- a/lang/german.inc.php3 +++ b/lang/german.inc.php3 @@ -286,4 +286,5 @@ $strWrongUser = 'Falscher Benutzername/Passwort. Zugriff verweigert.'; $strYes = 'Ja'; // To translate +$strTables=" Tabellen "; //to translate ?> diff --git a/lang/italian.inc.php3 b/lang/italian.inc.php3 index debe80b81..fa41a53cd 100644 --- a/lang/italian.inc.php3 +++ b/lang/italian.inc.php3 @@ -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 ?> diff --git a/lang/japanese.inc.php3 b/lang/japanese.inc.php3 index d6871406b..d53e33d21 100644 --- a/lang/japanese.inc.php3 +++ b/lang/japanese.inc.php3 @@ -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 ?> diff --git a/lang/korean.inc.php3 b/lang/korean.inc.php3 index 546cae9b7..7549ea98a 100644 --- a/lang/korean.inc.php3 +++ b/lang/korean.inc.php3 @@ -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 ?> diff --git a/lang/norwegian.inc.php3 b/lang/norwegian.inc.php3 index 8fc9e2813..17250ddb6 100644 --- a/lang/norwegian.inc.php3 +++ b/lang/norwegian.inc.php3 @@ -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 ?> diff --git a/lang/polish.inc.php3 b/lang/polish.inc.php3 index 0ff075a89..50b5ad386 100644 --- a/lang/polish.inc.php3 +++ b/lang/polish.inc.php3 @@ -286,4 +286,5 @@ $strYes = 'Tak'; // To translate $strShowPHPInfo = 'Show PHP information'; // To translate +$strTables=" tables "; //to translate ?> diff --git a/lang/portuguese.inc.php3 b/lang/portuguese.inc.php3 index 684d3774d..58ff3ff1e 100644 --- a/lang/portuguese.inc.php3 +++ b/lang/portuguese.inc.php3 @@ -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 ?> diff --git a/lang/russian-koi8.inc.php3 b/lang/russian-koi8.inc.php3 index 3916d1d1f..2d4d163dc 100644 --- a/lang/russian-koi8.inc.php3 +++ b/lang/russian-koi8.inc.php3 @@ -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 ?> diff --git a/lang/russian-win1251.inc.php3 b/lang/russian-win1251.inc.php3 index 09e6c6849..a82bd2094 100644 --- a/lang/russian-win1251.inc.php3 +++ b/lang/russian-win1251.inc.php3 @@ -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 ?> diff --git a/lang/slovak-iso.inc.php3 b/lang/slovak-iso.inc.php3 index 432ad57c4..65b8eacc8 100644 --- a/lang/slovak-iso.inc.php3 +++ b/lang/slovak-iso.inc.php3 @@ -287,4 +287,5 @@ $strYes = ' // To translate $strShowPHPInfo = 'Show PHP information'; // To translate +$strTables=" tables "; //to translate ?> diff --git a/lang/spanish.inc.php3 b/lang/spanish.inc.php3 index e74850f77..b4ca1296a 100644 --- a/lang/spanish.inc.php3 +++ b/lang/spanish.inc.php3 @@ -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 ?> diff --git a/lang/swedish.inc.php3 b/lang/swedish.inc.php3 index 5bc9c4751..62380e6af 100644 --- a/lang/swedish.inc.php3 +++ b/lang/swedish.inc.php3 @@ -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 ?> diff --git a/lang/thai.inc.php3 b/lang/thai.inc.php3 index 90e3bedb6..24902356b 100644 --- a/lang/thai.inc.php3 +++ b/lang/thai.inc.php3 @@ -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 ?> diff --git a/left.php3 b/left.php3 index 868b1e1e0..10de45394 100755 --- a/left.php3 +++ b/left.php3 @@ -192,7 +192,7 @@ if ($num_dbs > 1) { echo "\n"; ?> - + ()
@@ -253,7 +253,7 @@ else if ($num_dbs == 1) { ?>
- + ()
 [BLOB] ' . "\n"; } else { + if (strlen($row[$i]) > $cfgLimitChars){ + $row[$i] = substr($row[$i],0,$cfgLimitChars) . "..."; + } echo '  ' . htmlspecialchars($row[$i]) . ' ' . "\n"; } } else {