Code

Added checkboxes to render function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Nov 2006 08:12:26 +0000 (08:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 2 Nov 2006 08:12:26 +0000 (08:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4985 594d385d-05f5-0310-b6e9-bd551577e9d8

include/smarty/plugins/block.render.php

index 42858ac28c2eabe88569fedfa4c5482e7ffe76fe..cfc53cf0b22a79c1446c5d9b105c2c34512b3ed8 100755 (executable)
@@ -24,9 +24,6 @@ function smarty_block_render($params, $text, &$smarty)
        if(!(isset($params['mode']) && $params['mode']=='read_active')){
 
                /* Disable options && greyout divlists */
-
-
-
                $from   = array("/class=['\"]list1nohighlight['\"]/i",
                                "/class=['\"]list0['\"]/i",
                                "/class=['\"]list1['\"]/i");
@@ -62,8 +59,8 @@ function smarty_block_render($params, $text, &$smarty)
        }
 
        /* Remove select options */
-       $from   = array("#<option.*<\/option>#i","/(<textarea.*>).*(<\/textarea>)/i");
-       $to     = array(" ","\\1\\2");
+       $from   = array("#<option.*<\/option>#i","/(<textarea.*>).*(<\/textarea>)/i","/^(.*<input.*)checked(.*>.*)$/");
+       $to     = array(" ","\\1\\2","\\1 \\2");
        $text   = preg_replace($from,$to,$text);
 
        return $text;