summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9b59b30)
raw | patch | inline | side by side (parent: 9b59b30)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Sep 2009 09:25:02 +0000 (09:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Sep 2009 09:25:02 +0000 (09:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14400 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc | patch | blob | history | |
gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc | patch | blob | history |
diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc
index d37719ae8062f94a9abf49350dc985a521d0c832..27a10af215fdaf626a6e4abffac156d173f7a27c 100644 (file)
$smarty->assign("licenseModels",array(
"RETAIL" => _("Retail"),
"OEM"=>_("OEM"),
- "VOLUME" => _("Volume"),
- "CONCURRENT" => _("Concurrent")));
+ "VOLUME" => _("Volume")));
$smarty->assign("init_successfull", $this->init_successfull);
diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc
index 39c452a1d41b97d4e2a553aa1c3fadd8db67e297..a93e77bd550c2be36f40294250a532b647739eca 100644 (file)
if($this->acl_is_readable("licenses")){
foreach($this->licenses as $i => $license){
- $keys = implode($license['licenseKey'],", ");
$link = "<input type='image' class='center' src='images/lists/edit.png' name='editLicense_{$i}'>";
if(preg_match("/w/", $this->getacl("licenses"))){
$link.= "<input type='image' class='center' src='images/lists/trash.png' name='removeLicense_{$i}'>";
}
$f1 = array("string" => $license['cn']);
- $f2 = array("string" => $license['licenseModel']);
- $f3 = array("string" => $license['expirationDate']);
- $f4 = array("string" => $license['maximumInstallations']);
- $f5 = array("string" => rtrim($keys,", "));
+
+ $maxInst = "";
+ if($license['maximumInstallations'] == 0){
+ $maxInst = "("._("unlimited").")";
+ }else{
+ $maxInst = "(".$license['maximumInstallations'].")";;
+ }
+
+ $map = array(
+ "VOLUME" => sprintf(_("Volume license %s"), $maxInst),
+ "OEM"=>_("OEM"),
+ "RETAIL"=>_("retail"),
+ "CONCURRENT"=>_("concurrent"));
+
+ $f2 = array("string" => $map[$license['licenseModel']]);
$f6 = array("string" => $link, "attach" => "style='border-right: 0px; width:32px;'");
- $list->addEntry(array($f1,$f2,$f3,$f4,$f5,$f6));
+ $list->addEntry(array($f1,$f2,$f6));
}
}
return($list->DrawList());