portal_comment.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php echo 'Theme by Jeaviking http://www.jeavi.name';exit;?>
  2. <div id="comment" class="bm">
  3. <div class="portal_tit cl">
  4. <em>已有$data[commentnum]人参与</em>
  5. <h3>会员评论</h3>
  6. </div>
  7. <div id="comment_ul">
  8. <!--{if !empty($pricount)}-->
  9. <p class="mtn mbn y">{lang hide_portal_comment}</p>
  10. <!--{/if}-->
  11. <!--{if !$data[htmlmade]}-->
  12. <form id="cform" name="cform" class="cl" action="$form_url" method="post" autocomplete="off">
  13. <div class="tedt">
  14. <textarea name="message" rows="3" class="pt" id="message" {if !$_G['uid'] && !$_G[connectguest]}placeholder="登录后才能发表内容及参与互动"{/if} onkeydown="ctrlEnter(event, 'commentsubmit_btn');"></textarea>
  15. </div>
  16. <!--{if $secqaacheck || $seccodecheck}-->
  17. <!--{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}-->
  18. <div class="mtm z"><!--{subtemplate common/seccheck}--></div>
  19. <!--{/if}-->
  20. <!--{if !empty($topicid) }-->
  21. <input type="hidden" name="referer" value="$topicurl#comment" />
  22. <input type="hidden" name="topicid" value="$topicid">
  23. <!--{else}-->
  24. <input type="hidden" name="portal_referer" value="$viewurl#comment">
  25. <input type="hidden" name="referer" value="$viewurl#comment" />
  26. <input type="hidden" name="id" value="$data[id]" />
  27. <input type="hidden" name="idtype" value="$data[idtype]" />
  28. <input type="hidden" name="aid" value="$aid">
  29. <!--{/if}-->
  30. <input type="hidden" name="formhash" value="{FORMHASH}">
  31. <input type="hidden" name="replysubmit" value="true">
  32. <input type="hidden" name="commentsubmit" value="true" />
  33. <p class="ptn cl y">
  34. <button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" value="true" class="pn y"><strong>{lang comment}</strong></button>
  35. </p>
  36. </form>
  37. <script type="text/javascript">
  38. jQuery(function(){
  39. jQuery(".tedt .pt").focus(function(){
  40. jQuery(this).addClass("bgchange");
  41. }).blur(function(){
  42. jQuery(this).removeClass("bgchange");
  43. });
  44. })
  45. </script>
  46. <!--{/if}-->
  47. <ul>
  48. <!--{loop $commentlist $comment}-->
  49. <!--{template portal/comment_li}-->
  50. <!--{if !empty($aimgs[$comment[cid]])}-->
  51. <script type="text/javascript" reload="1">aimgcount[{$comment[cid]}] = [<!--{echo implode(',', $aimgs[$comment[cid]]);}-->];attachimgshow($comment[cid]);</script>
  52. <!--{/if}-->
  53. <!--{/loop}-->
  54. </ul>
  55. <p class="ptn cl" style=" text-align:center">
  56. <!--{if $data[commentnum]}--><a href="$common_url" class="xi2">查看全部评论>></a><!--{/if}-->
  57. </p>
  58. </div>
  59. </div>