summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 385569a)
raw | patch | inline | side by side (parent: 385569a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Jun 2007 07:58:49 +0000 (07:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 15 Jun 2007 07:58:49 +0000 (07:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6600 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history | |
plugins/admin/systems/paste_generic.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 2dfbc4cd4b61dff4a13dd5afd74b35c8570986b8..48c23aade67277be5bfcdffd9eaaae708ad04eee 100644 (file)
}
return(TRUE);
}
-}
+ /* Display generic part for server copy & paste */
+ function getCopyDialog()
+ {
+ $vars = array("cn");
+ $smarty = get_smarty();
+ $smarty->assign("cn" ,$this->cn);
+ $smarty->assign("object","printer");
+ $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];
+ }
+
+ $source_o = new printgeneric($this->config,$source['dn'],NULL,$this->parent);
+ foreach($this->attributes as $attr){
+ $this->$attr = $source_o->$attr;
+ }
+ $this->member = $source_o -> member;
+
+ $this->gotoPrinterPPD = "";
+ }
+}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
index 2f7ae106053a0fdf86980493543b8c3f3ec8dff1..56fd5d73356e9d653c89f110556c39b6bfbdf0be 100644 (file)
</tr>
</table>
{/if}
+{if $object == "printer"}
+ <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}