summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d32e079)
raw | patch | inline | side by side (parent: d32e079)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Oct 2005 05:49:17 +0000 (05:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Oct 2005 05:49:17 +0000 (05:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1557 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationService.inc | patch | blob | history | |
plugins/admin/systems/workstationService.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
index 3c5d6a1cd433a4e31f4539cd35886156bff0004a..7aa47a4744477d7c1af416bda8b791aff7ef705d 100644 (file)
var $cli_description= "Some longer text\nfor help";
var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
+ var $gotoScannerEnable;
/* Generic terminal attributes */
- var $gotoLpdEnable= FALSE;
var $gotoXMonitor= "";
- var $gotoXMethod= "";
- var $gotoXdmcpServer= "";
- var $gotoFontPath= "";
var $gotoXDriver= "";
var $gotoXResolution= "";
var $gotoXColordepth= "";
var $gotoXKbVariant= "";
var $gotoXMouseType= "";
var $gotoXMouseport= "";
- var $gotoLpdServer= "";
- var $gotoScannerEnable= "";
- var $gotoScannerModel= "";
var $gotoScannerClients= "";
var $gotoScannerBackend= "";
var $goFonHardware= "automatic";
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",
+ var $attributes= array("cn","gotoXMonitor",
+ "gotoXDriver", "gotoXResolution", "gotoXColordepth",
+ "gotoXHsync", "gotoXVsync",
+ "gotoScannerEnable", "gotoScannerClients",
"gotoScannerBackend", "gotoXKbModel", "gotoXKbLayout", "gotoXKbVariant",
"gotoXMouseType", "gotoXMouseport", "goFonHardware");
var $objectclasses= array("GOhard");
{
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");
/* Arrays */
foreach(array("XMethods", "XDrivers", "XResolutions", "XColordepths",
- "gotoScannerModels", "XKbModels", "XKbLayouts", "XKbVariants",
+ "XKbModels", "XKbLayouts", "XKbVariants",
"MouseTypes", "MousePorts") as $val){
$smarty->assign("$val", $this->$val);
}
$smarty->assign("nfsservers", $this->config->data['SERVERS']['NFS']);
/* Variables - select */
- foreach(array("gotoXMethod", "gotoXdmcpServer", "gotoFontPath",
+ foreach(array(
"gotoXDriver", "gotoXResolution", "gotoXColordepth",
- "gotoLpdServer", "gotoScannerModel", "gotoXKbModel", "gotoXKbLayout",
+ "gotoXKbModel", "gotoXKbLayout","gotoScannerEnable",
"gotoXKbVariant", "gotoXMouseType", "gotoXMouseport") as $val){
$smarty->assign($val."_select", $this->$val);
$smarty->assign("staticAddress", "");
/* Checkboxes */
- foreach(array("gotoLpdEnable", "gotoScannerEnable") as $val){
+ foreach(array("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 */
{
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;
- }
- }
- }
}
plugin::save();
/* Strip out 'default' values */
- foreach(array("gotoXMethod", "gotoXdmcpServer", "gotoFontPath",
+ foreach(array(
"gotoXDriver", "gotoXResolution", "gotoXColordepth",
- "gotoLpdServer", "gotoScannerModel", "gotoXKbModel", "gotoXKbLayout",
+ "gotoXKbModel", "gotoXKbLayout",
"gotoXKbVariant", "gotoXMouseType", "gotoXMouseport") as $val){
if ($this->attrs[$val] == "default"){
diff --git a/plugins/admin/systems/workstationService.tpl b/plugins/admin/systems/workstationService.tpl
index d344c81eb6bfc218f880799e0b40297943cb8c7c..b10bb888735c12750ae8c6332f6de0103b4f23bd 100644 (file)
</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}
<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>
+ </td>
</tr>
</table>
+
<div style="height:40px;"></div>