space_debate.htm 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <!--{eval
  2. $_G[home_tpl_spacemenus][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=debate&view=me\">{lang they_debate}</a>";
  3. }-->
  4. <!--{template common/header}-->
  5. <div id="pt" class="bm cl">
  6. <div class="z">
  7. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
  8. <a href="home.php?mod=space&do=thread">{lang post}</a> <em>&rsaquo;</em>
  9. <a href="home.php?mod=space&uid=$space[uid]&do=debate&view=me">{lang debate}</a>
  10. </div>
  11. </div>
  12. <style id="diy_style" type="text/css"></style>
  13. <div class="wp">
  14. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  15. </div>
  16. <div id="ct" class="ct2_a wp cl">
  17. <div class="mn">
  18. <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
  19. <div class="bm bw0">
  20. <!--{if (!$_G['uid'] && !$space[uid]) || $space[self]}-->
  21. <h1 class="mt"><img alt="debate" src="{IMGDIR}/debatesmall.gif" class="vm" /> {lang debate}</h1>
  22. <!--{/if}-->
  23. <!--{if $space[self]}-->
  24. <ul class="tb cl">
  25. <li$actives[we]><a href="home.php?mod=space&do=debate&view=we">{lang friend_debate}</a></li>
  26. <li$actives[me]><a href="home.php?mod=space&do=debate&view=me">{lang my_debate}</a></li>
  27. <!--{if $_G[group][allowpostdebate]}-->
  28. <li class="o">
  29. <!--{if $_G[setting][debateforumid]}-->
  30. <a href="forum.php?mod=post&action=newthread&fid=$_G[setting][debateforumid]&special=5">{lang create_new_debate}</a>
  31. <!--{else}-->
  32. <a href="forum.php?mod=misc&action=nav&special=5" onclick="showWindow('nav', this.href)">{lang create_new_debate}</a>
  33. <!--{/if}-->
  34. </li>
  35. <!--{/if}-->
  36. </ul>
  37. <!--{else}-->
  38. <!--{template home/space_menu}-->
  39. <!--{/if}-->
  40. <!--{if $_GET[view] == 'me'}-->
  41. <p class="tbmu">
  42. <a href="home.php?mod=space&do=debate&view=me"$typeactives[orig]>{lang my_create_debate}</a><span class="pipe">|</span>
  43. <a href="home.php?mod=space&do=debate&view=me&type=reply"$typeactives[reply]>{lang my_join_debate}</a>
  44. </p>
  45. <!--{/if}-->
  46. <!--{if $userlist}-->
  47. <p class="tbmu">
  48. {lang view_by_friend}
  49. <select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
  50. <option value="">{lang all_friends}</option>
  51. <!--{loop $userlist $value}-->
  52. <option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
  53. <!--{/loop}-->
  54. </select>
  55. </p>
  56. <!--{/if}-->
  57. <!--{if $count}-->
  58. <!--{loop $special $tid $thread}-->
  59. <div class="ds bbda mbw">
  60. <h3 class="ph mbn"><a href="forum.php?mod=viewthread&tid=$thread[tid]" class="xi2" target="_blank">$thread[subject]</a></h3>
  61. <p class="xg2 mbw hm">$thread[message]</p>
  62. <table summary="{lang debate_all_point}" cellspacing="0" cellpadding="0">
  63. <tr>
  64. <td class="si_1">
  65. <div class="point">
  66. <strong>{lang affirm_votes} ($thread[affirmvotes])</strong>
  67. <p>$thread[affirmpoint]</p>
  68. </div>
  69. </td>
  70. <td class="sc_1">
  71. <div class="point_chart cur1" title="{lang chart_support}" href="forum.php?mod=misc&action=debatevote&tid=$thread[tid]&stand=1" id="affirmbutton_$thread[tid]" onclick="ajaxmenu(this);doane(event);" >
  72. <div class="chart" style="height: $thread[affirmvotesheight];" title="{lang debate_square} ($thread[affirmvotes])"></div>
  73. </div>
  74. </td>
  75. <th><div></div></th>
  76. <td class="sc_2">
  77. <div class="point_chart cur1" title="{lang chart_support}" href="forum.php?mod=misc&action=debatevote&tid=$thread[tid]&stand=2" id="negabutton_$thread[tid]" onclick="ajaxmenu(this);doane(event);">
  78. <div class="chart" style="height: $thread[negavotesheight];" title="{lang debate_opponent} ($thread[negavotes])"></div>
  79. </div>
  80. </td>
  81. <td class="si_2">
  82. <div class="point">
  83. <strong>{lang nega_votes} ($thread[negavotes])</strong>
  84. <p>$thread[negapoint]</p>
  85. </div>
  86. </td>
  87. </tr>
  88. </table>
  89. </div>
  90. <!--{/loop}-->
  91. <div class="tl">
  92. <!--{if $list}-->
  93. <table cellspacing="0" cellpadding="0">
  94. <tr>
  95. <td class="icn">&nbsp;</td>
  96. <th>&nbsp;</th>
  97. <td class="num">{lang affirm}</td>
  98. <td class="num">{lang nega}</td>
  99. <td class="num">{lang popularity}</td>
  100. <td width="55">{lang rate}</td>
  101. </tr>
  102. <!--{loop $list $tid $thread}-->
  103. <tr>
  104. <td>
  105. <a href="forum.php?mod=viewthread&tid=$thread[tid]" title="{lang open_new_window}" target="_blank">
  106. <!--{if $thread[folder] == 'lock'}-->
  107. <img src="{IMGDIR}/folder_lock.gif" class="vm" />
  108. <!--{elseif $thread['special'] == 5}-->
  109. <img src="{IMGDIR}/debatesmall.gif" alt="{lang debate}" class="vm" />
  110. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  111. <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" class="vm" />
  112. <!--{else}-->
  113. <img src="{IMGDIR}/folder_$thread[folder].gif" class="vm" />
  114. <!--{/if}-->
  115. </a>
  116. </td>
  117. <th height="45">
  118. <a href="forum.php?mod=viewthread&tid=$thread[tid]" class="xi2" target="_blank">$thread[subject]</a>
  119. <!--{if $thread['digest'] > 0}-->
  120. <img src="{IMGDIR}/digest_$thread[digest].gif" alt="{lang digest} $thread[digest]" align="absmiddle" />
  121. <!--{/if}-->
  122. <!--{if $thread['attachment'] == 2}-->
  123. <img src="{STATICURL}image/filetype/image_s.gif" alt="{lang photo_accessories}" align="absmiddle" />
  124. <!--{elseif $thread['attachment'] == 1}-->
  125. <img src="{STATICURL}image/filetype/common.gif" alt="{lang accessory}" align="absmiddle" />
  126. <!--{/if}-->
  127. <!--{if $thread[multipage]}--><span class="tps">$thread[multipage]</span><!--{/if}-->
  128. </th>
  129. <td class="xi1">$thread[affirmvotes]</td>
  130. <td class="xi2">$thread[negavotes]</td>
  131. <td>$thread[replies]</td>
  132. <td><!--{if !$thread[closed]}-->{lang ongoing}<!--{else}--><!--{if $thread[winner]}--><!--{if $thread[winner]==1}-->{lang affirm}<!--{else}-->{lang nega}<!--{/if}-->{lang win}<!--{else}-->{lang draw}<!--{/if}--><!--{/if}--></td>
  133. </tr>
  134. <!--{/loop}-->
  135. </table>
  136. <!--{/if}-->
  137. <!--{if $hiddennum}-->
  138. <p class="mtm">{lang hide_debate}</p>
  139. <!--{/if}-->
  140. </div>
  141. <!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
  142. <!--{else}-->
  143. <div class="emp">{lang no_debate}</div>
  144. <!--{/if}-->
  145. </div>
  146. <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
  147. </div>
  148. <div class="appl">
  149. <!--{subtemplate home/space_thread_nav}-->
  150. <div class="drag">
  151. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  152. </div>
  153. </div>
  154. </div>
  155. <div class="wp mtn">
  156. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  157. </div>
  158. <script type="text/javascript">
  159. function fuidgoto(fuid) {
  160. var parameter = fuid != '' ? '&fuid='+fuid : '';
  161. window.location.href = 'home.php?mod=space&do=debate&view=we'+parameter;
  162. }
  163. </script>
  164. <!--{template common/footer}-->