Wiki-Quellcode von Kundenwiki-Zugang
Version 4.1 von Timo Schmid am 23.09.2020 08:54
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #if("$!request.kwreg" == "1") | ||
3 | #if($services.captcha.default.isValid()) | ||
4 | {{info}}Captcha richtig!{{/info}} | ||
5 | #set ($sifamail = '[email protected]') | ||
6 | #if ($sifamail != $null) | ||
7 | #set ($mailadress = $xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('email').getValue()) | ||
8 | #set ($message = $services.mailsender.createMessage($mailadress, $sifamail, "Kundenwiki-Zugangsanfrage")) | ||
9 | #set ($linkstring = "Vorname:" + $request.vorname + " | ||
10 | Nachname:" + $request.nachname + " | ||
11 | E-Mail-Adresse:" + $request.mailadd + " | ||
12 | Organisation:" + $request.org + " | ||
13 | Organisationseinheit:" + $request.oe + " | ||
14 | Aufgabe:" + $request.pos + " | ||
15 | Bitte an zustaendige Fachkraft fuer Arbeitssicherheit weiterleiten, danke!") | ||
16 | #set ($discard = $message.addPart("text/plain", $linkstring)) | ||
17 | #set ($mailResult = $services.mailsender.send($message)) | ||
18 | #end | ||
19 | #else | ||
20 | {{error}}Das Captcha wurde falsch eingegeben.{{/error}} | ||
21 | #end | ||
22 | #end | ||
23 | |||
24 | Auf dieser Seite können Sie Zugang zu Ihrem Wiki beantragen, sofern Sie Mitarbeiter eines unserer Kunden sind. | ||
25 | |||
26 | {{html}} | ||
27 | <form id="KWAnmeld" name="KWAnmeld" method="post" class="xform" action="$doc.getURL('view')"> | ||
28 | <input type="hidden" name="kwreg" value="1" id="kwreg" /> | ||
29 | Vorname: | ||
30 | <input type="text" style="width:250px; margin-left:82px" name="vorname" value="#if ($request.vorname != $null)$request.vorname#end"/><br><br> | ||
31 | Nachname: | ||
32 | <input type="text" style="width:250px; margin-left:70px" name="nachname" value="#if ($request.vorname != $null)$request.nachname#end"/><br><br> | ||
33 | E-Mail-Adresse: | ||
34 | <input type="text" style="width:250px; margin-left:40px" name="mailadd" value="#if ($request.vorname != $null)$request.mailadd#end"/><br><br> | ||
35 | Organisation: | ||
36 | <input type="text" style="width:250px; margin-left:58px" name="org" value="#if ($request.vorname != $null)$request.org#end"/><br><br> | ||
37 | Organisationseinheit: | ||
38 | <input type="text" style="width:250px; margin-left:8px" name="oe" value="#if ($request.vorname != $null)$request.oe#end"/><br><br> | ||
39 | Aufgabe: | ||
40 | <input type="text" style="width:250px; margin-left:87px" name="pos" value="#if ($request.vorname != $null)$request.pos#end"/><br><br> | ||
41 | Geben Sie bitte den als Bild angezeigten Text in das Textfeld unterhalb des Bildes ein.<br> | ||
42 | $services.captcha.default.display() | ||
43 | <span class="buttonwrapper"><input type="submit" class="button" value="Senden"/></span> | ||
44 | </form> | ||
45 | {{/html}} | ||
46 | {{/velocity}} |