summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/Template.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/Template.class.php b/src/views/Template.class.php
index 62b8ba6..187e65b 100644
--- a/src/views/Template.class.php
+++ b/src/views/Template.class.php
@@ -226,6 +226,12 @@ class Template {
$tag = ($lock?"readonly='readonly' ":'');
return "<input type='$type' name='$id' id='$id' value=\"$value\" $tag/>";
}
+ public function inputTextArea($id, $label, $hint='', $default='', $lock=FALSE) {
+ $value = htmlentities($default);
+ $tag = ($lock?"readonly='readonly' ":'');
+ return $this->input($id, $label, $hint,
+ "<textarea name='$id' id='$id' $tag>$value</textarea>");
+ }
public function inputText($id, $label, $hint='', $default='', $lock=FALSE) {
return $this->input($id, $label, $hint,