portal_comment.htm
2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<div id="comment" class="bm">
<div class="bm_h cl">
<!--{if !$data[htmlmade]}-->
<!--{if $data[commentnum]}-->
<a href="javascript:;" class="y xi2" onclick="location.href=location.href.replace(/(\#.*)/, '')+'#cform';$('message').focus();return false;">{lang post_comment}</a>
<!--{/if}-->
<!--{else}-->
<a href="$common_url#cform" class="y xi2">{lang post_comment}</a>
<!--{/if}-->
<h3>{lang latest_comment}</h3>
</div>
<div id="comment_ul" class="bm_c">
<!--{loop $commentlist $comment}-->
<!--{template portal/comment_li}-->
<!--{if !empty($aimgs[$comment[cid]])}-->
<script type="text/javascript" reload="1">aimgcount[{$comment[cid]}] = [<!--{echo implode(',', $aimgs[$comment[cid]]);}-->];attachimgshow($comment[cid]);</script>
<!--{/if}-->
<!--{/loop}-->
<!--{if !empty($pricount)}-->
<p class="mtn mbn y">{lang hide_portal_comment}</p>
<!--{/if}-->
<!--{if $data[commentnum]}--><p class="ptm pbm"><a href="$common_url" class="xi2">{lang view_all_comments}(<em id="_commentnum">$data[commentnum]</em>)</a></p><!--{/if}-->
<!--{if !$data[htmlmade]}-->
<form id="cform" name="cform" action="$form_url" method="post" autocomplete="off">
<div class="tedt">
<div class="area">
<textarea name="message" rows="3" class="pt" id="message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea>
</div>
</div>
<!--{if $secqaacheck || $seccodecheck}-->
<!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu(this.id);"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
<div class="mtm"><!--{subtemplate common/seccheck}--></div>
<!--{/if}-->
<!--{if !empty($topicid) }-->
<input type="hidden" name="referer" value="$topicurl#comment" />
<input type="hidden" name="topicid" value="$topicid">
<!--{else}-->
<input type="hidden" name="portal_referer" value="$viewurl#comment">
<input type="hidden" name="referer" value="$viewurl#comment" />
<input type="hidden" name="id" value="$data[id]" />
<input type="hidden" name="idtype" value="$data[idtype]" />
<input type="hidden" name="aid" value="$aid">
<!--{/if}-->
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="replysubmit" value="true">
<input type="hidden" name="commentsubmit" value="true" />
<p class="ptn"><button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn"><strong>{lang comment}</strong></button></p>
</form>
<!--{/if}-->
</div>
</div>