summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c062a3)
raw | patch | inline | side by side (parent: 3c062a3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Nov 2006 11:41:17 +0000 (11:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Nov 2006 11:41:17 +0000 (11:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5107 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_environment.inc | patch | blob | history | |
plugins/personal/environment/environment.tpl | patch | blob | history |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 8b06f7af11dd07dcb8707ca18dbcaf64652c1220..57aa9f1391350b8590fa0d4cd75dad28eca5bf7a 100644 (file)
}
}
- if((isset($_POST['gotoPrinterDefault']))&&(isset($_POST['gotoPrinterSel']))&&(!empty($_POST['gotoPrinterSel']))){
- if ($this->gosaDefaultPrinter == $_POST['gotoPrinterSel'][0]){
- $this->gosaDefaultPrinter= "";
- } else {
- $this->gosaDefaultPrinter= $_POST['gotoPrinterSel'][0];
+ if(!$this->is_group){
+ if((isset($_POST['gotoPrinterDefault']))&&(isset($_POST['gotoPrinterSel']))&&(!empty($_POST['gotoPrinterSel']))){
+ if ($this->gosaDefaultPrinter == $_POST['gotoPrinterSel'][0]){
+ $this->gosaDefaultPrinter= "";
+ } else {
+ $this->gosaDefaultPrinter= $_POST['gotoPrinterSel'][0];
+ }
}
- }
+ }
$smarty->assign("gotoPrinter",$this->printOutPrinterDevices());
$smarty->assign("gotoPrinterKeys",array_flip($this->printOutPrinterDevices()));
$smarty->assign("gotoProfileQuotaACL"," disabled ");
}
+ $smarty->assign("is_group",$this->is_group);
+
/* Als smarty vars are set. Get smarty template and generate output */
$display.= $smarty->fetch(get_template_path('environment.tpl', TRUE,dirname(__FILE__)));
return($display);
diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl
index ee1d37ba56891c67f3b07dfefcdb973e3e74d509..6271a4dc0cb616e0cd7158d394e03853b0506063 100644 (file)
<input type="submit" {$gotoPrinterACL} name="gotoPrinterAdd" value="{t}Add{/t}">
<input type="submit" {$gotoPrinterACL} name="gotoPrinterDel" value="{t}Delete{/t}">
<input type="submit" {$gotoPrinterACL} name="gotoPrinterEdit" value="{t}Toggle admin{/t}">
+{if $is_group }
+ <input type="submit" {$gotoPrinterACL} name="gotoPrinterDefault" value="{t}Toggle default{/t}" disabled>
+{else}
<input type="submit" {$gotoPrinterACL} name="gotoPrinterDefault" value="{t}Toggle default{/t}">
+{/if}
</td>
</tr>
</table>