summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 513518c)
raw | patch | inline | side by side (parent: 513518c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 13 Sep 2005 09:16:07 +0000 (09:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 13 Sep 2005 09:16:07 +0000 (09:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1349 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 380a04abf276992b7326febb5913c783376eafaa..c6b177fadef392029f8476493596f14808030cda 100644 (file)
if($this->is_terminal){
if(empty($this->cn)){
- $display= $this->show_header(_("Add printer extension"),
+ if(!in_array("gotoPrinter",$this->objectclasses)){
+ $display= $this->show_header(_("Add printer extension"),
_("This workstation has printer extension disabled. You can't enable it while 'cn' is not present in entry. Possibly you are currently creating a new terminal template"),TRUE,TRUE);
- $this->is_account= false;
- return $display;
- }
-
- if ($this->is_account){
- if($this->type=="station"){
- $display= $this->show_header(_("Remove printer extension"),
- _("This workstation has printer extension enabled.You can disable it by clicking below."));
+ $this->is_account= false;
+ return $display;
}else{
- $display= $this->show_header(_("Remove printer extension"),
- _("This terminal has printer extension enabled. You can disable it by clicking below."));
+ $smarty->assign("is_terminal","false");
+ $skip = true;
}
- }else{
- if($this->type=="station"){
- $display= $this->show_header(_("Add printer extension"),
- _("This workstation has printer extension disabled. You can enable it by clicking below."));
+ }
+
+ if(!isset($skip)){
+ if (($this->is_account)){
+ if($this->type=="station"){
+ $display= $this->show_header(_("Remove printer extension"),
+ _("This workstation has printer extension enabled.You can disable it by clicking below."));
+ }else{
+ $display= $this->show_header(_("Remove printer extension"),
+ _("This terminal has printer extension enabled. You can disable it by clicking below."));
+ }
}else{
- $display= $this->show_header(_("Add printer extension"),
- _("This terminal has printer extension disabled. You can enable it by clicking below."));
- }
- return ($display);
+ if($this->type=="station"){
+ $display= $this->show_header(_("Add printer extension"),
+ _("This workstation has printer extension disabled. You can enable it by clicking below."));
+ }else{
+ $display= $this->show_header(_("Add printer extension"),
+ _("This terminal has printer extension disabled. You can enable it by clicking below."));
+ }
+ return ($display);
+ }
}
}
$smarty->assign($attr."ACL", chkacl($this->acl, $attr));
$smarty->assign("$attr", $this->$attr);
}
-
+
if(isset($_POST['AddUser'])){
$this->dialog = new selectUserToPrinterDialog($this->config, get_userinfo(),"AddUser");
}
}
}
-
+
if(isset($_POST['ClosePPD'])){
unset($this->dialog);
$this->dialog=NULL;