summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0d0fbe0)
raw | patch | inline | side by side (parent: 0d0fbe0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Oct 2005 05:16:32 +0000 (05:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Oct 2005 05:16:32 +0000 (05:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1554 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationService.inc | [new file with mode: 0644] | patch | blob |
plugins/admin/systems/class_workstationStartup.inc | [new file with mode: 0644] | patch | blob |
plugins/admin/systems/service.tpl | [deleted file] | patch | blob | history |
plugins/admin/systems/terminalService.tpl | [new file with mode: 0644] | patch | blob |
plugins/admin/systems/workstationService.tpl | [new file with mode: 0644] | patch | blob |
plugins/admin/systems/workstationStartup.tpl | [new file with mode: 0644] | patch | blob |
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
--- /dev/null
@@ -0,0 +1,304 @@
+<?php
+
+class termservice extends plugin
+{
+ /* CLI vars */
+ var $cli_summary= "Manage terminal service aspects";
+ var $cli_description= "Some longer text\nfor help";
+ var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+
+ /* Generic terminal attributes */
+ var $gotoLpdEnable= FALSE;
+ var $gotoXMonitor= "";
+ var $gotoXMethod= "";
+ var $gotoXdmcpServer= "";
+ var $gotoFontPath= "";
+ var $gotoXDriver= "";
+ var $gotoXResolution= "";
+ var $gotoXColordepth= "";
+ var $gotoXHsync= "";
+ var $gotoXVsync= "";
+ var $gotoXKbModel= "";
+ var $gotoXKbLayout= "";
+ var $gotoXKbVariant= "";
+ var $gotoXMouseType= "";
+ var $gotoXMouseport= "";
+ var $gotoLpdServer= "";
+ var $gotoScannerEnable= "";
+ var $gotoScannerModel= "";
+ var $gotoScannerClients= "";
+ var $gotoScannerBackend= "";
+ var $goFonHardware= "automatic";
+
+ /* Needed values and lists */
+ var $ignore_account= TRUE;
+ var $base= "";
+ var $cn= "";
+ var $orig_dn= "";
+ var $XMethods= array();
+ var $XDrivers= array("unknown", "ati", "atimisc", "chips", "cirrus", "cyrix", "fbdev",
+ "i128", "i740", "i810", "imstt", "mga", "neomagic", "newport", "nsc", "nv",
+ "r128", "radeon", "rendition", "s3", "s3virge", "savage", "siliconmotion",
+ "sis", "tdfx", "tga", "trident", "tseng", "vesa", "vga");
+ 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", "de", "intl", "us");
+ var $XKbVariants= array ("default", "nodeadkeys", "basic");
+ 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();
+ var $hardware_list= array();
+ var $used_hardware= array();
+
+
+ /* attribute list for save action */
+ var $attributes= array("cn", "gotoLpdEnable", "gotoXMonitor", "gotoXMethod", "gotoXdmcpServer",
+ "gotoFontPath", "gotoXDriver", "gotoXResolution", "gotoXColordepth",
+ "gotoXHsync", "gotoXVsync", "gotoLpdEnable", "gotoLpdServer",
+ "gotoScannerEnable", "gotoScannerModel", "gotoScannerClients",
+ "gotoScannerBackend", "gotoXKbModel", "gotoXKbLayout", "gotoXKbVariant",
+ "gotoXMouseType", "gotoXMouseport", "goFonHardware");
+ var $objectclasses= array("GOhard");
+
+
+ function termservice ($config, $dn= NULL)
+ {
+ plugin::plugin ($config, $dn);
+
+ /* Load scanner models */
+ $fcontents = file ($this->config->basedir."/include/scanner.inc");
+ while (list ($line_num, $line) = each ($fcontents)) {
+ preg_match('/^(\w+) "([^"]+)" "([^"]+)" "([^"]+)"/', "$line", $matches);
+ $this->gotoScannerModels[$matches[2]." - ".$matches[3]]= $matches[1]."|".$matches[4];
+ }
+ ksort ($this->gotoScannerModels);
+
+ /* Initialize methods */
+ $this->XMethods["default"]= _("default");
+ $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 hardware list */
+ $ldap= $this->config->get_ldap_link();
+ $ldap->cd($this->config->current['BASE']);
+ $ldap->search("(objectClass=goFonHardware)", array('cn', 'description'));
+ while ($attrs= $ldap->fetch()){
+ $cn= $attrs['cn'][0];
+ if (isset($attrs['description'])){
+ $description= " - ".$attrs['description'][0];
+ } else {
+ $description= "";
+ }
+ $this->hardware_list[$cn]= "$cn$description";
+ }
+
+ /* Eventually colorize phones */
+ $ldap->cd($this->config->current['BASE']);
+ foreach ($this->hardware_list as $cn => $desc){
+ $ldap->search("(goFonHardware=$cn)", array('cn'));
+ if ($ldap->count() > 0){
+ $ldap->fetch();
+ if ($ldap->getDN() != $this->dn){
+ $this->used_hardware[$cn]= $ldap->getDN();
+ }
+ }
+ }
+
+ $this->hardware_list["automatic"]= _("automatic");
+ ksort($this->hardware_list);
+ }
+
+ function execute()
+ {
+ /* Do we need to flip is_account state? */
+ if (isset($_POST['modify_state'])){
+ $this->is_account= !$this->is_account;
+ }
+
+ /* Do we represent a valid terminal? */
+ if (!$this->is_account && $this->parent == NULL){
+ $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
+ _("This 'dn' has no terminal features.")."</b>";
+ return ($display);
+ }
+
+ /* Show main page */
+ $smarty= get_smarty();
+
+ /* Arrays */
+ foreach(array("XMethods", "XDrivers", "XResolutions", "XColordepths",
+ "gotoScannerModels", "XKbModels", "XKbLayouts", "XKbVariants",
+ "MouseTypes", "MousePorts") as $val){
+ $smarty->assign("$val", $this->$val);
+ }
+ $smarty->assign("xdmcpservers", $this->config->data['SERVERS']['TERMINAL']);
+ $smarty->assign("fontservers", $this->config->data['SERVERS']['FONT']);
+ $smarty->assign("nfsservers", $this->config->data['SERVERS']['NFS']);
+ $smarty->assign("nfsservers", $this->config->data['SERVERS']['NFS']);
+
+ /* Variables - select */
+ foreach(array("gotoXMethod", "gotoXdmcpServer", "gotoFontPath",
+ "gotoXDriver", "gotoXResolution", "gotoXColordepth",
+ "gotoLpdServer", "gotoScannerModel", "gotoXKbModel", "gotoXKbLayout",
+ "gotoXKbVariant", "gotoXMouseType", "gotoXMouseport") as $val){
+
+ $smarty->assign($val."_select", $this->$val);
+ $smarty->assign($val."ACL", chkacl($this->acl, $val));
+ }
+
+ /* Variables */
+ foreach(array("gotoXHsync", "gotoXVsync") as $val){
+ $smarty->assign($val, $this->$val);
+ $smarty->assign($val."ACL", chkacl($this->acl, $val));
+ }
+ $smarty->assign("staticAddress", "");
+
+ /* Checkboxes */
+ foreach(array("gotoLpdEnable", "gotoScannerEnable") as $val){
+ if ($this->$val == TRUE) {
+ $smarty->assign("$val", "checked");
+ } else {
+ $smarty->assign("$val", "");
+ }
+ $smarty->assign($val."ACL", chkacl($this->acl, "gotoLpdEnable"));
+ }
+
+ /* Phone stuff */
+ $smarty->assign ("goFonHardware", $this->goFonHardware);
+ $hl= "<select size=\"1\" name=\"goFonHardware\" title=\"".
+ _("Choose the phone located at the current terminal")."\" ".
+ chkacl($this->acl, "goFonHardware").">\n";
+ foreach ($this->hardware_list as $cn => $description){
+ if ($cn == $this->goFonHardware){
+ $selected= "selected";
+ } else {
+ $selected= "";
+ }
+ if (isset($this->used_hardware[$cn])){
+ $color= "style=\"color:#A0A0A0\"";
+ } else {
+ $color= "";
+ }
+ $hl.= " <option $color label=\"$cn\" value=\"$cn\" $selected>$description</option>\n";
+ }
+ $hl.= "</select>\n";
+ $smarty->assign ("hardware_list", $hl);
+ $smarty->assign ("gotoXMonitor", $this->gotoXMonitor);
+
+ /* Show main page */
+ return($smarty->fetch (get_template_path('service.tpl', TRUE)));
+ }
+
+ function remove_from_parent()
+ {
+ $ldap= $this->config->get_ldap_link();
+ $ldap->rmdir($this->dn);
+ show_ldap_error($ldap->get_error());
+ $this->handle_post_events("remove");
+ }
+
+
+ /* Save data to object */
+ function save_object()
+ {
+ plugin::save_object();
+
+ /* Save checkbox state */
+ if (isset ($_POST['gotoXMethod'])){
+ foreach (array("gotoLpdEnable", "gotoScannerEnable") as $val){
+
+ if (!isset ($_POST["$val"]) && chkacl ($this->acl, "$val") == ""){
+ $this->$val= FALSE;
+ } else {
+ $this->$val= TRUE;
+ }
+ }
+ }
+ }
+
+
+ /* Check supplied data */
+ function check()
+ {
+ $message= array();
+
+ /* Default entries can use blank hsync/vsync entries */
+ if ($this->dn != "" && $this->cn != "default" && $this->cn != "wdefault"){
+
+ /* Check vsync for correct usage */
+ $val= preg_replace ("/\s/", "", $this->gotoXVsync);
+ if (!preg_match ("/^\d+(\.\d+)?(\-\d+(\.\d+)?)?$/", $val)
+ && chkacl ($this->acl, "gotoXVsync") == ""){
+
+ $message[]= _("Please specify a valid VSync range.");
+ } elseif (chkacl ($this->acl, "gotoXVsync") == ""){
+ list($v1,$v2)= split ("-", $val);
+ if ($v2 != ""){
+ if ($v1 > $v2){
+ $message[]= _("Please specify a valid VSync range.");
+ }
+ }
+ }
+
+ /* Check hsync for correct usage */
+ $val= preg_replace ("/\s/", "", $this->gotoXHsync);
+ if (!preg_match ("/^\d+(\.\d+)?(\-\d+(\.\d+)?)?$/", $val)
+ && chkacl ($this->acl, "gotoXHsync") == ""){
+
+ $message[]= _("Please specify a valid HSync range.");
+ } elseif (chkacl ($this->acl, "gotoXHsync") == ""){
+ list($v1,$v2)= split ("-", $val);
+ if ($v2 != ""){
+ if ($v1 > $v2){
+ $message[]= _("Please specify a valid HSync range.");
+ }
+ }
+ }
+ }
+ return ($message);
+ }
+
+
+ /* Save to LDAP */
+ function save()
+ {
+ plugin::save();
+
+ /* Strip out 'default' values */
+ foreach(array("gotoXMethod", "gotoXdmcpServer", "gotoFontPath",
+ "gotoXDriver", "gotoXResolution", "gotoXColordepth",
+ "gotoLpdServer", "gotoScannerModel", "gotoXKbModel", "gotoXKbLayout",
+ "gotoXKbVariant", "gotoXMouseType", "gotoXMouseport") as $val){
+
+ if ($this->attrs[$val] == "default"){
+ $this->attrs[$val]= array();
+ }
+ }
+
+ /* Write back to ldap */
+ $ldap= $this->config->get_ldap_link();
+ $ldap->cd($this->dn);
+ $ldap->modify($this->attrs);
+ show_ldap_error($ldap->get_error());
+ $this->handle_post_events("modify");
+ }
+
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
--- /dev/null
@@ -0,0 +1,293 @@
+<?php
+class termstartup extends plugin
+{
+ /* CLI vars */
+ var $cli_summary= "Manage terminal startup options";
+ var $cli_description= "Some longer text\nfor help";
+ var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+
+ /* Generic terminal attributes */
+ var $bootmode= "G";
+ var $goLdapServerList= array("default");
+ var $gotoBootKernel= "default";
+ var $gotoKernelParameters= "";
+ var $gotoLdapServer= "";
+ var $gotoModules= array();
+ var $gotoAutoFs= array();
+ var $gotoFilesystem= array();
+ var $gotoTerminalPath= "";
+
+ /* attribute list for save action */
+ var $attributes= array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters");
+ var $objectclasses= array("GOhard");
+
+ /* Helper */
+ var $customParameters= "";
+ var $orig_dn= "";
+ var $ignore_account= TRUE;
+
+ function termstartup ($config, $dn= NULL)
+ {
+ plugin::plugin ($config, $dn);
+
+ /* Get arrays */
+ foreach (array("gotoModules", "gotoAutoFs", "gotoFilesystem") as $val){
+ if (isset($this->attrs["$val"]["count"])){
+ for ($i= 0; $i<$this->attrs["count"]; $i++){
+ if (isset($this->attrs["$val"][$i])){
+ array_push($this->$val, $this->attrs["$val"][$i]);
+ }
+ }
+ }
+ sort ($this->$val);
+ $this->$val= array_unique($this->$val);
+ }
+
+ /* Parse Kernel Parameters to decide what boot mode is enabled */
+ if (preg_match("/ splash=silent/", $this->gotoKernelParameters)){
+ $this->bootmode= "G";
+ } elseif (preg_match("/ debug/", $this->gotoKernelParameters)){
+ $this->bootmode= "D";
+ } elseif ($this->gotoKernelParameters == "") {
+ $this->bootmode= "G";
+ } else {
+ $this->bootmode= "T";
+ }
+ if (preg_match("/ o /", $this->gotoKernelParameters)){
+ $this->customParameters= preg_replace ("/^.* o /", "", $this->gotoKernelParameters);
+ } else {
+ $this->customParameters= "";
+ }
+
+ $this->orig_dn= $this->dn;
+ }
+
+ function execute()
+ {
+ /* Do we need to flip is_account state? */
+ if (isset($_POST['modify_state'])){
+ $this->is_account= !$this->is_account;
+ }
+
+ /* Do we represent a valid terminal? */
+ if (!$this->is_account && $this->parent == NULL){
+ $display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
+ _("This 'dn' has no terminal features.")."</b>";
+ return ($display);
+ }
+
+ /* Add module */
+ if (isset ($_POST['add_module'])){
+ if ($_POST['module'] != "" && chkacl ($this->acl, "gotoModule") == ""){
+ $this->add_list ($this->gotoModules, $_POST['module']);
+ }
+ }
+
+ /* Delete module */
+ if (isset ($_POST['delete_module'])){
+ if (count($_POST['modules_list']) && chkacl ($this->acl, "gotoModule") == ""){
+ $this->del_list ($this->gotoModules, $_POST['modules_list']);
+ }
+ }
+
+ /* Add autofs */
+ if (isset ($_POST['add_autofs'])){
+ if ($_POST['autofs'] != "" && chkacl ($this->acl, "gotoAutoFs") == ""){
+ $this->add_list ($this->gotoAutoFs, $_POST['autofs']);
+ }
+ }
+
+ /* Delete autofs */
+ if (isset ($_POST['delete_autofs'])){
+ if (count($_POST['autofs_list']) && chkacl ($this->acl, "gotoAutoFs") == ""){
+ $this->del_list ($this->gotoAutoFs, $_POST['autofs_list']);
+ }
+ }
+
+ /* Add filesystem */
+ if (isset ($_POST['add_fs'])){
+ if ($_POST['fstab'] != "" && chkacl ($this->acl, "gotoFilesystem") == ""){
+ $this->add_list ($this->gotoFilesystem, $_POST['fstab']);
+ }
+ }
+
+ /* Delete filesystem */
+ if (isset ($_POST['delete_fs'])){
+ if (count($_POST['fstab_list']) && chkacl ($this->acl, "gotoFilesystem") == ""){
+ $this->del_list ($this->gotoFilesystem, $_POST['fstab_list']);
+ }
+ }
+
+ /* Show main page */
+ $smarty= get_smarty();
+
+ /* Arrays */
+ $smarty->assign("ldapservers", $this->config->data['SERVERS']['LDAP']);
+ $smarty->assign("gotoLdapServer_select", $this->gotoLdapServer);
+ $smarty->assign("gotoLdapServerACL", chkacl($this->acl, "gotoLdapServer"));
+ foreach (array("gotoModules", "gotoAutoFs", "gotoFilesystem") as $val){
+ $smarty->assign("$val", $this->$val);
+ }
+
+ /* Values */
+ foreach(array("gotoBootKernel", "customParameters") as $val){
+ $smarty->assign($val, $this->$val);
+ $smarty->assign($val."ACL", chkacl($this->acl, $val));
+ }
+
+ /* Radio button group */
+ if (preg_match("/G/", $this->bootmode)) {
+ $smarty->assign("graphicalbootup", "checked");
+ } else {
+ $smarty->assign("graphicalbootup", "");
+ }
+ if (preg_match("/T/", $this->bootmode)) {
+ $smarty->assign("textbootup", "checked");
+ } else {
+ $smarty->assign("textbootup", "");
+ }
+ if (preg_match("/D/", $this->bootmode)) {
+ $smarty->assign("debugbootup", "checked");
+ } else {
+ $smarty->assign("debugbootup", "");
+ }
+
+ /* ACL's */
+ foreach (array("gotoKernelParameters", "gotoModules", "gotoFilesystem") as $value){
+ $smarty->assign($value."ACL", chkacl($this->acl, "$value"));
+ }
+
+ /* Show main page */
+ return($smarty->fetch (get_template_path('startup.tpl', TRUE)));
+ }
+
+ function remove_from_parent()
+ {
+ $ldap= $this->config->get_ldap_link();
+ $ldap->rmdir($this->dn);
+ show_ldap_error($ldap->get_error());
+ $this->handle_post_events("remove");
+ }
+
+
+ /* Save data to object */
+ function save_object()
+ {
+ plugin::save_object();
+
+ /* Save group radio buttons */
+ if (chkacl ($this->acl, "bootmode") == "" && isset($_POST["bootmode"])){
+ $this->bootmode= $_POST["bootmode"];
+ }
+
+ /* Save kernel parameters */
+ if (chkacl ($this->acl, "gotoKernelParameters") == "" && isset($_POST["customParameters"])){
+ $this->customParameters= $_POST["customParameters"];
+ }
+ }
+
+
+ /* Save to LDAP */
+ function save()
+ {
+ /* Find proper terminal path for tftp configuration
+ FIXME: This is suboptimal when the default has changed to
+ another location! */
+ if ($this->gotoTerminalPath == "default"){
+ $ldap= $this->config->get_ldap_link();
+
+ /* Strip relevant part from dn, keep trailing ',' */
+ $tmp= preg_replace("/^cn=[^,]+,ou=terminals,ou=systems,/i", "", $this->dn);
+ $tmp= preg_replace("/".$this->config->current['BASE']."$/i", "", $tmp);
+
+ /* Walk from top to base and try to load default values for
+ 'gotoTerminalPath'. Abort when an entry is found. */
+ while (TRUE){
+ $tmp= preg_replace ("/^[^,]+,/", "", $tmp);
+
+ $ldap->cat("cn=default,ou=terminals,ou=systems,$tmp".
+ $this->config->current['BASE']);
+ $attrs= $ldap->fetch();
+ if (isset($attrs['gotoTerminalPath'])){
+ $this->gotoTerminalPath= $attrs['gotoTerminalPath'][0];
+ break;
+ }
+
+ /* Nothing left? */
+ if ($tmp == ""){
+ break;
+ }
+ }
+ }
+
+ /* Add semi automatic values */
+ // FIXME: LDAP Server may not be set here...
+ $this->gotoKernelParameters= "root=/dev/nfs nfsroot=".
+ $this->gotoTerminalPath.
+ ",ro,hard,nolock,fg,rsize=8192 ".
+ "ip=::::::dhcp LDAP=".$this->gotoLdapServer;
+
+ switch ($this->bootmode){
+ case "D":
+ $this->gotoKernelParameters.= " debug";
+ break;
+ case "G":
+ $this->gotoKernelParameters.= " splash=silent";
+ break;
+ }
+ if ($this->customParameters != ""){
+ $this->gotoKernelParameters.= " o ".$this->customParameters;
+ }
+
+ plugin::save();
+
+ /* Add missing arrays */
+ foreach (array("gotoFilesystem", "gotoAutoFs", "gotoModules") as $val){
+ if (isset ($this->$val) && count ($this->$val) != 0){
+
+ $this->attrs["$val"]= array_unique($this->$val);
+ }
+ if(!isset($this->attrs["$val"])) $this->attrs["$val"]=array();
+ }
+
+ /* Strip out 'default' values */
+ if ($this->attrs['gotoLdapServer'] == "default"){
+ unset ($this->attrs['gotoLdapServer']);
+ }
+
+ /* Write back to ldap */
+ $ldap= $this->config->get_ldap_link();
+ $ldap->cd($this->dn);
+ $ldap->modify($this->attrs);
+ show_ldap_error($ldap->get_error());
+ $this->handle_post_events("modify");
+ }
+
+ /* Add value to array, check if unique */
+ function add_list (&$array, $value)
+ {
+ if ($value != ""){
+ $array[]= $value;
+ sort($array);
+ array_unique ($array);
+ }
+ }
+
+
+ /* Delete value to array, check if unique */
+ function del_list (&$array, $list)
+ {
+ $tmp= array();
+ foreach ($array as $mod){
+ if (!in_array($mod, $list)){
+ $tmp[]= $mod;
+ }
+ }
+ $array= $tmp;
+ }
+
+
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/plugins/admin/systems/service.tpl b/plugins/admin/systems/service.tpl
+++ /dev/null
@@ -1,223 +0,0 @@
-<table style="width:100%;" summary="">
- <tr>
- <td style="width:33%; vertical-align:top;">
- <h2><img alt="" align="middle" src="images/keyboard.png"> {t}Keyboard{/t}</h2>
- <table summary="">
- <tr>
- <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}
- </select>
- </td>
- </tr>
- <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=$XKbLayouts output=$XKbLayouts selected=$gotoXKbLayout_select}
- </select>
- </td>
- </tr>
- <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}
- </select>
- </td>
- </tr>
- </table>
-
- </td>
-
- <td style="border-left:1px solid #A0A0A0">
-
- </td>
-
- <td style="vertical-align:top;width:32%">
- <h2><img alt="" align="middle" src="images/mouse.png"> {t}Mouse{/t}</h2>
- <table summary="">
- <tr>
- <td><LABEL for="gotoXMouseType">{t}Type{/t}</LABEL></td>
- <td>
- <select name="gotoXMouseType" id="gotoXMouseType" title="{t}Choose mouse type{/t}" {$gotoXMouseTypeACL}>
- {html_options values=$MouseTypes output=$MouseTypes selected=$gotoXMouseType_select}
- </select>
- </td>
- </tr>
- <tr>
- <td><LABEL for="gotoXMouseport">{t}Port{/t}</LABEL></td>
- <td>
- <select id="gotoXMouseport" name="gotoXMouseport" title="{t}Choose mouse port{/t}" {$gotoXMouseportACL}>
- {html_options values=$MousePorts output=$MousePorts selected=$gotoXMouseport_select}
- </select>
- </td>
- </tr>
- </table>
-
- </td>
-
- <td style="border-left:1px solid #A0A0A0">
-
- </td>
-
- <td style="vertical-align:top;width:33%">
- <h2><img alt="" align="middle" src="images/select_phone.png"> {t}Telephone hardware{/t}</h2>
- <table style="width:100%" border=0 summary="">
- <tr>
- <td>{t}Telephone{/t}
- {$hardware_list}
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
-</table>
-
-<table style="width:100%;" summary="">
- <tr><td colspan=5><p class="plugbottom" style="text-align:left;"></p></td></tr>
- <tr>
- <td style="width:33%;vertical-align:top;">
- <h2><img alt="" align="middle" src="images/hardware.png"> {t}Graphic device{/t}</h2>
- <table summary="">
- <tr>
- <td><LABEL for="gotoXDriver">{t}Driver{/t}</LABEL></td>
- <td>
- <select id="gotoXDriver" name="gotoXDriver" title="{t}Choose graphic driver that is needed by the installed graphic board{/t}" {$gotoXDriverACL}>
- {html_options values=$XDrivers output=$XDrivers selected=$gotoXDriver_select}
- </select>
- </td>
- </tr>
- <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}
- </select>
- </td>
- </tr>
- <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}
- </select>
- </td>
- </tr>
- </table>
- </td>
-
- <td style="border-left:1px solid #A0A0A0">
-
- </td>
-
- <td style="width:32%; vertical-align:top;">
- <h2><img alt="" align="middle" src="images/display.png"> {t}Display device{/t}</h2>
- <table summary="">
- <tr>
- <td>{t}Type{/t}</td>
- <td>{$gotoXMonitor}</td>
- </tr>
- <tr>
- <td><LABEL for="gotoXHsync">{t}HSync{/t}</LABEL></td>
- <td><input id="gotoXHsync" name="gotoXHsync" size=10 maxlength=60 {$gotoXHsyncACL}
- value="{$gotoXHsync}" title="{t}Horizontal refresh frequency for installed monitor{/t}"> kHz</td>
- </tr>
- <tr>
- <td><LABEL for="gotoXVsync">{t}VSync{/t}</LABEL></td>
- <td><input id="gotoXVsync" name="gotoXVsync" size=10 maxlength=60 {$gotoXVsyncACL}
- value="{$gotoXVsync}" title="{t}Vertical refresh frequency for installed monitor{/t}"> Hz</td>
- </tr>
- </table>
-
- </td>
- <td style="border-left:1px solid #A0A0A0">
-
- </td>
-
- <td style="width:33%; vertical-align:top;">
- <h2><img alt="" align="middle" src="images/server.png"> {t}Remote desktop{/t}</h2>
- <table summary="">
- <tr>
- <td></td>
- <td><LABEL for="gotoXMethod">{t}Connect method{/t}</LABEL></td>
- <td>
- <select name="gotoXMethod" id="gotoXMethod" title="{t}Choose method to connect to terminal server{/t}" {$gotoXMethodACL}>
- {html_options options=$XMethods selected=$gotoXMethod_select}
- </select>
- </td>
- </tr>
- <tr>
- <td></td>
- <td><LABEL for="gotoXdmcpServer">{t}Terminal server{/t}</LABEL></td>
- <td>
- <select id="gotoXdmcpServer" name="gotoXdmcpServer" title="{t}Select specific terminal server to use{/t}" {$gotoXdmcpServerACL}>
- {html_options values=$xdmcpservers output=$xdmcpservers selected=$gotoXdmcpServer_select}
- </select>
- </td>
- </tr>
- <tr>
- <td></td>
- <td><LABEL for="gotoFontPath">{t}Font server{/t}</LABEL></td>
- <td>
- <select name="gotoFontPath" id="gotoFontPath" title="{t}Select specific font server to use{/t}" {$gotoFontPathACL}>
- {html_options values=$fontservers output=$fontservers selected=$gotoFontPath_select}
- </select>
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
-</table>
-
-<table style="width:100%;" summary="">
- <tr><td colspan=3><p class="plugbottom" style="margin-top:0px;"></p></td></tr>
-
- <tr>
- <td style="width:50%; vertical-align:top;">
- <h2><img alt="" align="middle" src="images/printer.png"><LABEL for="gotoLpdEnable"> {t}Print device{/t}</LABEL></h2>
- <input id="gotoLpdEnable" type=checkbox name="gotoLpdEnable" value="1" {$gotoLpdEnable} {$gotoLpdEnableACL} title="{t}Select to start IPP based printing service on terminal{/t}">
- {t}Provide print services{/t}
- <br>
-
- <table summary="">
- <tr>
- <td><div style="width:20px;"></div></td>
- <td><LABEL for="gotoLpdServer">{t}Spool server{/t}</LABEL></td>
- <td>
- <select name="gotoLpdServer" id="gotoLpdServer" title="{t}Select NFS filesystem to place spool files on{/t}" {$gotoLpdServerACL}>
- {html_options values=$nfsservers output=$nfsservers selected=$gotoLpdServer_select}
- </select>
- </td>
- </tr>
- </table>
-
- <td style="border-left:1px solid #A0A0A0">
-
- </td>
-
- <td style="vertical-align:top;">
- <h2><img alt="" align="middle" src="images/scanner.png"> {t}Scan device{/t}</h2>
- <input type=checkbox name="gotoScannerEnable" value="1" title="{t}Select to start SANE scan service on terminal{/t}" {$gotoScannerEnable} {$gotoScannerEnableACL}>
- {t}Provide scan services{/t}
- <br>
- <table summary="">
- <tr>
- <td><div style="width:20px;"></div></td>
- <td><LABEL for="gotoScannerModel">{t}Model{/t}</LABEL></td>
- <td>
- <select name="gotoScannerModel" id="gotoScannerModel" title="{t}Select scanner driver to use{/t}" {$gotoScannerEnableACL}>
- {html_options values=$gotoScannerModels output=$gotoScannerModels selected=$gotoScannerModel_select}
- </select>
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
-</table>
-
-<div style="height:40px;"></div>
diff --git a/plugins/admin/systems/terminalService.tpl b/plugins/admin/systems/terminalService.tpl
--- /dev/null
@@ -0,0 +1,223 @@
+<table style="width:100%;" summary="">
+ <tr>
+ <td style="width:33%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/keyboard.png"> {t}Keyboard{/t}</h2>
+ <table summary="">
+ <tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ <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=$XKbLayouts output=$XKbLayouts selected=$gotoXKbLayout_select}
+ </select>
+ </td>
+ </tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;width:32%">
+ <h2><img alt="" align="middle" src="images/mouse.png"> {t}Mouse{/t}</h2>
+ <table summary="">
+ <tr>
+ <td><LABEL for="gotoXMouseType">{t}Type{/t}</LABEL></td>
+ <td>
+ <select name="gotoXMouseType" id="gotoXMouseType" title="{t}Choose mouse type{/t}" {$gotoXMouseTypeACL}>
+ {html_options values=$MouseTypes output=$MouseTypes selected=$gotoXMouseType_select}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoXMouseport">{t}Port{/t}</LABEL></td>
+ <td>
+ <select id="gotoXMouseport" name="gotoXMouseport" title="{t}Choose mouse port{/t}" {$gotoXMouseportACL}>
+ {html_options values=$MousePorts output=$MousePorts selected=$gotoXMouseport_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;width:33%">
+ <h2><img alt="" align="middle" src="images/select_phone.png"> {t}Telephone hardware{/t}</h2>
+ <table style="width:100%" border=0 summary="">
+ <tr>
+ <td>{t}Telephone{/t}
+ {$hardware_list}
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+</table>
+
+<table style="width:100%;" summary="">
+ <tr><td colspan=5><p class="plugbottom" style="text-align:left;"></p></td></tr>
+ <tr>
+ <td style="width:33%;vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/hardware.png"> {t}Graphic device{/t}</h2>
+ <table summary="">
+ <tr>
+ <td><LABEL for="gotoXDriver">{t}Driver{/t}</LABEL></td>
+ <td>
+ <select id="gotoXDriver" name="gotoXDriver" title="{t}Choose graphic driver that is needed by the installed graphic board{/t}" {$gotoXDriverACL}>
+ {html_options values=$XDrivers output=$XDrivers selected=$gotoXDriver_select}
+ </select>
+ </td>
+ </tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="width:32%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/display.png"> {t}Display device{/t}</h2>
+ <table summary="">
+ <tr>
+ <td>{t}Type{/t}</td>
+ <td>{$gotoXMonitor}</td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoXHsync">{t}HSync{/t}</LABEL></td>
+ <td><input id="gotoXHsync" name="gotoXHsync" size=10 maxlength=60 {$gotoXHsyncACL}
+ value="{$gotoXHsync}" title="{t}Horizontal refresh frequency for installed monitor{/t}"> kHz</td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoXVsync">{t}VSync{/t}</LABEL></td>
+ <td><input id="gotoXVsync" name="gotoXVsync" size=10 maxlength=60 {$gotoXVsyncACL}
+ value="{$gotoXVsync}" title="{t}Vertical refresh frequency for installed monitor{/t}"> Hz</td>
+ </tr>
+ </table>
+
+ </td>
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="width:33%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/server.png"> {t}Remote desktop{/t}</h2>
+ <table summary="">
+ <tr>
+ <td></td>
+ <td><LABEL for="gotoXMethod">{t}Connect method{/t}</LABEL></td>
+ <td>
+ <select name="gotoXMethod" id="gotoXMethod" title="{t}Choose method to connect to terminal server{/t}" {$gotoXMethodACL}>
+ {html_options options=$XMethods selected=$gotoXMethod_select}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><LABEL for="gotoXdmcpServer">{t}Terminal server{/t}</LABEL></td>
+ <td>
+ <select id="gotoXdmcpServer" name="gotoXdmcpServer" title="{t}Select specific terminal server to use{/t}" {$gotoXdmcpServerACL}>
+ {html_options values=$xdmcpservers output=$xdmcpservers selected=$gotoXdmcpServer_select}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><LABEL for="gotoFontPath">{t}Font server{/t}</LABEL></td>
+ <td>
+ <select name="gotoFontPath" id="gotoFontPath" title="{t}Select specific font server to use{/t}" {$gotoFontPathACL}>
+ {html_options values=$fontservers output=$fontservers selected=$gotoFontPath_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+</table>
+
+<table style="width:100%;" summary="">
+ <tr><td colspan=3><p class="plugbottom" style="margin-top:0px;"></p></td></tr>
+
+ <tr>
+ <td style="width:50%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/printer.png"><LABEL for="gotoLpdEnable"> {t}Print device{/t}</LABEL></h2>
+ <input id="gotoLpdEnable" type=checkbox name="gotoLpdEnable" value="1" {$gotoLpdEnable} {$gotoLpdEnableACL} title="{t}Select to start IPP based printing service on terminal{/t}">
+ {t}Provide print services{/t}
+ <br>
+
+ <table summary="">
+ <tr>
+ <td><div style="width:20px;"></div></td>
+ <td><LABEL for="gotoLpdServer">{t}Spool server{/t}</LABEL></td>
+ <td>
+ <select name="gotoLpdServer" id="gotoLpdServer" title="{t}Select NFS filesystem to place spool files on{/t}" {$gotoLpdServerACL}>
+ {html_options values=$nfsservers output=$nfsservers selected=$gotoLpdServer_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/scanner.png"> {t}Scan device{/t}</h2>
+ <input type=checkbox name="gotoScannerEnable" value="1" title="{t}Select to start SANE scan service on terminal{/t}" {$gotoScannerEnable} {$gotoScannerEnableACL}>
+ {t}Provide scan services{/t}
+ <br>
+ <table summary="">
+ <tr>
+ <td><div style="width:20px;"></div></td>
+ <td><LABEL for="gotoScannerModel">{t}Model{/t}</LABEL></td>
+ <td>
+ <select name="gotoScannerModel" id="gotoScannerModel" title="{t}Select scanner driver to use{/t}" {$gotoScannerEnableACL}>
+ {html_options values=$gotoScannerModels output=$gotoScannerModels selected=$gotoScannerModel_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+</table>
+
+<div style="height:40px;"></div>
diff --git a/plugins/admin/systems/workstationService.tpl b/plugins/admin/systems/workstationService.tpl
--- /dev/null
@@ -0,0 +1,223 @@
+<table style="width:100%;" summary="">
+ <tr>
+ <td style="width:33%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/keyboard.png"> {t}Keyboard{/t}</h2>
+ <table summary="">
+ <tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ <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=$XKbLayouts output=$XKbLayouts selected=$gotoXKbLayout_select}
+ </select>
+ </td>
+ </tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;width:32%">
+ <h2><img alt="" align="middle" src="images/mouse.png"> {t}Mouse{/t}</h2>
+ <table summary="">
+ <tr>
+ <td><LABEL for="gotoXMouseType">{t}Type{/t}</LABEL></td>
+ <td>
+ <select name="gotoXMouseType" id="gotoXMouseType" title="{t}Choose mouse type{/t}" {$gotoXMouseTypeACL}>
+ {html_options values=$MouseTypes output=$MouseTypes selected=$gotoXMouseType_select}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoXMouseport">{t}Port{/t}</LABEL></td>
+ <td>
+ <select id="gotoXMouseport" name="gotoXMouseport" title="{t}Choose mouse port{/t}" {$gotoXMouseportACL}>
+ {html_options values=$MousePorts output=$MousePorts selected=$gotoXMouseport_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;width:33%">
+ <h2><img alt="" align="middle" src="images/select_phone.png"> {t}Telephone hardware{/t}</h2>
+ <table style="width:100%" border=0 summary="">
+ <tr>
+ <td>{t}Telephone{/t}
+ {$hardware_list}
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+</table>
+
+<table style="width:100%;" summary="">
+ <tr><td colspan=5><p class="plugbottom" style="text-align:left;"></p></td></tr>
+ <tr>
+ <td style="width:33%;vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/hardware.png"> {t}Graphic device{/t}</h2>
+ <table summary="">
+ <tr>
+ <td><LABEL for="gotoXDriver">{t}Driver{/t}</LABEL></td>
+ <td>
+ <select id="gotoXDriver" name="gotoXDriver" title="{t}Choose graphic driver that is needed by the installed graphic board{/t}" {$gotoXDriverACL}>
+ {html_options values=$XDrivers output=$XDrivers selected=$gotoXDriver_select}
+ </select>
+ </td>
+ </tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ <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}
+ </select>
+ </td>
+ </tr>
+ </table>
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="width:32%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/display.png"> {t}Display device{/t}</h2>
+ <table summary="">
+ <tr>
+ <td>{t}Type{/t}</td>
+ <td>{$gotoXMonitor}</td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoXHsync">{t}HSync{/t}</LABEL></td>
+ <td><input id="gotoXHsync" name="gotoXHsync" size=10 maxlength=60 {$gotoXHsyncACL}
+ value="{$gotoXHsync}" title="{t}Horizontal refresh frequency for installed monitor{/t}"> kHz</td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoXVsync">{t}VSync{/t}</LABEL></td>
+ <td><input id="gotoXVsync" name="gotoXVsync" size=10 maxlength=60 {$gotoXVsyncACL}
+ value="{$gotoXVsync}" title="{t}Vertical refresh frequency for installed monitor{/t}"> Hz</td>
+ </tr>
+ </table>
+
+ </td>
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="width:33%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/server.png"> {t}Remote desktop{/t}</h2>
+ <table summary="">
+ <tr>
+ <td></td>
+ <td><LABEL for="gotoXMethod">{t}Connect method{/t}</LABEL></td>
+ <td>
+ <select name="gotoXMethod" id="gotoXMethod" title="{t}Choose method to connect to terminal server{/t}" {$gotoXMethodACL}>
+ {html_options options=$XMethods selected=$gotoXMethod_select}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><LABEL for="gotoXdmcpServer">{t}Terminal server{/t}</LABEL></td>
+ <td>
+ <select id="gotoXdmcpServer" name="gotoXdmcpServer" title="{t}Select specific terminal server to use{/t}" {$gotoXdmcpServerACL}>
+ {html_options values=$xdmcpservers output=$xdmcpservers selected=$gotoXdmcpServer_select}
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><LABEL for="gotoFontPath">{t}Font server{/t}</LABEL></td>
+ <td>
+ <select name="gotoFontPath" id="gotoFontPath" title="{t}Select specific font server to use{/t}" {$gotoFontPathACL}>
+ {html_options values=$fontservers output=$fontservers selected=$gotoFontPath_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+</table>
+
+<table style="width:100%;" summary="">
+ <tr><td colspan=3><p class="plugbottom" style="margin-top:0px;"></p></td></tr>
+
+ <tr>
+ <td style="width:50%; vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/printer.png"><LABEL for="gotoLpdEnable"> {t}Print device{/t}</LABEL></h2>
+ <input id="gotoLpdEnable" type=checkbox name="gotoLpdEnable" value="1" {$gotoLpdEnable} {$gotoLpdEnableACL} title="{t}Select to start IPP based printing service on terminal{/t}">
+ {t}Provide print services{/t}
+ <br>
+
+ <table summary="">
+ <tr>
+ <td><div style="width:20px;"></div></td>
+ <td><LABEL for="gotoLpdServer">{t}Spool server{/t}</LABEL></td>
+ <td>
+ <select name="gotoLpdServer" id="gotoLpdServer" title="{t}Select NFS filesystem to place spool files on{/t}" {$gotoLpdServerACL}>
+ {html_options values=$nfsservers output=$nfsservers selected=$gotoLpdServer_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;">
+ <h2><img alt="" align="middle" src="images/scanner.png"> {t}Scan device{/t}</h2>
+ <input type=checkbox name="gotoScannerEnable" value="1" title="{t}Select to start SANE scan service on terminal{/t}" {$gotoScannerEnable} {$gotoScannerEnableACL}>
+ {t}Provide scan services{/t}
+ <br>
+ <table summary="">
+ <tr>
+ <td><div style="width:20px;"></div></td>
+ <td><LABEL for="gotoScannerModel">{t}Model{/t}</LABEL></td>
+ <td>
+ <select name="gotoScannerModel" id="gotoScannerModel" title="{t}Select scanner driver to use{/t}" {$gotoScannerEnableACL}>
+ {html_options values=$gotoScannerModels output=$gotoScannerModels selected=$gotoScannerModel_select}
+ </select>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ </tr>
+</table>
+
+<div style="height:40px;"></div>
diff --git a/plugins/admin/systems/workstationStartup.tpl b/plugins/admin/systems/workstationStartup.tpl
--- /dev/null
@@ -0,0 +1,106 @@
+<h2><img alt="" align="middle" src="images/penguin.png"> {t}Boot parameters{/t}</h2>
+<table summary="" style="width:100%;">
+ <tr>
+ <td style="width:50%; vertical-align:top;">
+
+ <table summary="">
+ <tr>
+ <td><LABEL for="gotoLdapServer">{t}LDAP server{/t}</LABEL></td>
+ <td>
+ <select name="gotoLdapServer" id="gotoLdapServer" title="{t}Choose LDAP server to use for accounts and terminal management{/t}" {$gotoLdapServerACL}>
+ {html_options values=$ldapservers output=$ldapservers selected=$gotoLdapServer_select}
+ <option disabled> </option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><LABEL for="gotoBootKernel">{t}Boot kernel{/t}</LABEL></td>
+ <td><input id="gotoBootKernel" name="gotoBootKernel" size=20 maxlength=60 {$gotoBootKernelACL}
+ value="{$gotoBootKernel}" title="{t}Enter the filename of the kernel to use{/t}"></td>
+ </tr>
+ <tr>
+ <td><LABEL for="customParameters">{t}Custom options{/t}</LABEL></td>
+ <td><input name="customParameters" id="customParameters" size=25 maxlength=500 {$gotoKernelParametersACL}
+ value="{$customParameters}" title="{t}Enter any parameters that should be passed to the kernel as append line during bootup{/t}"></td>
+ </tr>
+ </table>
+
+ </td>
+
+ <td style="border-left:1px solid #A0A0A0">
+
+ </td>
+
+ <td style="vertical-align:top;">
+ <input type="radio" name="bootmode" value="G" title="{t}Select if terminal supports graphical startup with progress bar{/t}" {$graphicalbootup} {$gotoKernelParametersACL}>
+ {t}use graphical bootup{/t}
+ <br>
+ <input type="radio" name="bootmode" value="T" title="{t}Select if terminal should boot in text mode{/t}" {$textbootup} {$gotoKernelParametersACL}>
+ {t}use standard linux textual bootup{/t}
+ <br>
+ <input type="radio" name="bootmode" value="D" title="{t}Select to get more verbose output during startup{/t}" {$debugbootup} {$gotoKernelParametersACL}>
+ {t}use debug mode for startup{/t}
+ </td>
+ </tr>
+</table>
+
+<table summary="" style="width:100%;">
+ <tr><td colspan=2><p class="plugbottom" style="margin-top:0px;"></p></td></tr>
+
+ <tr>
+ <td style="width:50%; vertical-align:top;">
+ <h2>
+ <img alt="" align="middle" src="images/hardware.png"> {t}Kernel modules (format: name parameters){/t}
+ </h2>
+ <select style="width:100%; height:100px;" name="modules_list[]" size=15 multiple title="{t}Add additional modules to load on startup{/t}">
+ {html_options values=$gotoModules output=$gotoModules}
+ <option disabled> </option>
+ </select>
+ <br>
+ <input name="module" size=30 align=middle maxlength=30 {$gotoModulesACL}>
+ <input type=submit value="{t}Add{/t}" name="add_module" {$gotoModulesACL}>
+ <input type=submit value="{t}Delete{/t}" name="delete_module" {$gotoModulesACL}>
+ </td>
+
+ <td style="vertical-align:top;">
+ <h2>
+ <img alt="" align="middle" src="images/zip.png"> {t}Automount devices (format: complete autofs entry){/t}
+ </h2>
+ <select style="width:100%; height:100px;" name="autofs_list[]" size=15 multiple title='{t}Add additional automount entries{/t}'>
+ {html_options values=$gotoAutoFs output=$gotoAutoFs}
+ <option disabled> </option>
+ </select>
+ <br>
+ <input name="autofs" size=30 align=middle maxlength=80>
+ <input type=submit value="{t}Add{/t}" name="add_autofs">
+ <input type=submit value="{t}Delete{/t}" name="delete_autofs">
+ </td>
+ </tr>
+</table>
+
+<table summary="" style="width:100%;">
+ <tr><td colspan=2><p class="plugbottom" style="margin-top:0px;"></p></td></tr>
+
+ <tr>
+ <td style="width:50%; vertical-align:top;">
+ <h2>
+ <img alt="" align="middle" src="images/folder.png"> {t}Additional fstab entries{/t}
+ </h2>
+ <select style="width:100%; height:100px;" name="fstab_list[]" size=15 multiple title="{t}Add additional filesystems to be mounted during startup{/t}">
+ {html_options values=$gotoFilesystem output=$gotoFilesystem}
+ <option disabled> </option>
+ </select>
+ <br>
+ <input name="fstab" size=80 align=middle maxlength=200 {$gotoFilesystemACL}>
+ <input type=submit value="{t}Add{/t}" name="add_fs" {$gotoFilesystemACL}>
+ <input type=submit value="{t}Delete{/t}" name="delete_fs" {$gotoFilesystemACL}>
+ </td>
+ </tr>
+</table>
+
+<!-- Place cursor -->
+<script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ document.mainform.gotoLdapServer.focus();
+ -->
+</script>