From bae768d77d68c72577b04d56a32b907f686cf45d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Jul 2010 12:41:56 +0000 Subject: [PATCH] Updated smarty html-object factory -Added ability to disable generated fields git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19167 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/smarty/plugins/function.factory.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/smarty/plugins/function.factory.php b/gosa-core/include/smarty/plugins/function.factory.php index 7de9c138a..10b15ffc5 100644 --- a/gosa-core/include/smarty/plugins/function.factory.php +++ b/gosa-core/include/smarty/plugins/function.factory.php @@ -11,6 +11,9 @@ function smarty_function_factory($params, &$smarty) $$tmp = (isset($params[$var]))? "{$var}=\"{$params[$var]}\"" : ""; } + $disabled = (isset($params['disabled']))? 'disabled' : ""; + + $str = ""; switch($type){ @@ -20,7 +23,7 @@ function smarty_function_factory($params, &$smarty) // Maxlength has a default of 40 characters $maxlengthReady = (empty($maxlength))?'maxlength="40"': $maxlengthReady; $str .= "