summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5b9519)
raw | patch | inline | side by side (parent: c5b9519)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Apr 2006 07:34:11 +0000 (07:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 Apr 2006 07:34:11 +0000 (07:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2985 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupApplication.inc | patch | blob | history |
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 95813c65769c1216cf38b217bc0736427c2b5cfe..246945aff83ef713be905bdf2bb0e9a4c773543c 100644 (file)
}
foreach($departments as $key => $app){
$div->AddEntry(array(
- array("string"=>"<img src='images/folder.png' alt='"._("department")."'> ".sprintf($linkopen,base64_encode($key),$app),
+ array("string"=>"<img class='center' src='images/folder.png' alt='"._("department")."'> ".sprintf($linkopen,base64_encode($key),$app),
"attach"=>"style='border:0px;'")
));
}
foreach($apps as $key => $app){
$div->AddEntry(array(
- array("string"=>sprintf("<input type='checkbox' value='1' name='AddApp_%s'>",$key).
- "<img src='images/select_application.png' alt='"._("application")."'> ".sprintf($linkadd,$key,$app),
+ array("string"=>sprintf("<input class='center' type='checkbox' value='1' name='AddApp_%s'>",$key).
+ "<img class='center' src='images/select_application.png' alt='"._("application")."'> ".sprintf($linkadd,$key,$app),
"attach"=>"style='border:0px;'")
));
}
$div2 = new DivSelectBox("appgroup");
$div2->SetHeight(400);
- $linkopen = "<img src='images/folder.png' alt=\"\"> <a href='?plug=".$_GET['plug']."&act=open&id=%s'>%s</a>";
+ $linkopen = "<img class='center' src='images/folder.png' alt=\"\"> <a href='?plug=".$_GET['plug']."&act=open&id=%s'>%s</a>";
$catremove = " <input type='image' src='images/edittrash.png' title='"._("Delete entry")."' name='DelCat_%s' value='%s'>";
- $app = "<img src='images/select_application.png' alt=\"\"> %s";
+ $app = "<img class='center' src='images/select_application.png' alt=\"\"> %s";
$catupdown = "<a href='?plug=".$_GET['plug']."&act=cat_up&id=%s'>
<img align='top' alt=\"\" src='images/sort_up.png' border=0 title='"._("Move up")."'></a> <a href='?plug=".$_GET['plug']."&act=cat_down&id=%s'>
$this->enableReleaseManagement = true;
$tmp = array_flip($this->getReleases());
- $base = $tmp[$this->Release];
+ if(isset($tmp[$this->Release])){
+ $base = $tmp[$this->Release];
+ }else{
+
+ $k = key($tmp);
+ $r = $tmp[$k];
+
+ print_red(sprintf(_("Can't resolve the release name '%s', setting release name to '%s'. "),$this->Release,$k));
+ $this->Release = $k;
+ $base = $r;
+ }
$base = preg_replace("/ou=apps,.*$/","ou=apps,".$this->curbase,$base);