Features
* Allow current database to be at the top
* Allow base URL of PostgreSQL documentation to be configured
+* Allow variable size textarea when editing values (Juergen Weigert)
Bugs
* Tree Icons are displayed middle instead of top
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.253 2005/02/10 21:21:00 mr-russ Exp $
+ * $Id: Postgres.php,v 1.254 2005/02/20 04:47:46 mr-russ Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
// EXCEPT the 'special' ones like \r \n \t, etc.
$value = addCSlashes($value, "\0..\37\177..\377");
case 'text':
- echo "<textarea name=\"", htmlspecialchars($name), "\" rows=\"5\" cols=\"75\" wrap=\"virtual\"{$action_str}>\n";
+ $n = substr_count($value, "\n");
+ $n = $n < 5 ? 5 : $n;
+ $n = $n > 20 ? 20 : $n;
+ echo "<textarea name=\"", htmlspecialchars($name), "\" rows=\"{$n}\" cols=\"75\" wrap=\"virtual\"{$action_str}>\n";
echo htmlspecialchars($value);
echo "</textarea>\n";
break;
case 'character':
- echo "<textarea name=\"", htmlspecialchars($name), "\" rows=\"2\" cols=\"35\" wrap=\"virtual\"{$action_str}>\n";
+ $n = substr_count($value, "\n");
+ $n = $n < 5 ? 5 : $n;
+ $n = $n > 20 ? 20 : $n;
+ echo "<textarea name=\"", htmlspecialchars($name), "\" rows=\"{$n}\" cols=\"35\" wrap=\"virtual\"{$action_str}>\n";
echo htmlspecialchars($value);
echo "</textarea>\n";
break;