]> git.tokkee.org Git - gosa.git/commitdiff

Code

Updated workService.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Oct 2008 10:59:51 +0000 (10:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Oct 2008 10:59:51 +0000 (10:59 +0000)
-Allow to save gotoLpdEnable

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12627 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl

index 4cb2df0c223a22b81cb0711e0db1672ed5baa178..3897dfe71e05bdf46e3cdfe2545ac5203469eecd 100644 (file)
@@ -37,7 +37,7 @@ class workservice extends plugin
 
 
   /* attribute list for save action */
-  var $attributes= array("gotoXMonitor",
+  var $attributes= array("gotoXMonitor","gotoLpdEnable",
       "gotoXDriver", "gotoXResolution", "gotoXColordepth",
       "gotoXHsync", "gotoXVsync",
       "gotoScannerEnable", "gotoScannerClients",
@@ -63,6 +63,15 @@ class workservice extends plugin
         "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");
 
index 48910843cd5ff3871fac9c429fdeb9d6b5620d44..7c29c989b4fd45ebb5ad41e946ec3a5f0f38825b 100644 (file)
@@ -3,7 +3,7 @@
 {else}
 <table style='width:100%;'>
        <tr>
-               <td style='width:50%;'>
+               <td style='width:55%;'>
                        <table>
                                <tr>
                                        <td>{t}Device{/t}&nbsp;#</td>