打开wap目录下show.html文件,在模板适当位置加入如下代码:
{php $commentid=id_encode('content_'.$catid,$id,$siteid)}
{pc:comment action="get_comment" commentid="$commentid"}
{php $comment = $data;}
{/pc}
<div class="mg_b6"><a href="{APP_PATH}index.php?m=wap&c=index&a=comment_list&commentid={$commentid}&typeid={$typeid}">网友评论({if $comment[total]}{$comment[total]}{else}0{/if})</a></div>
<form action="{APP_PATH}index.php?m=wap&c=index&a=comment" method="post">
<div class="comment">
<textarea name="msg" rows="2"></textarea>
<input type="hidden" name="commentid" value="{id_encode('content_'.$catid,$id,$siteid)}" />
<input type="hidden" name="typeid" value="{$typeid}" />
<input type="hidden" name="catid" value="{$catid}" />
<input type="hidden" name="id" value="{$id}" />
<input type="hidden" name="title" value="{urlencode(($comment[title] ? $comment[title] : $title))}">
<input type="hidden" name="url" value="{urlencode(show_url($catid,$typeid,$id))}">
<br/>
<input type="submit" value="发言" name="dosumbit" class="ipt"/>
</div>
</form
|