From: hickert Date: Wed, 17 Feb 2010 17:41:14 +0000 (+0000) Subject: Fixe X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7453b2045d643b65d56eb1049e200b7883c5f62c;p=gosa.git Fixe git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15638 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 08e1ced82..ccaa30722 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -96,7 +96,7 @@ class systemManagement extends management // Build headpage $headpage = new listing(get_template_path("system-list.xml", true)); - $headpage->registerElementFilter("systemDescription", "systemManagement::systemDescription"); + $headpage->registerElementFilter("systemRelease", "systemManagement::systemRelease"); $headpage->setFilter($filter); $filter->setConverter('INCOMING', 'systemManagement::incomingFilterConverter'); @@ -1348,25 +1348,28 @@ class systemManagement extends management } - function systemDescription($a,$b,$c,$d) + function systemRelease($a,$b,$c,$d) { global $config; // A ... solution, but I can't figure out a better solution right now. $headpage = session::get('SYSTEMS_DESCRIPTION_FILTER'); - if(!is_object($headpage)) return($str); - $str = $headpage->filterLink($a,$b,$c,$d); + if(!is_array($d) || !count($d) || !is_object($headpage)) return(" "); + $ldap = $config->get_ldap_link(); $ldap->cd($config->current['BASE']); - $ldap->search("(&(objectClass=gosaGroupOfNames)(member=".$b."))"); + $ldap->search("(&(objectClass=gosaGroupOfNames)(FAIclass=*)(member=".$b."))",array('FAIclass')); + while($attrs = $ldap->fetch()){ - $str .= " ("._("Object group member").")"; + alt='("._("Object group member").")' > ".$rel; return($str); } - return($str); + return(" "); } diff --git a/gosa-plugins/systems/admin/systems/system-filter.xml b/gosa-plugins/systems/admin/systems/system-filter.xml index 9583ce829..4a452ccef 100644 --- a/gosa-plugins/systems/admin/systems/system-filter.xml +++ b/gosa-plugins/systems/admin/systems/system-filter.xml @@ -17,6 +17,7 @@ description gotoMode FAIstate + FAIclass macAddress gotoLastUser diff --git a/gosa-plugins/systems/admin/systems/system-list.xml b/gosa-plugins/systems/admin/systems/system-list.xml index d10d8460b..563d7fd12 100644 --- a/gosa-plugins/systems/admin/systems/system-list.xml +++ b/gosa-plugins/systems/admin/systems/system-list.xml @@ -150,7 +150,7 @@ - |20px;c||250px|170px;r| + |20px;c||250px||170px;r| %{filter:objectType(dn,objectClass)} @@ -177,7 +177,15 @@ description string - %{filter:systemDescription(row,dn,"%s",description)} + %{filter:link(row,dn,"%s",description)} + true + + + + + description + string + %{filter:systemRelease(row,dn,"%s",FAIclass)} true