reply.vm
来自「一个简单的blog系统」· VM 代码 · 共 44 行
VM
44 行
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Library General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
## enter a reply
##
###############################################################################
#parse("/wml/_sub/_global.vm")
#set($close_search_robots = true)
#set($page_title="我要评论")
#set($log_id = $dlog.param("log_id", -1))
#set($log = $DIARY_tool.diary($g_site, $g_user, $log_id))
<p>
#if($log && ${log.status}==0)
#wml_error_msg()
日记:<a href="$dlog.root()/wml/diary/show.vm?sid=$g_site_id&log_id=${log.id}">$text.html(${log.title})</a><br/>
内容:<input type="text" name="content" value=""/><br/>
评论者:<input type="text" name="author" value="$text.html($!{g_user.nickname})"/><br/>
<anchor>提交评论
<go href="$link.setAction("wml/reply")" method="post">
<postfield name="sid" value="$g_site_id"/>
<postfield name="log_id" value="$log_id"/>
<postfield name="parentId" value="$log_id"/>
<postfield name="author" value="$(author)"/>
<postfield name="content" value="$(content)"/>
<postfield name="__ClientId" value="$dlog.gen_client_id()"/>
<postfield name="eventSubmit_AddDiaryReply" value="WML"/>
</go>
</anchor>
#else
日记不存在!
#end
</p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?