summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eae3583)
raw | patch | inline | side by side (parent: eae3583)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 04:30:23 +0000 (04:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Jul 2006 04:30:23 +0000 (04:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4240 594d385d-05f5-0310-b6e9-bd551577e9d8
include/smarty/plugins/block.render.php | patch | blob | history | |
plugins/personal/generic/generic.tpl | patch | blob | history |
index e201ba7fb863be83b8f114790b86387b4662ae56..831009fda1921b1a682ff363cb8c8dd14f841a1d 100755 (executable)
}
/* Disable objects, but keep those active that have mode=read_active */
- if(!(isset($params['mode']) && $params['mode']=='read_active')){
+ if(!(isset($params['mode']) && $params['mode']=='readable')){
$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'])){
+ $syn = "/src=['\"][a-z0-9\/.]*['\"]/i";
+ $new = "src=\"".$params['disable_picture']."\"";
+ $text = preg_replace($syn,$new,$text);
+ }
+
}
/* Read only */
index c79dccdf67fc25178ec9040dc3483a5b15b8a47a..d27930c6b12c0ea2e9f1a8ed8c591f95c157c3b3 100644 (file)
<select id="base" size="1" name="base" title="{t}Choose subtree to place user in{/t}">
{html_options options=$bases selected=$base_select}
</select>
+ {/render}
+ {render acl=$baseACL disable_picture='images/folder_gray.png'}
<input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
{/render}
</td>