1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Move textarea function to editing.*

This commit is contained in:
Jakub Vrana
2010-07-13 18:21:38 +02:00
parent 9929cc6796
commit d6ac5f1ad2
4 changed files with 35 additions and 35 deletions

View File

@@ -96,6 +96,17 @@ function referencable_primary($self) {
return $return;
}
/** Print SQL <textarea> tag
* @param string
* @param int
* @param int
* @param string
* @return null
*/
function textarea($name, $value, $rows = 10, $cols = 80) {
echo "<textarea name='$name' rows='$rows' cols='$cols' style='width: 98%;' spellcheck='false' onkeydown='return textareaKeydown(this, event);'>" . h($value) . "</textarea>"; // spellcheck - not valid before HTML5
}
/** Print table columns for type edit
* @param string
* @param array