HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

PmFormTemplates

See Cookbook:PmForm. You can create local PmForm templates in the page Site.LocalTemplates?.

#mailform

This form is displayed when form=#mailform is displayed by a pmform target.

[[#mailform]]
(:template default successpage='' :)
(:input pmform target={$$target} successpage="{$$successpage}" :)
(:input default request=1:)
(:messages:)
||width='' 
||$[Your address]: ||(:input text from size=30:) ||
||$[Subject]:      ||(:input text subject size=30:) ||
$[Message]:\\
(:input textarea text rows=15 cols=60:)\\
{$Captcha} (:input captcha:) \\
(:input submit name=post value='$[Send]':)
(:input end:)
[[#mailformend]]

#mailpost

This specifies the message to be sent when fmt=#mailpost is given by a pmform target. It verifies the existence of a from address, subject, and message text.

[[#mailpost]]
(:template require from errmsg="$[Missing 'from' address]" :)
(:template require subject errmsg="$[Missing message subject]" :)
(:template require text errmsg="$[Message text required]" :) 
(:template require if="captcha" errmsg="$[Captcha required]" :)
{$$text}

==========
Sent via PmForm at {$$PageUrl}
[[#mailpostend]]

#commentform

[[#commentform]]
(:input pmform target=comments:)
(:input default request=1:)
(:input default author "{$Author}" :)
'''Post a comment:'''
(:messages:)
Name: (:input text author:) \\
Comments: \\
(:input textarea text rows=3 cols=40:) \\
(:input submit name=post value="$[Post]" :)
(:input hidden csum "Posted a comment via PmForm":)
(:input end:)
[[#commentformend]]

#talkpost

[[#talkpost]]
(:template defaults where=above :) 
(:template require author errmsg="$[Missing name]":)
(:template require text errmsg="$[Missing message]":)
(:template require text match="-*http:*,-*https:*" errmsg="Please don't post external links":)
>>talkpost<<
-> Posted by {$$author} on {$$CurrentTime}
{$$text}
>><<

[[#talkpostend]]
Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2023 March 06, 12:59