Code

Removed printer dialog from workstations
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Oct 2008 13:20:16 +0000 (13:20 +0000)
committercajus <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
gosa-plugins/goto/admin/systems/goto/workstationService.tpl

index 6196913603eced98f9665ca62e60f15af43383c1..e7c5feeaa18db32451099f71aca8db835d0b7cb5 100644 (file)
@@ -3,7 +3,6 @@
 class workservice extends plugin
 {
   var $gotoScannerEnable;
-  var $gotoLpdEnable = array();
 
   /* Generic terminal attributes */
   var $gotoXMonitor= "";
@@ -37,8 +36,7 @@ class workservice extends plugin
 
 
   /* 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",
@@ -63,15 +61,6 @@ 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");
 
@@ -262,40 +251,6 @@ class workservice extends plugin
       }
     }
 
-
-    /**********
-      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();
 
@@ -539,7 +494,6 @@ class workservice extends plugin
             "gotoXVsync"            => _("VSync"),
             "AutoSync"              => _("Use DDC"),
             "gotoScannerEnable"     => _("Scanner enabled"),
-            "gotoLpdEnable"         => _("Printer enabled"),
             "gotoXKbModel"          => _("Keyboard model"),
             "gotoXKbLayout"         => _("Keyboard layout"),
             "gotoXKbVariant"        => _("Keyboard variant"),
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>