Code

Added new Template widget
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 May 2011 13:09:47 +0000 (13:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 17 May 2011 13:09:47 +0000 (13:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20850 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_stringLong.inc [new file with mode: 0644]

diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_stringLong.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_stringLong.inc
new file mode 100644 (file)
index 0000000..671b4b1
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+class TemplateWidget_stringLong extends TemplateWidget
+{
+    function render()
+    {
+        $desc = set_post($this->description);
+        $value = set_post($this->value);
+        
+        $name = " name=\"{$this->postName}\" ";
+        $value = " value=\"{$value}\" ";
+        $title = (empty($this->description))?"": " title=\"{$desc}\"";
+        
+        $disabled = (!$this->enabled)? "disabled" : "";
+        return("<input type='text' style='width:100%;' {$title} {$name} {$value} {$disabled}>");
+    }
+}
+
+?>