summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0994592)
raw | patch | inline | side by side (parent: 0994592)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 May 2006 07:41:49 +0000 (07:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 May 2006 07:41:49 +0000 (07:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3407 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_terminalService.inc | patch | blob | history | |
plugins/admin/systems/terminalService.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc
index e1c3d6f9b8ff43e02f86d847c4cd03b0be22ed7c..bff691c792723618864c0d3036414ee1641def49 100644 (file)
"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");
- var $XKbLayouts= array ("default"=>"default","de"=> "de","intl" =>"intl","us" =>"us");
- var $XKbVariants= array ("default", "nodeadkeys", "basic");
+ var $XResolutions= array();
+ var $XColordepths= array();
+ var $XKbModels= array ();
+ var $XKbLayouts= array ();
+ var $XKbVariants= 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 $gotoScannerModels= array();
function termservice ($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")){
index c757803949141646bfa0763ab1d929c837987211..50d4645d36482a21a5fd6182fe44eb12be8ec16d 100644 (file)
<td><LABEL for="gotoXKbModel">{t}Model{/t}</LABEL></td>
<td>
<select id="gotoXKbModel" name="gotoXKbModel" title="{t}Choose keyboard model{/t}" {$gotoXKbModelACL}>
- {html_options values=$XKbModels output=$XKbModels selected=$gotoXKbModel_select}
+ {html_options options=$XKbModels selected=$gotoXKbModel_select}
</select>
</td>
</tr>
<td><LABEL for="gotoXKbLayout">{t}Layout{/t}</LABEL></td>
<td>
<select id="gotoXKbLayout" name="gotoXKbLayout" title="{t}Choose keyboard layout{/t}" {$gotoXKbLayoutACL}>
- {html_options values=$XKbLayoutKeys output=$XKbLayouts selected=$gotoXKbLayout_select}
+ {html_options options=$XKbLayouts selected=$gotoXKbLayout_select}
</select>
</td>
</tr>
<td><LABEL for="gotoXKbVariant">{t}Variant{/t}</LABEL></td>
<td>
<select id="gotoXKbVariant" name="gotoXKbVariant" title="{t}Choose keyboard variant{/t}" {$gotoXKbVariantACL}>
- {html_options values=$XKbVariants output=$XKbVariants selected=$gotoXKbVariant_select}
+ {html_options options=$XKbVariants selected=$gotoXKbVariant_select}
</select>
</td>
</tr>
<td><LABEL for="gotoXResolution">{t}Resolution{/t}</LABEL></td>
<td>
<select id="gotoXResolution" name="gotoXResolution" title="{t}Choose screen resolution used in graphic mode{/t}" {$gotoXResolutionACL}>
- {html_options values=$XResolutions output=$XResolutions selected=$gotoXResolution_select}
+ {html_options options=$XResolutions selected=$gotoXResolution_select}
</select>
</td>
</tr>
<td><LABEL for="gotoXColordepth">{t}Color depth{/t}</LABEL></td>
<td>
<select id="gotoXColordepth" name="gotoXColordepth" title="{t}Choose colordepth used in graphic mode{/t}" {$gotoXColordepthACL}>
- {html_options values=$XColordepths output=$XColordepths selected=$gotoXColordepth_select}
+ {html_options options=$XColordepths selected=$gotoXColordepth_select}
</select>
</td>
</tr>