space_share_view.htm 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <!--{eval $_G['home_tpl_titles'] = array($tpl_title, '{lang share}');}-->
  2. <!--{template home/space_header}-->
  3. <div id="ct" class="ct2 wp n cl">
  4. <div class="mn">
  5. <div class="bm">
  6. <div class="bm_h">
  7. <h1 class="mt">{lang share}</h1>
  8. </div>
  9. <div class="bm_c">
  10. <div id="share_ul" class="vw">
  11. <div class="h">
  12. <h1 class="ph">$share[title_template]</h1>
  13. <span class="y">
  14. <!--{if $_G[uid] == $share[uid] || checkperm('manageshare')}-->
  15. <a href="home.php?mod=spacecp&ac=share&sid=$share[sid]&op=delete&type=view&handlekey=delsharehk_{$share[sid]}" id="share_delete_$share[sid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>&nbsp;&nbsp;&nbsp;
  16. <!--{/if}-->
  17. <!--{if checkperm('manageshare')}-->
  18. <a href="home.php?mod=spacecp&ac=share&sid=$share[sid]&op=edithot&handlekey=hotsharehk_{$share[sid]}" id="a_hot_$share[sid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang hot}</a>
  19. <!--{/if}-->
  20. <!--<a href="home.php?mod=spacecp&ac=common&op=report&idtype=sid&id=$share[sid]&handlekey=reportsharehk_{$share[sid]}" id="a_report" onclick="showWindow(this.id, this.href, 'get', 0);">{lang report}</a>-->
  21. </span>
  22. <!--{if $share[hot]}--><span class="hot">{lang hot} <em>$share[hot]</em></span><!--{/if}-->
  23. <span class="xg1"><!--{date($share[dateline])}--></span>
  24. </div>
  25. <div id="share_article" class="ec d cl">
  26. <!--{if $share['image']}-->
  27. <a href="$share[image_link]"><img src="$share[image]" class="tn" style="margin-top: 0;" alt="" /></a>
  28. <!--{/if}-->
  29. {$share[body_template]}<br />
  30. <!--{if 'video' == $share['type']}-->
  31. <div class="tn" id="flash_div_$share[sid]">
  32. <script>showFlash('{$share['body_data']['host']}', '{$share['body_data']['flashvar']}', '', '{$share['sid']}');</script>
  33. </div>
  34. <!--{elseif 'music' == $share['type']}-->
  35. <div class="tn" id="flash_div_$share[sid]">
  36. <script>showFlash('music', '{$share['body_data']['musicvar']}', '', '{$share['sid']}');</script>
  37. </div>
  38. <!--{elseif 'flash' == $share['type']}-->
  39. <div class="tn" id="flash_div_$share[sid]">
  40. <script>showFlash('flash', '{$share['body_data']['flashaddr']}', '', '{$share['sid']}');</script>
  41. </div>
  42. <!--{/if}-->
  43. <!--{if $share[body_general]}-->
  44. <div class="quote{if $share['image']} z{/if}"><blockquote>$share[body_general]</blockquote></div>
  45. <!--{/if}-->
  46. </div>
  47. </div>
  48. <!--[diy=diycommenttop]--><div id="diycommenttop" class="area"></div><!--[/diy]-->
  49. <div class="bm bw0 mtm mbm">
  50. <h3 class="bbs pbn">
  51. <!--{if !empty($list)}-->
  52. <a href="home.php?mod=space&uid=$share[uid]&do=$do&id=$id#quickcommentform_{$id}" onclick="if($('comment_message')){$('comment_message').focus();return false;}" class="y xi2 xw0">{lang publish_comment}</a>
  53. <!--{/if}-->
  54. {lang comment}
  55. </h3>
  56. <div id="comment">
  57. <!--{if $cid}-->
  58. <div class="i">
  59. {lang current_blog_replay}<a href="home.php?mod=space&uid=$share[uid]&do=share&id=$share[sid]">{lang click_view_all}</a>
  60. </div>
  61. <!--{/if}-->
  62. <div id="comment_ul" class="xld xlda">
  63. <!--{loop $list $k $value}-->
  64. <!--{template home/space_comment_li}-->
  65. <!--{/loop}-->
  66. </div>
  67. </div>
  68. <!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
  69. </div>
  70. <!--{if !$share[noreply] && helper_access::check_module('share')}-->
  71. <form id="quickcommentform_{$id}" name="quickcommentform_{$id}" action="home.php?mod=spacecp&ac=comment&handlekey=qcshare_{$id}" method="post" autocomplete="off" onsubmit="ajaxpost('quickcommentform_{$id}', 'return_qcshare_$id');doane(event);">
  72. <!--{if $_G['uid']}-->
  73. <p>
  74. <span id="comment_face" onclick="showFace(this.id, 'comment_message');return false;" class="cur1"><img src="{IMGDIR}/facelist.gif" alt="facelist" class="vm" /></span>
  75. <!--{if $_G['setting']['magicstatus'] && $_G['setting']['magics']['doodle']}-->
  76. <a id="a_magic_doodle" href="home.php?mod=magic&mid=doodle&showid=comment_doodle&target=comment_message" onclick="showWindow(this.id, this.href, 'get', '0')"><img src="{STATICURL}image/magic/doodle.small.gif" alt="doodle" class="vm" />{$_G[setting][magics][doodle]}</a>
  77. <!--{/if}-->
  78. </p>
  79. <!--{/if}-->
  80. <div class="tedt mtn mbn">
  81. <div class="area">
  82. <!--{if $_G['uid'] || $_G['group']['allowcomment']}-->
  83. <textarea id="comment_message" name="message" rows="5" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" class="pt"></textarea>
  84. <!--{else}-->
  85. <div class="pt hm">{lang login_to_comment} <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a> | <a href="member.php?mod={$_G[setting][regname]}" class="xi2">$_G['setting']['reglinkname']</a></div>
  86. <!--{/if}-->
  87. </div>
  88. </div>
  89. <!--{if $secqaacheck || $seccodecheck}-->
  90. <!--{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}-->
  91. <div class="mtm mbm"><!--{subtemplate common/seccheck}--></div>
  92. <!--{/if}-->
  93. <p>
  94. <input type="hidden" name="refer" value="home.php?mod=space&uid=$share[uid]&do=$do&id=$id" />
  95. <input type="hidden" name="id" value="$id" />
  96. <input type="hidden" name="idtype" value="sid" />
  97. <input type="hidden" name="commentsubmit" value="true" />
  98. <button type="submit" name="commentsubmit_btn" id="commentsubmit_btn" class="pn" value="true"{if !$_G[uid]&&!$_G['group']['allowcomment']} onclick="showWindow(this.id, this.form.action);return false;"{/if}><strong>{lang comment}</strong></button>
  99. <span id="return_qcshare_{$id}"></span>
  100. </p>
  101. <input type="hidden" name="formhash" value="{FORMHASH}" />
  102. </form>
  103. <script type="text/javascript">
  104. function succeedhandle_qcshare_$id(url, msg, values) {
  105. comment_add(values['cid']);
  106. <!--{if $sechash}-->
  107. <!--{if $secqaacheck}-->
  108. updatesecqaa('$sechash');
  109. <!--{/if}-->
  110. <!--{if $seccodecheck}-->
  111. updateseccode('$sechash');
  112. <!--{/if}-->
  113. <!--{/if}-->
  114. }
  115. </script>
  116. <!--{/if}-->
  117. <script type="text/javascript">
  118. var elems = selector('div[class~=magicflicker]');
  119. for(var i=0; i<elems.length; i++){
  120. magicColor(elems[i]);
  121. }
  122. </script>
  123. </div>
  124. </div>
  125. </div>
  126. <div class="sd">
  127. <!--{subtemplate home/space_userabout}-->
  128. </div>
  129. </div>
  130. <!--{template common/footer}-->