Double sized textare for LONGTEXT is configurable (RFE #737174).

This commit is contained in:
Michal Čihař
2003-05-15 10:42:57 +00:00
parent ccc932155e
commit 2f5769cc3a
6 changed files with 382 additions and 339 deletions

View File

@@ -5,7 +5,12 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-05-13 Michal Cihar <nijel@users.sourceforge.net>
2003-05-15 Michal Cihar <nijel@users.sourceforge.net>
* Documentation, config.inc.php3, tbl_change.php3,
libraries/config_import.lib.php3: Double sized textare for LONGTEXT is
configurable (RFE #737174).
2003-05-14 Michal Cihar <nijel@users.sourceforge.net>
* libraries/display_export.lib.php3, tbl_dump.php3: Support for exporting
CSV for multiple tables, it just puts all content into one file, but
some people seem to want this (based on patch #735136).

View File

@@ -1427,6 +1427,14 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
<br /><br />
</dd>
<dt>
<b>$cfg['LongtextDoubleTextarea'] </b>boolean<br />
</dt>
<dd>
Defines whether textarea for LONGTEXT fields should have double size.
<br /><br />
</dd>
<dt>
<b>$cfg['TextareaAutoSelect'] </b>boolean<br />
</dt>

View File

@@ -6,7 +6,7 @@
Transformations - FAQ - Developers - Credits - Translators
______________________________________________________________________
phpMyAdmin 2.5.0 Documentation
phpMyAdmin 2.5.1-dev Documentation
* SourceForge phpMyAdmin project page [ http://www.phpmyadmin.net/
]
@@ -14,8 +14,8 @@
+ Version history: ChangeLog
+ General notes: README
+ License: LICENSE
* Documentation version: $Id: Documentation.html,v 1.438 2003/05/11
10:06:17 lem9 Exp $
* Documentation version: $Id: Documentation.html,v 1.442 2003/05/14
12:39:42 garvinhicking Exp $
Requirements
@@ -887,6 +887,10 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
Default is auto.
$cfg['IconvExtraParams'] string
Specify some parameters for iconv used in charset conversion.
See iconv documentation for details.
$cfg['AvailableCharsets'] array
Available character sets for MySQL conversion. You can add your
own (any of supported by recode/iconv) or remove these which
@@ -942,6 +946,10 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
The Char* values are used for CHAR and VARCHAR editing (if
configured via $cfg['CharEditing']).
$cfg['LongtextDoubleTextarea'] boolean
Defines whether textarea for LONGTEXT fields should have double
size.
$cfg['TextareaAutoSelect'] boolean
Defines if the whole textarea of the query box will be selected
on click.
@@ -1001,6 +1009,15 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
must be owned by the same user as the owner of the phpMyAdmin
scripts.
$cfg['SaveDir'] string
The name of the directory, ending with a slash, where dumps can
be saved.
Please note that the directory has to be writable for user
running webserver.
Please note that if PHP is running in safe mode, this directory
must be owned by the same user as the owner of the phpMyAdmin
scripts.
$cfg['RepeatCells'] integer
Repeat the headers every X cells, or 0 to deactivate.
@@ -1835,8 +1852,9 @@ FAQ - Frequently Asked Questions
Upgrade to at least Internet Explorer 5.5 SP2.
[5.6] In Internet Explorer 5.0, 5.5 or 6.0, I get an error when trying to
modify a row in a table with many fields, or with a text field
[5.6] In Internet Explorer 5.0, 5.5 or 6.0, I get an error (like "Page not
found") when trying to modify a row in a table with many fields, or with a
text field
Your table neither have a primary key nor an unique one, so we must
use a long URL to identify this row. There is a limit on the length of
@@ -1886,6 +1904,13 @@ FAQ - Frequently Asked Questions
This is a bug in Internet Explorer, other browsers do not behave this
way.
[5.14] Using Opera6, I can manage to get to the authentification, but
nothing happens after that, only a blank screen.
Having $cfg['QueryFrameJS'] set to TRUE, this leads to a bug in
Opera6, because it is not able to interpret frameset definitiions
written by JavaScript. Please upgrade to Opera7 at least.
[6. Using phpMyAdmin]
[6.1] I can't insert new rows into a table / I can't create a table - MySQL
@@ -2043,7 +2068,7 @@ FAQ - Frequently Asked Questions
If you put a backslash before the underscore, it means that the
database name will have a real underscore.
[6.11] What is the curious symbol <EFBFBD> in the statistics pages?
[6.11] What is the curious symbol o/ in the statistics pages?
It means "average".
@@ -2074,7 +2099,7 @@ FAQ - Frequently Asked Questions
If you use it, you should be aware that any SQL statement you submit
will be stored anonymously (database/table/column names, strings,
numbers replaced with generic values). The Mimer SQL Validator itself,
is <EFBFBD> 2001 Upright Database Technology. We utilize it as free SOAP
is (c) 2001 Upright Database Technology. We utilize it as free SOAP
service.
[6.15] I want to add a BLOB field and put an index on it, but MySQL says
@@ -2254,7 +2279,7 @@ CREDITS, in chronological order
* current project maintainer
* many bugfixes and improvements
- Lo<EFBFBD>c Chapeaux <lolo_at_phpheaven.net>
- Loic Chapeaux <lolo_at_phpheaven.net>
* rewrote and optimized javascript, DHTML and DOM stuff
* rewrote the scripts so they fit the PEAR coding standards and
generate XHTML1.0 and CSS2 compliant codes

View File

@@ -387,6 +387,7 @@ $cfg['TextareaCols'] = 40; // textarea size (columns) in edit m
// (this value will be emphasized (*2) for sql
// query textareas and (*1.25) for query window)
$cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
$cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields
$cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
$cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
$cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR

View File

@@ -612,6 +612,10 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')) {
}
}
if (!isset($cfg['LongtextDoubleTextarea'])) {
$cfg['LongtextDoubleTextarea'] = TRUE;
}
if (!isset($cfg['TextareaRows'])) {
if (isset($cfgTextareaRows)) {
$cfg['TextareaRows'] = $cfgTextareaRows;

View File

@@ -449,7 +449,7 @@ for ($i = 0; $i < $fields_cnt; $i++) {
echo ' </td>' . "\n";
unset($disp);
}
else if (strstr($row_table_def['True_Type'], 'longtext')) {
else if ($cfg['LongtextDoubleTextarea'] && strstr($row_table_def['True_Type'], 'longtext')) {
?>
<td bgcolor="<?php echo $bgcolor; ?>">&nbsp;</td>
</tr>