From: hickert Date: Tue, 22 Sep 2009 12:36:32 +0000 (+0000) Subject: Updated licenses X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a94e8b8e9a121acf8018423abedc0f5c0b8474cf;p=gosa.git Updated licenses git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14310 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc index 631b132e1..564219a7c 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenses.inc @@ -128,6 +128,12 @@ class opsiLicenses extends plugin } if(count($this->dns)){ + + $dns_names = array(); + foreach($this->dns as $dn){ + $dns_names[] = LDAP::fix($dn); + } + $smarty->assign("info", msgPool::deleteInfo($dns_names,_("License"))); $smarty->assign("multiple", true); return($smarty->fetch(get_template_path('remove.tpl', TRUE))); @@ -154,10 +160,12 @@ class opsiLicenses extends plugin $acl = $this->ui->get_permissions($dn, "opsi/licenseGeneric"); if (preg_match('/d/', $acl)){ - /* Delete request is permitted, perform LDAP action */ - $this->dialog= new licensetabs($this->config,$this->config->data['TABS']['LICENSETABS'], $dn); - $this->dialog->delete(); - $this->dialog= NULL; + echo "
Delete ".$dn.""; + +# /* Delete request is permitted, perform LDAP action */ +# $this->dialog= new licensetabs($this->config,$this->config->data['TABS']['LICENSETABS'], $dn); +# $this->dialog->delete(); +# $this->dialog= NULL; } else { /* Normally this shouldn't be reached, send some extra @@ -178,8 +186,11 @@ class opsiLicenses extends plugin ***************/ if($s_action == "new" && !$this->dialog instanceOf tabs){ - $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'], "new"); - $this->dialog->set_acl_base($this->config->current['BASE']); + + echo "
Delete ".$dn.""; + + # $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'], "new"); + # $this->dialog->set_acl_base($this->config->current['BASE']); } /*************** @@ -194,11 +205,13 @@ class opsiLicenses extends plugin $entry = $this->licenses[$s_entry]; $this->dn = $entry['dn']; - /* Open the dialog */ - $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'], - $entry['dn'], "opsi"); - $this->dialog->set_acl_base($this->config->current['BASE']); - set_object_info($this->dn); + echo "
Edit ".$dn.""; + +# /* Open the dialog */ +# $this->dialog = new licensetabs($this->config, $this->config->data['TABS']['LICENSETABS'], +# $entry['dn'], "opsi"); +# $this->dialog->set_acl_base($this->config->current['BASE']); +# set_object_info($this->dn); } } diff --git a/gosa-plugins/opsi/admin/opsiLicenses/remove.tpl b/gosa-plugins/opsi/admin/opsiLicenses/remove.tpl index 76cf28860..8ac3a6b27 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/remove.tpl +++ b/gosa-plugins/opsi/admin/opsiLicenses/remove.tpl @@ -11,8 +11,8 @@

- +   - +