From: hickert Date: Thu, 18 May 2006 07:15:33 +0000 (+0000) Subject: default is now visible as _("inherited") X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=74ffe8fbac2344302c094984c89b8d2f962aa3eb;p=gosa.git default is now visible as _("inherited") git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3404 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index ba1cdf865..23497214a 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -35,18 +35,9 @@ class workservice extends plugin "i128", "i740", "i810", "imstt", "mga", "neomagic", "newport", "nsc", "nv", "r128", "radeon", "rendition", "s3", "s3virge", "savage", "siliconmotion", "sis", "tdfx", "tga", "trident", "tseng", "vesa", "vga", "vmware"); - var $XResolutions= array("default", "640x480", "800x600", "1024x768", "1152x864", "1280x1024", - "1400x1050", "1600x1200"); - var $XColordepths= array("default", "8", "15", "16", "24"); - var $XKbModels= array ("default", "btc9000", "chicony", "compaq", "dell", "dell101", "everex", - "flexpro", "geniuscomfy", "hp", "itouch", "jp106", "logicordless", - "logiinetnav", "logiinternet", "macintosh", "microsoft", - "microsoftpro", "omnikey101", "pc101", "pc102", "pc104", - "pc105", "rapidaccess", "rapidaccess2", "winbook"); - - /* Additional values will be extracted from /etc/gosa/keyboardLayouts */ - var $XKbLayouts= array ("default"=>"default","de"=> "de","intl" =>"intl","us" =>"us"); - var $XKbVariants= array ("default", "nodeadkeys", "basic"); + + var $XResolutions = array(); + var $MouseTypes= array("AUTO", "ImPS/2", "PS/2", "Microsoft", "Logitech"); var $MousePorts= array("AUTO", "/dev/ttyS0", "/dev/ttyS1", "/dev/psaux", "/dev/input/mice"); var $hardware_list= array(); @@ -62,10 +53,45 @@ class workservice extends plugin "gotoXMouseType", "gotoXMouseport", "goFonHardware"); var $objectclasses= array("GOhard"); + var $XColordepths =array(); + var $XKbModels =array(); + var $XKbLayouts =array(); + var $XKbVariants =array(); + function workservice ($config, $dn= NULL) { plugin::plugin ($config, $dn); + $this->XResolutions= array( + "default" => _("inherited") , + "640x480" => "640x480", + "800x600" => "800x600", + "1024x768" => "1024x768", + "1152x864" => "1152x864", + "1280x1024" => "1280x1024", + "1400x1050" => "1400x1050", + "1600x1200" => "1600x1200"); + + $this->XColordepths= array( + "default" => _("inherited"), + "8" => "8 " ._("bit"), + "15" => "15 "._("bit"), + "16" => "16 "._("bit"), + "24" => "24 "._("bit")); + + $this->XKbModels['default']= _("inherited"); + foreach(array ("btc9000", "chicony", "compaq", "dell", "dell101", "everex", + "flexpro", "geniuscomfy", "hp", "itouch", "jp106", "logicordless", + "logiinetnav", "logiinternet", "macintosh", "microsoft", + "microsoftpro", "omnikey101", "pc101", "pc102", "pc104", + "pc105", "rapidaccess", "rapidaccess2", "winbook") as $type){ + $this->XKbModels[$type] = $type; + } + + /* Additional values will be extracted from /etc/gosa/keyboardLayouts */ + $this->XKbLayouts= array ("default"=>_("inherited"),"de"=> "de","intl" =>"intl","us" =>"us"); + $this->XKbVariants= array ("default"=>_("inherited"), "nodeadkeys"=>"nodeadkeys", "basic"=>"basic"); + /* try to read additional keyboard layouts */ if(file_exists(CONFIG_DIR."/keyboardLayouts")){ @@ -83,7 +109,7 @@ class workservice extends plugin } } } - + /* Initialize methods */ $this->XMethods["default"]= _("default"); $this->XMethods["indirect"]= _("show chooser"); @@ -136,8 +162,8 @@ class workservice extends plugin function execute() { - /* Call parent execute */ - plugin::execute(); + /* Call parent execute */ + plugin::execute(); /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ @@ -197,8 +223,8 @@ class workservice extends plugin /* Phone stuff */ $smarty->assign ("goFonHardware", $this->goFonHardware); $hl= " - {html_options values=$XKbModels output=$XKbModels selected=$gotoXKbModel_select} + {html_options options=$XKbModels selected=$gotoXKbModel_select} @@ -15,7 +15,7 @@ @@ -23,7 +23,7 @@ @@ -94,7 +94,7 @@ @@ -102,7 +102,7 @@