summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82ab118)
raw | patch | inline | side by side (parent: 82ab118)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Aug 2009 09:37:33 +0000 (09:37 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Aug 2009 09:37:33 +0000 (09:37 +0000) |
* updated filter calling and show action results
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14043 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14043 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/users/class_userManagement.inc | patch | blob | history | |
gosa-core/plugins/admin/users/user-list.xml | patch | blob | history |
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index 74deff3514da8499a9876a0c2bf7ff17a3037d22..672deee7f8d4041c0369523cee3d05033d73daed 100644 (file)
$this->reload();
$this->DivListUsers->setEntries($this->list);
- ## FILTER Test #################################################
+ # FILTER Test #################################################
- ## Build filter
+ # Build filter
#$filter = new filter(get_template_path("user-filter.xml", true));
#$filter->setObjectStorage(get_people_ou());
#$filter->setCurrentBase($this->DivListUsers->selectedBase);
## Build headpage
#$headpage = new listing(get_template_path("user-list.xml", true));
#$headpage->registerFilter("accountProperties", "userManagement::filterProperties");
- #$headpage->setEntries($filter->query());
+ #$headpage->setFilter($filter);
+
+ ## Needs to be called before update!
+ #print_a($headpage->getAction());
+
+ ## Refresh for filter
+ #$headpage->update();
#
- #return($filter->render().$headpage->render());
+ #return($headpage->render());
################################################### FILTER Test
return($this->DivListUsers->Draw());
$result= "";
$map= array( "gosaAccount" => array( "image" => "plugins/users/images/select_user.png",
+ "plugin" => "user",
"alt" => _("Generic"),
"title" => _("Edit generic properties")),
"posixAccount" => array("image" => "images/penguin.png",
+ "plugin" => "posixAccount",
"alt" => _("POSIX"),
"title" => _("Edit POSIX properties")),
"gosaMailAccount" => array("image" => "images/mailto.png",
"alt" => _("Mail"),
+ "plugin" => "mailAccount",
"title" => _("Edit mail properties")),
"sambaSamAccount" => array("image" => "plugins/systems/images/select_winstation.png",
+ "plugin" => "sambaAccount",
"alt" => _("Samba"),
"title" => _("Edit samba properties")),
"apple-user" => array("image" => "plugins/netatalk/images/select_netatalk.png",
+ "plugin" => "sambaAccount",
"alt" => _("Netatalk"),
"title" => _("Edit netatalk properties")),
"gotoEnvironment" => array("image" => "plugins/users/images/small_environment.png",
+ "plugin" => "gotoEnvironment",
"alt" => _("Environment"),
"title" => _("Edit environment properties")),
"goFaxAccount" => array("image" => "plugins/users/images/fax_small.png",
+ "plugin" => "goFaxAccount",
"alt" => _("FAX"),
"title" => _("Edit FAX properties")),
"goFonAccount" => array("image" => "plugins/gofon/images/select_phone.png",
+ "plugin" => "goFonAccount",
"alt" => _("Phone"),
"title" => _("Edit phone properties")));
if (in_array($oc, $class)) {
$result.="<input class='center' type='image' src='".$properties['image']."' ".
"alt='".$properties['alt']."' title='".$properties['title'].
- "' name='edit_${row}_$oc' style='padding:1px'>";
+ "' name='listing_edit_".$properties['plugin']."_$row' style='padding:1px'>";
} else {
$result.="<img src='images/empty.png' alt=' ' class='center' style='padding:1px'>";
}
diff --git a/gosa-core/plugins/admin/users/user-list.xml b/gosa-core/plugins/admin/users/user-list.xml
index af44220a6c001708e4b2b328ca5e3789f7e67f64..b52543dfbed4fa1dbbd109abd2b9f03beff7b745 100644 (file)
</definition>
<table>
- <!--<oddColor></oddColor>
- <evenColor></evenColor>-->
<layout>|20px||145px|80px;r|</layout>
<column>