summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 30fdcd3)
raw | patch | inline | side by side (parent: 30fdcd3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Apr 2006 07:00:18 +0000 (07:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Apr 2006 07:00:18 +0000 (07:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3102 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servGeneric.inc | patch | blob | history | |
plugins/admin/systems/server.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc
index f685d2703b27c397e6fd7ad6626a53f1e0e79ce7..0c43263ff4966c65c7d412ee442c5df95f1719b3 100644 (file)
var $orig_dn= "";
/* attribute list for save action */
- var $attributes= array("cn", "description");
+ var $attributes= array("cn", "description","gotoMode");
var $objectclasses= array("top", "GOhard", "goServer");
+ var $gotoMode= "locked";
+
var $netConfigDNS;
+ var $modes = array();
function servgeneric ($config, $dn= NULL)
{
plugin::plugin ($config, $dn);
+ $this->modes["active"]= _("Activated");
+ $this->modes["locked"]= _("Locked");
+ $this->modes["memcheck"]= _("Memory test");
+ $this->modes["sysinfo"]= _("System analysis");
+
/* Set base */
if ($this->dn == "new"){
$ui= get_userinfo();
$smarty->assign("actions", array("wake" => _("Wake up")));
}
-
/* Show main page */
$smarty->assign("netconfig", $this->netConfigDNS->execute());
+ $smarty->assign("modes", $this->modes);
return($smarty->fetch (get_template_path('server.tpl', TRUE)));
}
index f0521c058beb6d4ec0b940d38651bee982dbfa9e..6230d84730f91bd41b6e5a803e51c1b5b0266adc 100644 (file)
<td><LABEL for="cn">{t}Server name{/t}</LABEL>{$must}</td>
<td><input name="cn" id="cn" size=20 maxlength=60 value="{$cn}"></td>
</tr>
- <tr>
- <td colspan=2> </td>
- </tr>
<tr>
<td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
<td>
</td>
<td style="vertical-align:top">
<table summary="">
+ <tr>
+ <td>{t}Mode{/t}</td>
+ <td>
+ <select name="gotoMode" title="{t}Select terminal mode{/t}" {$gotoModeACL}>
+ {html_options options=$modes selected=$gotoMode}
+ </select>
+ </td>
+ </tr>
+
<tr>
<td><LABEL for="description">{t}Description{/t}</LABEL></td>
<td><input name="description" id="description" size=25 maxlength=80 value="{$description}"></td>