diff --git a/ChangeLog b/ChangeLog index 688a66882..7ca18d9bf 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2001-08-29 Olivier Müller * left.php3: on login with std_auth, only the databases on which the user has rights will be shown (tested with @mysql_select_db($dbname)). + * lib.inc.php3: added a toggle to display the whole text fields on browse + table, or just the $cfgLimitChars first chars (default). 2001-08-29 Marc Delisle * lang/romanian.inc.php3 updates, thanks to Valics Lehel diff --git a/lib.inc.php3 b/lib.inc.php3 index 80d3008de..b25bd5942 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -728,8 +728,8 @@ window.parent.frames['nav'].location.replace(''); function show_table_navigation($pos_next, $pos_prev, $dt_result) { global $lang, $server, $db, $table; - global $sql_query, $pos, $goto; - global $sessionMaxRows, $SelectNumRows; + global $sql_query, $pos, $goto, $dontlimitchars; + global $sessionMaxRows, $SelectNumRows, $cfgLimitChars; // $sql_query will be stripslashed in 'sql.php3' if the // 'magic_quotes_gpc' directive is set to 'on' @@ -757,6 +757,7 @@ window.parent.frames['nav'].location.replace(''); + @@ -770,6 +771,7 @@ window.parent.frames['nav'].location.replace(''); + @@ -789,6 +791,7 @@ window.parent.frames['nav'].location.replace(''); + @@ -812,6 +815,7 @@ window.parent.frames['nav'].location.replace(''); + @@ -826,12 +830,60 @@ window.parent.frames['nav'].location.replace(''); + + +     + + +
+ + + + + + + + + + +
+ + + +     + + +
+ + + + + + + + + + chars" /> +
+ + @@ -861,7 +913,7 @@ window.parent.frames['nav'].location.replace(''); { global $lang, $server, $db, $table; global $sql_query, $goto, $pos; - global $SelectNumRows; + global $SelectNumRows, $dontlimitchars; // Gets the number of rows per page if (isset($GLOBALS['sessionMaxRows'])) { @@ -1151,7 +1203,7 @@ var errorMsg2 = '[BLOB]' . "\n"; } else { - if (strlen($row[$i]) > $GLOBALS['cfgLimitChars']) { + if (strlen($row[$i]) > $GLOBALS['cfgLimitChars'] && ($dontlimitchars != 1)) { $row[$i] = substr($row[$i], 0, $GLOBALS['cfgLimitChars']) . '...'; } // loic1 : displays /