summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c573fd0)
raw | patch | inline | side by side (parent: c573fd0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Nov 2005 07:47:16 +0000 (07:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Nov 2005 07:47:16 +0000 (07:47 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1899 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_environment.inc | patch | blob | history |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index d4786d57b7e0700f6f4ebc525eb0ca6da2902269..e3ea8c8923deec7d2e1f21c1e42f5bf12d6c1335 100644 (file)
/* Call parent execute */
plugin::execute();
- /* Fill templating stuff */
- $smarty= get_smarty();
- $display= "";
- /* Is accout enabled | are we editing from usermenu or admin menu
- All these tab management is done here
- */
+ /* Prepare all variables for smarty */
+ foreach($this->attributes as $s_attr){
+ /* Set value*/
+ $smarty->assign($s_attr,$this->$s_attr);
+
+ /* Set checkbox state*/
+ if(empty($this->$s_attr)){
+ $smarty->assign($s_attr."CHK","");
+ }else{
+ $smarty->assign($s_attr."CHK"," checked ");
+ }
+
+ /* Prepare ACL settings*/
+ if(chkacl($this->acl,$s_attr)=="") {
+ $smarty->assign($s_attr."ACL","");
+ }else{
+ $smarty->assign($s_attr."ACL"," disabled ");
+ }
+
+ }
+
+ /* Fill templating stuff */
+ $smarty= get_smarty();
+ $display= "";
+ /* Is accout enabled | are we editing from usermenu or admin menu
+ All these tab management is done here
+ */
- /* Working from Usermenu an the Account is currently disbled
+ /* Working from Usermenu an the Account is currently disbled
* this->parent : is only set if we are working in a list of tabs
* is_account : is only true if the needed objectClass is given
*/