PageRenderTime 51ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/template/default/home/space_thread.htm

https://github.com/jinbo51/DiscuzX
HTML | 303 lines | 192 code | 15 blank | 96 comment | 0 complexity | d5169a89e5bd4fd0993ca0a97f1746a3 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {eval
  2. $filter = array( 'common' => '{lang have_posted}', 'save' => '{lang draft}', 'close' => '{lang closed}', 'aduit' => '{lang pending}', 'ignored' => '{lang ignored}', 'recyclebin' => '{lang recyclebin}');
  3. $_G[home_tpl_spacemenus][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=thread&view=me\">{lang they_thread}</a>";
  4. }
  5. <!--{if $diymode}-->
  6. <!--{if $_G[setting][homepagestyle]}-->
  7. <!--{subtemplate home/space_header}-->
  8. <div id="ct" class="ct2 wp cl">
  9. <div class="mn">
  10. <div class="bm">
  11. <div class="bm_h">
  12. <!--{if $space[self]}--><span class="xi2 y"><a href="forum.php?mod=misc&action=nav" onclick="showWindow('nav', this.href, 'get', 0)" class="addnew">{lang posted}</a></span><!--{/if}-->
  13. <h1 class="mt">
  14. <!--{if $_GET[type] == 'reply'}-->
  15. <span class="xs1 xw0"><a href="home.php?mod=space&do=thread&view=me&type=thread&uid=$space[uid]&from=space">{lang topic}</a><span class="pipe">|</span></span>{lang reply}
  16. <!--{else}-->
  17. {lang topic}<span class="xs1 xw0"><span class="pipe">|</span><a href="home.php?mod=space&do=thread&view=me&type=reply&uid=$space[uid]&from=space">{lang reply}</a></span>
  18. <!--{/if}-->
  19. </h1>
  20. </div>
  21. <div class="bm_c">
  22. <!--{else}-->
  23. <!--{template common/header}-->
  24. <div id="pt" class="bm cl">
  25. <div class="z">
  26. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
  27. <a href="home.php?mod=space&uid=$space[uid]">{$space[username]}</a> <em>&rsaquo;</em>
  28. <a href="home.php?mod=space&uid=$space[uid]&do=blog&view=me">{lang thread}</a>
  29. </div>
  30. </div>
  31. <style id="diy_style" type="text/css"></style>
  32. <div class="wp">
  33. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  34. </div>
  35. <!--{template home/space_menu}-->
  36. <div id="ct" class="ct1 wp cl">
  37. <div class="mn">
  38. <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
  39. <div class="bm bw0">
  40. <div class="bm_c">
  41. <!--{/if}-->
  42. <!--{else}-->
  43. <!--{template common/header}-->
  44. <div id="pt" class="bm cl">
  45. <div class="z">
  46. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
  47. <!--{if $_G[setting][homestyle]}--><a href="home.php">$_G[setting][navs][4][navname]</a> <em>&rsaquo;</em> <!--{/if}-->
  48. <a href="home.php?mod=space&do=blog">{lang thread}</a>
  49. </div>
  50. </div>
  51. <style id="diy_style" type="text/css"></style>
  52. <div class="wp">
  53. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  54. </div>
  55. <div id="ct" class="ct2_a wp cl">
  56. <!--{if $_G[setting][homestyle]}-->
  57. <div class="appl">
  58. <!--{subtemplate common/userabout}-->
  59. </div>
  60. <div class="mn pbw">
  61. <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
  62. <div class="bm bw0">
  63. <ul class="tb cl">
  64. <li$actives[we]><a href="home.php?mod=space&do=thread&view=we">{lang friend_post}</a></li>
  65. <li$actives[me]><a href="home.php?mod=space&do=thread&view=me">{lang my_post}</a></li>
  66. </ul>
  67. </div>
  68. <!--{else}-->
  69. <div class="appl">
  70. <div class="tbn">
  71. <h2 class="mt bbda">{lang thread}</h2>
  72. <ul>
  73. <li$actives[we]><a href="home.php?mod=space&do=thread&view=we">{lang friend_post}</a></li>
  74. <li$actives[me]><a href="home.php?mod=space&do=thread&view=me">{lang my_post}</a></li>
  75. </ul>
  76. </div>
  77. </div>
  78. <div class="mn pbw">
  79. <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
  80. <!--{/if}-->
  81. <!--{/if}-->
  82. <!--{if !$diymode && $space[self]}-->
  83. <!--{if $_GET['view'] == 'me'}-->
  84. <p class="tbmu bw0">
  85. <!--{if $viewtype != 'postcomment'}-->
  86. <span class="y">
  87. <a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&type=$viewtype&from=$_GET[from]&filter=" {if !$_GET[filter]}class="a"{/if}>{lang all}</a>
  88. <!--{loop $filter $key $name}--><span class="pipe">|</span><a href="home.php?mod=space&do=thread&view=me&type=$viewtype&from=$_GET[from]&filter=$key" {if $key == $_GET[filter]}class="a"{/if}>$name</a><!--{/loop}--> &nbsp;
  89. <select name="forumlist" id="forumlist" class="ps vm" onchange="viewforumthread(this.value);" style="width: 120px; word-wrap: normal;">
  90. <option value="0">{lang follow_select_forum}</option>
  91. $forumlist
  92. </select>
  93. </span>
  94. <!--{/if}-->
  95. <a href="home.php?mod=space&do=thread&view=me&type=thread" $orderactives[thread]>{lang topic}</a><span class="pipe">|</span>
  96. <a href="home.php?mod=space&do=thread&view=me&type=reply" $orderactives[reply]>{lang reply}</a><span class="pipe">|</span>
  97. <a href="home.php?mod=space&do=thread&view=me&type=postcomment" $orderactives[postcomment]>{lang post_comment}</a>
  98. <!--{if $viewtype != 'reply' && $viewtype != 'postcomment'}-->&nbsp; <input type="text" id="searchmypost" class="px vm" size="15" /> <button class="pn vm" onclick="searchpostbyusername($('searchmypost').value, '$_G[username]');"><em>{lang search}</em></button><!--{/if}-->
  99. </p>
  100. <!--{elseif $_GET['view'] == 'all'}-->
  101. <p class="tbmu bw0">
  102. <a href="home.php?mod=space&do=thread&view=all&order=dateline" $orderactives[dateline]>{lang newest_thread}</a><span class="pipe">|</span>
  103. <a href="home.php?mod=space&do=thread&view=all&order=hot" $orderactives[hot]>{lang top_thread}</a>
  104. </p>
  105. <!--{/if}-->
  106. <!--{/if}-->
  107. <!--{if $diymode && !$_G[setting][homepagestyle] }-->
  108. <p class="tbmu">
  109. <a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space&type=thread" $orderactives[thread]>{lang topic}</a>
  110. <span class="pipe">|</span>
  111. <a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space&type=reply" $orderactives[reply]>{lang reply}</a>
  112. </p>
  113. <!--{/if}-->
  114. <!--{if $userlist}-->
  115. <p class="tbmu bw0">
  116. {lang view_by_friend}
  117. <select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
  118. <option value="">{lang all_friends}</option>
  119. <!--{loop $userlist $value}-->
  120. <option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
  121. <!--{/loop}-->
  122. </select>
  123. </p>
  124. <!--{/if}-->
  125. <div class="tl">
  126. <form method="post" autocomplete="off" name="delform" id="delform" action="home.php?mod=space&do=thread&view=all&order=dateline" onsubmit="showDialog('{lang del_select_thread_confirm}', 'confirm', '', '$(\'delform\').submit();'); return false;">
  127. <input type="hidden" name="formhash" value="{FORMHASH}" />
  128. <input type="hidden" name="delthread" value="true" />
  129. <table cellspacing="0" cellpadding="0">
  130. <tr class="th">
  131. <td class="icn">&nbsp;</td>
  132. <!--{if $_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid']}-->
  133. <td class="o">&nbsp;</td>
  134. <!--{/if}-->
  135. <th><!--{if $viewtype == 'reply' || $viewtype == 'postcomment'}-->{lang post}<!--{else}-->{lang topic}<!--{/if}--></th>
  136. <td class="frm">{lang forum}<!--{if $actives[me] && $space['uid'] == $_G['uid']}-->/{lang group}<!--{/if}--></td>
  137. <!--{if $viewtype != 'postcomment'}-->
  138. <!--{if !$actives[me]}-->
  139. <td class="by">{lang author}</td>
  140. <!--{/if}-->
  141. <td class="num">{lang replies}</td>
  142. <!--{if $actives[me]}-->
  143. <td class="by"><cite>{lang last_post}</cite></td>
  144. <!--{/if}-->
  145. <!--{/if}-->
  146. </tr>
  147. <!--{if $list}-->
  148. <!--{loop $list $stid $thread}-->
  149. <tr{if $actives[me] && $viewtype=='reply' || $viewtype=='postcomment'} class="bw0_all"{/if}>
  150. <td class="icn">
  151. <a href="forum.php?mod=viewthread&tid=$thread[tid]&highlight=$index[keywords]" title="{lang open_new_window}" target="_blank">
  152. <!--{if $thread[folder] == 'lock'}-->
  153. <img src="{IMGDIR}/folder_lock.gif" />
  154. <!--{elseif $thread['special'] == 1}-->
  155. <img src="{IMGDIR}/pollsmall.gif" alt="{lang poll}" />
  156. <!--{elseif $thread['special'] == 2}-->
  157. <img src="{IMGDIR}/tradesmall.gif" alt="{lang trade}" />
  158. <!--{elseif $thread['special'] == 3}-->
  159. <img src="{IMGDIR}/rewardsmall.gif" alt="{lang reward}" />
  160. <!--{elseif $thread['special'] == 4}-->
  161. <img src="{IMGDIR}/activitysmall.gif" alt="{lang activity}" />
  162. <!--{elseif $thread['special'] == 5}-->
  163. <img src="{IMGDIR}/debatesmall.gif" alt="{lang debate}" />
  164. <!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
  165. <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" />
  166. <!--{else}-->
  167. <img src="{IMGDIR}/folder_$thread[folder].gif" />
  168. <!--{/if}-->
  169. </a>
  170. </td>
  171. <!--{if $_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid']}-->
  172. <td class="o">
  173. <!--{if $thread['digest'] == 0}-->
  174. <!--{if $thread['displayorder'] == 0}-->
  175. <input type="checkbox" name="moderate[]" value="$thread[tid]" class="pc" />
  176. <!--{else}-->
  177. <input type="checkbox" class="pc" disabled="disabled" />
  178. <!--{/if}-->
  179. <!--{else}-->
  180. <input type="checkbox" class="pc" disabled="disabled" />
  181. <!--{/if}-->
  182. </td>
  183. <!--{/if}-->
  184. <th>
  185. <!--{if $viewtype == 'reply' || $viewtype == 'postcomment'}-->
  186. <a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$thread[pid]" target="_blank">$thread[subject]</a>
  187. <!--{else}-->
  188. <a href="forum.php?mod=viewthread&tid=$thread[tid]" target="_blank" {if $thread['displayorder'] == -1}class="recy"{/if}>$thread[subject]</a>
  189. <!--{/if}-->
  190. <!--{if $thread['digest'] > 0}-->
  191. <img src="{IMGDIR}/digest_$thread[digest].gif" alt="{lang digest} $thread[digest]" align="absmiddle" />
  192. <!--{/if}-->
  193. <!--{if $thread['attachment'] == 2}-->
  194. <img src="{STATICURL}image/filetype/image_s.gif" alt="{lang photo_accessories}" align="absmiddle" />
  195. <!--{elseif $thread['attachment'] == 1}-->
  196. <img src="{STATICURL}image/filetype/common.gif" alt="{lang accessory}" align="absmiddle" />
  197. <!--{/if}-->
  198. <!--{if $thread[multipage]}--><span class="tps">$thread[multipage]</span><!--{/if}-->
  199. <!--{if !$_GET['filter']}-->
  200. <!--{if $thread[$statusfield] == -1}--><span class="xg1">$filter[recyclebin]</span>
  201. <!--{elseif $thread[$statusfield] == -2}--><span class="xg1">$filter[aduit]</span>
  202. <!--{elseif $thread[$statusfield] == -3 && $thread[displayorder] != -4}--><span class="xg1">$filter[ignored]</span>
  203. <!--{elseif $thread[displayorder] == -4}--><span class="xg1">$filter[save]</span>
  204. <!--{elseif $thread['closed'] == 1}--><span class="xg1">$filter[close]</span>
  205. <!--{/if}-->
  206. <!--{/if}-->
  207. </th>
  208. <td>
  209. <a href="forum.php?mod=forumdisplay&fid=$thread[fid]" class="xg1" target="_blank">$forums[$thread[fid]]</a>
  210. </td>
  211. <!--{if $viewtype != 'postcomment'}-->
  212. <!--{if !$actives[me]}-->
  213. <td>
  214. <cite><a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a></cite>
  215. <em>$thread[dateline]</em>
  216. </td>
  217. <!--{/if}-->
  218. <td class="num">
  219. <a href="forum.php?mod=viewthread&tid=$thread[tid]" class="xi2" target="_blank">$thread[replies]</a>
  220. <em>$thread[views]</em>
  221. </td>
  222. <!--{if $actives[me]}-->
  223. <td class="by">
  224. <cite><a href="home.php?mod=space&username=$thread[lastposterenc]" target="_blank">$thread[lastposter]</a></cite>
  225. <em><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost" target="_blank">$thread[lastpost]</a></em>
  226. </td>
  227. <!--{/if}-->
  228. <!--{/if}-->
  229. </tr>
  230. <!--{if $actives[me] && $viewtype=='reply'}-->
  231. <!--{loop $tids[$stid] $pid}-->
  232. <!--{eval $post = $posts[$pid];}-->
  233. <tr>
  234. <td colspan="5" class="xg1">&nbsp;<img src="{IMGDIR}/icon_quote_m_s.gif" style="vertical-align:middle;" /> <a href="forum.php?mod=redirect&goto=findpost&ptid=$thread[tid]&pid=$pid" target="_blank"><!--{if $post[message]}-->{$post[message]}<!--{else}-->......<!--{/if}--></a> <img src="{IMGDIR}/icon_quote_m_e.gif" style="vertical-align:middle;" /></td>
  235. </tr>
  236. <!--{/loop}-->
  237. <!--{/if}-->
  238. <!--{if $actives[me] && $viewtype=='postcomment'}-->
  239. <tr>
  240. <td class="icn">&nbsp;</td>
  241. <td colspan="2" class="xg1">$thread[comment]</td>
  242. </tr>
  243. <!--{/if}-->
  244. <!--{/loop}-->
  245. <!--{else}-->
  246. <tr>
  247. <td colspan="{if $viewtype != 'postcomment'}{if ($_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid'])}6{else}5{/if}{else}3{/if}"><p class="emp">{lang no_related_posts}</p></td>
  248. </tr>
  249. <!--{/if}-->
  250. </table>
  251. <!--{if $_GET['view'] == 'all' && $pruneperm && !$_GET['archiveid'] && $list}-->
  252. <p class="mtm pns">
  253. <label for="chkall" onclick="checkall(this.form, 'moderate')"><input type="checkbox" name="chkall" id="chkall" class="pc vm" />{lang select_all}</label>
  254. <button type="submit" name="delsubmit" value="true" class="pn vm"><em>{lang del_select_thread}</em></button>
  255. </p>
  256. <!--{/if}-->
  257. </form>
  258. <!--{if $hiddennum}-->
  259. <p class="mtm">{lang hide_thread}</p>
  260. <!--{/if}-->
  261. </div>
  262. <!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
  263. <script type="text/javascript">
  264. function fuidgoto(fuid) {
  265. window.location.href = 'home.php?mod=space&do=thread&view=we&fuid='+fuid;
  266. }
  267. function viewforumthread(fid) {
  268. window.location.href = '{$forumurl}&fid='+fid;
  269. }
  270. </script>
  271. <!--{if !$_G[setting][homepagestyle]}--><!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]--><!--{/if}-->
  272. <!--{if $diymode}-->
  273. </div>
  274. </div>
  275. <!--{if $_G[setting][homepagestyle]}-->
  276. </div>
  277. <div class="sd">
  278. <!--{subtemplate home/space_userabout}-->
  279. <!--{/if}-->
  280. <!--{/if}-->
  281. </div>
  282. </div>
  283. <!--{if !$_G[setting][homepagestyle]}-->
  284. <div class="wp mtn">
  285. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  286. </div>
  287. <!--{/if}-->
  288. <!--{template common/footer}-->