summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 90b681e)
raw | patch | inline | side by side (parent: 90b681e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Jun 2007 07:34:19 +0000 (07:34 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Jun 2007 07:34:19 +0000 (07:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6599 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationGeneric.inc | patch | blob | history | |
plugins/admin/systems/paste_generic.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc
index 516c807a97637b4196e95a7119424e13b0a8fae8..344c3b93096461aed5149452ad42a73f21f52a20 100644 (file)
}
+ /* Display generic part for server copy & paste */
+ function getCopyDialog()
+ {
+ $vars = array("cn");
+ $smarty = get_smarty();
+ $smarty->assign("cn" ,$this->cn);
+ $smarty->assign("object","workstation");
+ $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
+ $ret = array();
+ $ret['string'] = $str;
+ $ret['status'] = "";
+ return($ret);
+ }
+
+
+ function saveCopyDialog()
+ {
+ if(isset($_POST['cn'])){
+ $this->cn = $_POST['cn'];
+ }
+ }
+
+
+ function PrepareForCopyPaste($source)
+ {
+ plugin::PrepareForCopyPaste($source);
+ if(isset($source['macAddress'][0])){
+ $this->netConfigDNS->macAddress = $source['macAddress'][0];
+ }
+ if(isset($source['ipHostNumber'][0])){
+ $this->netConfigDNS->ipHostNumber = $source['ipHostNumber'][0];
+ }
+
+ /* Create used ntp server array */
+ $this->gotoNtpServer= array();
+ if(isset($source['gotoNtpServer'])){
+ $this->inheritTimeServer = false;
+ unset($source['gotoNtpServer']['count']);
+ foreach($source['gotoNtpServer'] as $server){
+ $this->gotoNtpServer[$server] = $server;
+ }
+ }
+
+ /* Set inherit checkbox state */
+ if((in_array("default",$this->gotoNtpServer)) || (count($this->gotoNtpServer)==0)){
+ $this->inheritTimeServer = true;
+ $this->gotoNtpServer=array();
+ }
+ }
+
+
/* Return plugin informations for acl handling
#FIXME FAIscript seams to ununsed within this class... */
function plInfo()
index a15b0dddbaaaa6e95914d89cab9764970fd96626..2f7ae106053a0fdf86980493543b8c3f3ec8dff1 100644 (file)
</tr>
</table>
{/if}
+{if $object == "workstation"}
+ <table summary="">
+ <tr>
+ <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>
+ </table>
+{/if}
{if $object == "terminal"}
<table summary="">
<tr>