summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5211a6)
raw | patch | inline | side by side (parent: c5211a6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 05:31:01 +0000 (05:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 05:31:01 +0000 (05:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4244 594d385d-05f5-0310-b6e9-bd551577e9d8
include/smarty/plugins/block.render.php | patch | blob | history |
index c29621f2dd8c2c0ada487c669aaf7754633b0406..dbbc4a9b69e60e8335e9a8cb7e4da5960e04d3f1 100755 (executable)
/* Disable objects, but keep those active that have mode=read_active */
if(!(isset($params['mode']) && $params['mode']=='readable')){
- $from = array("/name=/i");
- $to = array(" disabled name=");
- $text = preg_replace($from,$to,$text);
+
+ /* Disable options */
+ $from = array("/name=/i");
+ $to = array(" disabled name=");
+ $text = preg_replace($from,$to,$text);
/* Replace picture if object is disabled */
if(isset($params['disable_picture'])){
$new = "src=\"".$params['disable_picture']."\"";
$text = preg_replace($syn,$new,$text);
}
-
}
/* Read only */
$text = preg_replace("/value=['\" ].*['\" ]/","",$text);
}
+ /* Remove select options */
+ $from = array("#<option.*<\/option>#i");
+ $to = array(" ");
+ $text = preg_replace($from,$to,$text);
+
return $text;
}