spacecp_comment.htm
6.08 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!--{template common/header}-->
<!--{if !$_G[inajax]}-->
<div id="pt" class="bm cl">
<div class="z"><a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em> <a href="home.php">$_G[setting][navs][4][navname]</a></div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<!--{/if}-->
<!--{if $_GET['op'] == 'edit'}-->
<h3 class="flb">
<em id="return_$_GET[handlekey]">{lang edit}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<form id="editcommentform_{$cid}" name="editcommentform_{$cid}" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=comment&op=edit&cid=$cid{if $_GET[modcommentkey]}&modcommentkey=$_GET[modcommentkey]{/if}" {if $_G[inajax]} onsubmit="ajaxpost(this.id, 'return_$_GET[handlekey]');"{/if}>
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="editsubmit" value="true" />
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="c">
<p>
<label for="message">{lang edit_content}:</label>
<span id="editface_{$cid}" onclick="showFace(this.id, 'message_{$cid}');return false;" class="cur1"><img src="{IMGDIR}/facelist.gif" alt="facelist" class="vm" /></span>
</p>
<textarea id="message_{$cid}" name="message" cols="70" onkeydown="ctrlEnter(event, 'editsubmit_btn');" rows="8" class="pt mtn">$comment[message]</textarea>
</div>
<p class="o pns">
<button type="submit" name="editsubmit_btn" id="editsubmit_btn" value="true" class="pn pnc"><strong>{lang submit}</strong></button>
</p>
</form>
<script type="text/javascript">
function succeedhandle_$_GET['handlekey'] (url, message, values) {
comment_edit(values['cid']);
}
</script>
<!--{elseif $_GET['op'] == 'delete'}-->
<h3 class="flb">
<em id="return_$_GET[handlekey]">{lang delete_reply}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<form id="deletecommentform_{$cid}" name="deletecommentform_{$cid}" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=comment&op=delete&cid=$cid" {if $_G[inajax]}onsubmit="ajaxpost(this.id, 'return_$_GET[handlekey]');"{/if}>
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="deletesubmit" value="true" />
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
<div class="c">{lang delete_reply_message}</div>
<p class="o pns">
<button type="submit" name="deletesubmitbtn" value="true" class="pn pnc"><strong>{lang determine}</strong></button>
</p>
</form>
<script type="text/javascript">
function succeedhandle_$_GET['handlekey'] (url, message, values) {
comment_delete(values['cid']);
}
</script>
<!--{elseif $_GET['op'] == 'reply'}-->
<h3 class="flb">
<em id="return_$_GET[handlekey]">{lang reply}</em>
<!--{if $_G[inajax]}--><span><a href="javascript:;" onclick="hideWindow('$_GET[handlekey]');" class="flbc" title="{lang close}">{lang close}</a></span><!--{/if}-->
</h3>
<form id="replycommentform_{$comment[cid]}" name="replycommentform_{$comment[cid]}" method="post" autocomplete="off" action="home.php?mod=spacecp&ac=comment" {if $_G[inajax]} onsubmit="ajaxpost('replycommentform_{$comment[cid]}', 'return_$_GET[handlekey]');"{/if}>
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="id" value="$comment[id]" />
<input type="hidden" name="idtype" value="$comment[idtype]" />
<input type="hidden" name="cid" value="$comment[cid]" />
<input type="hidden" name="commentsubmit" value="true" />
<!--{if $_G[inajax]}--><input type="hidden" name="handlekey" value="$_GET[handlekey]" /><!--{/if}-->
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div id="reply_msg_{$comment[cid]}">
<div class="c">
<p>
<label for="message">{lang content}:</label>
<span id="replyface_{$comment[cid]}" onclick="showFace(this.id, 'message_pop_{$comment[cid]}');return false;" class="cur1"><img src="{IMGDIR}/facelist.gif" alt="facelist" class="vm" /></span>
<!--{if $_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])}-->
<span id="editdoodle_{$cid}" onclick="showWindow(this.id, 'home.php?mod=magic&mid=doodle&showid=comment_doodle&target=message_pop_{$comment[cid]}', 'get', 0)" class="cur1"><img src="{STATICURL}image/magic/doodle.small.gif" alt="doodle" class="vm" />{$_G[setting][magics][doodle]}</span>
<!--{/if}-->
</p>
<textarea id="message_pop_{$comment[cid]}" name="message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" rows="8" cols="70" class="pt mtn"></textarea>
<!--{if $secqaacheck || $seccodecheck}-->
<!--{block sectpl}--><sec> <span id="sec<hash>" onclick="showMenu({'ctrlid':this.id,'win':'{$_GET[handlekey]}'});"><sec></span><div id="sec<hash>_menu" class="p_pop p_opt" style="display:none"><sec></div><!--{/block}-->
<div class="mtm mbm"><!--{subtemplate common/seccheck}--></div>
<!--{/if}-->
</div>
<p class="o pns">
<button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn pnc"><strong>{lang reply}</strong></button>
</p>
</div>
</form>
<script type="text/javascript">
function succeedhandle_$_GET['handlekey'] (url, message, values) {
<!--{if $comment['idtype']!='uid'}-->
<!--{if $_GET['feedid']}-->
feedcomment_add(values['cid'], $_GET['feedid']);
<!--{else}-->
comment_add(values['cid']);
<!--{/if}-->
<!--{/if}-->
}
</script>
<!--{/if}-->
<!--{if !$_G[inajax]}-->
</div>
</div>
<div class="appl"><!--{subtemplate common/userabout}--></div>
</div>
<!--{/if}-->
<!--{template common/footer}-->