From 7d5c43d1f4597d0da1bc9e1e9b4962dd87de6f04 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 19 Jul 2001 18:54:19 +0000 Subject: [PATCH] dynamic length --- ChangeLog | 7 +++++++ Documentation.html | 10 ++++++++-- config.inc.php3 | 4 ++-- db_details.php3 | 6 ++++-- grab_globals.inc.php3 | 2 +- lib.inc.php3 | 4 ++++ tbl_change.php3 | 13 +++++++++---- tbl_properties.inc.php3 | 2 +- tbl_properties.php3 | 5 ++++- tbl_select.php3 | 5 ++++- 10 files changed, 44 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index a979e133a..bad140fc0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,13 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-07-19 Marc Delisle + * config.inc.php3, tbl_change.php3, db_details.php3, lib.inc.php3, + tbl_properties.php3, tbl_properties_inc.php3, tbl_select.php3, + Documentation.html: + Feature #429771: dynamic lenght for input fields, and new config + for textareas + 2001-07-18 Steve Alberty * left.php3: add 'or mysql_die()' for mysql_list_dbs to suppress 'unable to save result' warnings diff --git a/Documentation.html b/Documentation.html index 16c73ccb0..e8b33dc29 100755 --- a/Documentation.html +++ b/Documentation.html @@ -464,9 +464,15 @@

-
$cfgMaxInputsize integer
+
$cfgTextareaCols integer
- Size of the edit-field when adding a new record to a table. + Number of columns for the textareas. +

+
+ +
$cfgTextareaRows integer
+
+ Number of rows for the textareas.

diff --git a/config.inc.php3 b/config.inc.php3 index d5f7cbdc4..73e618866 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -77,11 +77,11 @@ $cfgThBgcolor = "#D3DCE3"; $cfgBgcolorOne = "#CCCCCC"; $cfgBgcolorTwo = "#DDDDDD"; $cfgMaxRows = 30; -$cfgMaxInputsize = "300px"; $cfgOrder = "ASC"; $cfgShowBlob = true; $cfgShowSQL = true; - +$cfgTextareaCols = "40"; +$cfgTextareaRows = "7"; $cfgModifyDeleteAtLeft = true; $cfgModifyDeleteAtRight = false; diff --git a/db_details.php3 b/db_details.php3 index 6823b8870..4346df50d 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -11,7 +11,6 @@ if (!isset($message)) { show_message($message); } - /** * Displays an html table with all the tables contained into the current * database @@ -261,7 +260,10 @@ if ($num_tables > 0) {  :
-\n"; + echo "\n"; if (strlen($special_chars) > 32000) echo "$strTextAreaLength"; } @@ -210,11 +212,14 @@ for($i=0;$i" . $strBinaryDoNotEdit; - echo ""; + echo ""; } else { - echo ""; + $fieldsize=($len>40? 40: $len); + + echo ""; } echo "\n"; } diff --git a/tbl_properties.inc.php3 b/tbl_properties.inc.php3 index 9c4fd1059..b6e76cb5b 100755 --- a/tbl_properties.inc.php3 +++ b/tbl_properties.inc.php3 @@ -201,7 +201,7 @@ if($action == "tbl_create.php3" && MYSQL_MAJOR_VERSION >= "3.23") { echo "$strTableComments:
"; ?> - + " />  :
-
diff --git a/tbl_select.php3 b/tbl_select.php3 index 777fcf545..5491f127b 100755 --- a/tbl_select.php3 +++ b/tbl_select.php3 @@ -58,7 +58,10 @@ if(!isset($param) || $param[0] == "") { echo ""; echo "$field"; echo "$type"; - echo "\n"; + + $fieldsize=($len>40? 40: $len); + echo "\n"; echo "\n"; echo "\n"; echo "";