Code

Made NBD's visible
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Sep 2008 13:21:46 +0000 (13:21 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Sep 2008 13:21:46 +0000 (13:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12566 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc
gosa-plugins/goto/admin/systems/goto/class_terminalService.inc
gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
gosa-plugins/goto/admin/systems/goto/terminal.tpl

index 9fdf6fabeae2b5438450bfa54308c02c450c7ccb..6c05101828d9bd938b27f566d3516fcb0f3d33ef 100644 (file)
@@ -276,6 +276,19 @@ class termgeneric extends plugin
     /* Arrays */
     $smarty->assign("modes", $this->modes);
 
+    $tmp2 = array(); 
+    $tmp2['!']= _("Local swap");
+    foreach($this->config->data['SERVERS']['NBD'] as $server){
+      if($server != "default"){
+        $tmp2[$server]= $server;
+      }else{
+        if($this->member_of_ogroup){
+          $tmp2[$server]="["._("inherited")."]";
+        }
+      }
+    }
+  
+    $smarty->assign("swapservers",     $tmp2);
     $tmp2 = array(); 
     foreach($this->config->data['SERVERS']['NFS'] as $server){
       if($server != "default"){
index 7c574bf23dab6c1d6816d709e417b54de729d1d0..a43e53a7f85b491f3e9cd2ddbefa056bad1ccc96 100644 (file)
@@ -132,7 +132,7 @@ class termservice extends plugin
     }
 
     /* Additional values will be extracted from CONFIG_DIR.keyboardLayouts */
-    $this->XKbLayouts = array("de"=> "de","intl" =>"intl","us" =>"us");
+    $this->XKbLayouts = array("de"=> "de","en" =>"en", "es" => "es", "us" =>"us", "fr" => "fr");
     $this->XKbVariants= array("nodeadkeys"=>"nodeadkeys", "basic"=>"basic");
     $this->MouseTypes = array("ImPS/2"=>"ImPS/2","PS/2"=>"PS/2", "explorerps/2"=>"explorerps/2",
                               "Microsoft"=>"Microsoft","Logitech"=>"Logitech");
@@ -159,18 +159,18 @@ class termservice extends plugin
       }
     }
 
-    /* Terminal server methods 
-     */
+    /* Terminal server methods supported by LTSP */
     if($this->is_ogroup_member){
       $this->XMethods["default"]= _("inherited");
     }
     $this->XMethods["xdmcp"]  = _("XDMCP");
     $this->XMethods["ldm"]    = _("LDM");
-    $this->XMethods["rdp"]    = _("Windows RDP");
-    $this->XMethods["citrix"] = _("ICA client");
+    $this->XMethods["shell"]    = _("Shell");
+    $this->XMethods["telnet"]    = _("Telnet");
+    #$this->XMethods["rdp"]    = _("Windows RDP");
+    #$this->XMethods["citrix"] = _("ICA client");
 
-    /* Get selected gotoXdmcpServer 
-     */
+    /* Get selected gotoXdmcpServer */
     $this->selected_xdmcp_servers = array();
     if(isset($this->attrs['gotoXdmcpServer'])){
       for($i = 0 ; $i < $this->attrs['gotoXdmcpServer']['count'] ; $i++){
index e03b719e990b6c5065f5f3626db93d3f6d55bf0e..37d6fb8f6a3fe1e16fb8d508a3ee1a231b1cdad4 100644 (file)
@@ -26,7 +26,6 @@ class workservice extends plugin
   var $base= "";
   var $cn= "";
   var $orig_dn= "";
-  var $XMethods= array();
   var $XDrivers= array();
   var $XResolutions = array();
   var $MouseTypes= array();
@@ -107,7 +106,7 @@ class workservice extends plugin
                              "/dev/input/mice"  => "/dev/input/mice");
 
     /* Additional values will be extracted from CONFIG_DIR./keyboardLayouts */
-    $this->XKbLayouts= array ("de"=> "de","intl" =>"intl","us" =>"us");
+    $this->XKbLayouts = array("de"=> "de","en" =>"en", "es" => "es", "us" =>"us", "fr" => "fr");
     $this->XKbVariants= array ("nodeadkeys"=>"nodeadkeys", "basic"=>"basic");
 
     /* try to read additional keyboard layouts 
@@ -128,17 +127,6 @@ class workservice extends plugin
       }
     }
 
-    /* Initialize methods */
-    $this->XMethods["indirect"]= _("show chooser");
-    $this->XMethods["query"]= _("direct");
-    #$this->XMethods["squery"]= _("direct via ssh");
-    #$this->XMethods["nquery"]= _("direct via nx");
-    $this->XMethods["load"]= _("load balanced");
-    #$this->XMethods["sload"]= _("load balanced via ssh");
-    #$this->XMethods["nload"]= _("load balanced via nx");
-    $this->XMethods["rdp"]= _("Windows RDP");
-    $this->XMethods["citrix"]= _("ICA client");
-
     $this->orig_dn= $this->dn;
 
     /* Load phone hardware list
@@ -273,7 +261,7 @@ class workservice extends plugin
     }
 
     /* Arrays */ 
-    foreach(array("XMethods", "XDrivers", "XResolutions", "XColordepths",
+    foreach(array("XDrivers", "XResolutions", "XColordepths",
           "XKbModels", "XKbVariants",
           "MouseTypes", "MousePorts") as $val){
       $smarty->assign("$val", $this->$val);
index c8689a21e8020fe0e93cd749dc5675b023791c6a..d45a7c34e64b926d19112c2a65f59365962016c4 100644 (file)
@@ -87,7 +87,7 @@
      <td>
 {render acl=$gotoSwapServerACL}
       <select name="gotoSwapServer" id="gotoSwapServer" title="{t}Choose NFS filesystem to place swap files on{/t}">
-       {html_options options=$nfsservers selected=$gotoSwapServer_select}
+       {html_options options=$swapservers selected=$gotoSwapServer_select}
       </select>
 {/render}
      </td>