1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Disable spell checking in SQL textareas

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1498 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2010-04-26 16:22:24 +00:00
parent 4269b7b239
commit 6fffbbdd30
8 changed files with 26 additions and 8 deletions

View File

@@ -116,6 +116,21 @@ function html_select($name, $options, $value = "", $onchange = true) {
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'>" . h($value) . "</textarea>"; // spellcheck - not valid before HTML5
}
// other functions
/** Get INI boolean value
* @param string
* @return bool