summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc7ef9e)
raw | patch | inline | side by side (parent: cc7ef9e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Apr 2010 15:07:01 +0000 (15:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Apr 2010 15:07:01 +0000 (15:07 +0000) |
-Mark some rows in system listing e.g. for locked systems
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17974 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17974 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 94f8a7bc48479dd711d60a945beee6e430d9bc1a..d9b59cf6613075d01291be5cc10fc7ad1cdb5777 100644 (file)
static function filterSystemDescription($row,$dn,$pid,$description=array())
{
- $result= " ";
-
- $row= func_get_arg(0);
$dn= LDAP::fix(func_get_arg(1));
- $params= array(func_get_arg(2));
-
- // Collect sprintf params
- for ($i = 3;$i < func_num_args();$i++) {
- $val= func_get_arg($i);
- if (is_array($val)){
- $params[]= $val[0];
- continue;
- }
- $params[]= $val;
- }
-
- $result= " ";
- $trans= call_user_func_array("sprintf", $params);
- if ($trans != "") {
- return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_edit_$row' title='$dn'>$trans</a>");
- }
-
- return $result;
+ $desc = isset($description[0])?$description[0]:" ";
+ $rc = "<rowClass:entry-locked/>";
+ $rc = "";
+ return("<a href='?plug=".$_GET['plug']."&PID={$pid}&act=listing_edit_{$row}' title='{$dn}'>{$desc}</a>{$rc}");
}
static function systemRelease($a,$b,$c,$objectclasses= null,$class= null)