请参见食谱:PmForm。您可以在页面中创建本地PmForm模板现场。本地模板.
#邮件形式
当form=#mailform
由pmform目标显示。
[[#mailform]](:模板默认成功页=“”:)(:输入pmform target={$$target}成功页面=“{$$successpage}”:)(:输入默认请求=1:)(:条消息:)||宽度=“”||$[您的地址]:||(:输入文本大小=30:)||||$[主题]:||(:输入文本主题大小=30:)||$[消息]:\\(:输入文本区域文本行=15列=60:)\\{$Captcha}(:输入Captcha:)\\(:输入提交名称=发布值='$[Send]':)(:输入端:)[[#mailformend]] |
#邮件
这指定了在以下情况下发送的消息:fmt=#邮件
由pmform目标给定。它验证发件人地址、主题和消息文本的存在。
[[#mailpost]](:template require from errmsg=“$[Missing'from'address]”:)(:template require subject errmsg=“$[缺少消息主题]”:)(:template require text errmsg=“$[需要消息文本]”:)(:template required if=“captcha”errmsg=“$[captcha required]”:){$$文本}==========通过位于{$$PageUrl}的PmForm发送[[#mailpostend]] |
#共形
[[#评论]](:输入pmform目标=注释:)(:输入默认请求=1:)(:输入默认作者“{$author}”:)''发表评论:''(:条消息:)姓名:(:输入文本作者:)\\备注:\\(:输入文本区域文本行=3列=40:)\\(:输入提交名称=帖子值=“$[post]”:)(:input hidden csum“通过PmForm发布评论”:)(:输入端:)[[#commentformend]] |
#对讲机
[[#talkpost]](:模板默认值,其中=以上:)(:template require author errmsg=“$[缺少名称]”:)(:template需要文本errmsg=“$[Missing message]”:)(:template require text match=“-*http:*,-*https:*”errmsg=“Please don not post external links”:)>>对讲机<<->由{$$author}在{$$CurrentTime}上发布{$$文本}>><<[[#talkpostend]] |