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 (photo)
##
###############################################################################
#parse("/wml/_sub/_global.vm")
#set($page_title="我要评论")
#set($close_search_robots = true)
#set($photo_id = $dlog.param("pid", -1))
#set($photo = $PHOTO_tool.photo($g_site, $g_user, $photo_id))
<p>
#if($photo && ${photo.status}==0)
    #wml_error_msg()
	照片:<a href="$dlog.root()/wml/photo/show.vm?sid=$g_site_id&amp;pid=${photo_id}">$text.html(${photo.name})</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="pid" value="$photo_id"/>
            <postfield name="parentId" value="$photo_id"/>
            <postfield name="author" value="$(author)"/>
            <postfield name="content" value="$(content)"/>
            <postfield name="__ClientId" value="$dlog.gen_client_id()"/>
            <postfield name="eventSubmit_AddPhotoReply" value="WML"/>
        </go>
    </anchor>
#else
	照片不存在!
#end
</p>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?