summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ea3967)
raw | patch | inline | side by side (parent: 2ea3967)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Oct 2008 13:20:16 +0000 (13:20 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Oct 2008 13:20:16 +0000 (13:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12630 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationService.inc | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/workstationService.tpl | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
index 6196913603eced98f9665ca62e60f15af43383c1..e7c5feeaa18db32451099f71aca8db835d0b7cb5 100644 (file)
class workservice extends plugin
{
var $gotoScannerEnable;
- var $gotoLpdEnable = array();
/* Generic terminal attributes */
var $gotoXMonitor= "";
/* attribute list for save action */
- var $attributes= array("gotoXMonitor","gotoLpdEnable",
- "gotoXDriver", "gotoXResolution", "gotoXColordepth",
+ var $attributes= array("gotoXMonitor", "gotoXDriver", "gotoXResolution", "gotoXColordepth",
"gotoXHsync", "gotoXVsync",
"gotoScannerEnable", "gotoScannerClients",
"gotoScannerBackend", "gotoXKbModel", "gotoXKbLayout", "gotoXKbVariant",
"1400x1050" => "1400x1050",
"1600x1200" => "1600x1200");
- /* Load gotoLpdEnable
- */
- $this->gotoLpdEnable = array();
- if(isset($this->attrs['gotoLpdEnable']['count'])){
- for($i = 0 ; $i < $this->attrs['gotoLpdEnable']['count']; $i ++){
- $this->gotoLpdEnable[] = $this->attrs['gotoLpdEnable'][$i];
- }
- }
-
if($this->config->get_cfg_value("resolutions") != ""){
$file = $this->config->get_cfg_value("resolutions");
}
}
-
- /**********
- gotoLpdEnable
- **********/
- if(isset($_POST['gotoLpdEnable_Close'])){
- $this->dialog = NULL;
- }
-
- if(isset($_POST['gotoLpdEnable_Ok'])){
- $this->dialog->save_object();
- $msgs = $this->dialog->check();
- if(count($msgs)) {
- msg_dialog::displayChecks($msgs);
- }else{
- $this->gotoLpdEnable = $this->dialog->save();
- $this->dialog = NULL;
- }
- }
-
- if(isset($_POST['gotoLpdEnable_Edit'])){
- $this->dialog = new gotoLpdEnable($this->config,$this->gotoLpdEnable,$this);
- }
-
- if($this->dialog instanceof plugin){
- $this->dialog->save_object();
- return($this->dialog->execute());
- }
-
-
- /**********
- Ende: gotoLpdEnable
- **********/
-
-
/* Show main page */
$smarty= get_smarty();
"gotoXVsync" => _("VSync"),
"AutoSync" => _("Use DDC"),
"gotoScannerEnable" => _("Scanner enabled"),
- "gotoLpdEnable" => _("Printer enabled"),
"gotoXKbModel" => _("Keyboard model"),
"gotoXKbLayout" => _("Keyboard layout"),
"gotoXKbVariant" => _("Keyboard variant"),
diff --git a/gosa-plugins/goto/admin/systems/goto/workstationService.tpl b/gosa-plugins/goto/admin/systems/goto/workstationService.tpl
index 82539c3af3b3d057a48e4b1270db472a026ba1f9..19d3896b16c85947967d8ee4445a566e718cd627 100644 (file)
{/render}
{t}Provide scan services{/t}
- <br>
- <br>
- <h2><img class="center" alt="" src="plugins/systems/images/select_printer.png"> {t}Printer{/t}</h2>
-
-{render acl=$gotoLpdEnableACL}
- <input type='submit' name='gotoLpdEnable_Edit' value='{msgPool type=editButton}'>
-{/render}
</td>
</tr>
</table>