PageRenderTime 47ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/data/template/1_1_forum_discuzcode.tpl.php

https://github.com/kuaileshike/upload
PHP | 615 lines | 515 code | 100 blank | 0 comment | 126 complexity | 4efc616f0dd8d45ea72aad7d367eb30a MD5 | raw file
  1. <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
  2. <?php function tpl_hide_credits_hidden($creditsrequire) {
  3. global $_G;?><?php
  4. $return = <<<EOF
  5. <div class="locked">
  6. EOF;
  7. if($_G['uid']) {
  8. $return .= <<<EOF
  9. {$_G['username']}
  10. EOF;
  11. } else {
  12. $return .= <<<EOF
  13. 游客
  14. EOF;
  15. }
  16. $return .= <<<EOF
  17. 本帖隐藏的内容需要积分高于 {$creditsrequire} 才可浏览您当前积分为 {$_G['member']['credits']}</div>
  18. EOF;
  19. ?><?php return $return;?><?php }
  20. function tpl_hide_credits($creditsrequire, $message) {?><?php
  21. $return = <<<EOF
  22. <div class="locked">以下内容需要积分高于 {$creditsrequire} 才可浏览</div>
  23. {$message}<br /><br />
  24. EOF;
  25. ?><?php return $return;?><?php }
  26. function tpl_codedisp($code) {
  27. $randomid = 'code_'.random(3);?><?php
  28. $return = <<<EOF
  29. <div class="blockcode"><div id="{$randomid}"><ol><li>{$code}</ol></div><em onclick="copycode($('{$randomid}'));">复制代码</em></div>
  30. EOF;
  31. ?><?php return $return;?><?php }
  32. function tpl_quote() {?><?php
  33. $return = <<<EOF
  34. <div class="quote"><blockquote>\\1</blockquote></div>
  35. EOF;
  36. ?><?php return $return;?><?php }
  37. function tpl_free() {?><?php
  38. $return = <<<EOF
  39. <div class="quote"><blockquote>\\1</blockquote></div>
  40. EOF;
  41. ?><?php return $return;?><?php }
  42. function tpl_hide_reply() {
  43. global $_G;?><?php
  44. $return = <<<EOF
  45. <div class="showhide"><h4>本帖隐藏的内容</h4>\\1</div>
  46. EOF;
  47. ?><?php return $return;?><?php }
  48. function tpl_hide_reply_hidden() {
  49. global $_G;?><?php
  50. $return = <<<EOF
  51. <div class="locked">
  52. EOF;
  53. if($_G['uid']) {
  54. $return .= <<<EOF
  55. {$_G['username']}
  56. EOF;
  57. } else {
  58. $return .= <<<EOF
  59. 游客
  60. EOF;
  61. }
  62. $return .= <<<EOF
  63. 如果您要查看本帖隐藏内容请<a href="forum.php?mod=post&amp;action=reply&amp;fid={$_G['fid']}&amp;tid={$_G['tid']}" onclick="showWindow('reply', this.href)">回复</a></div>
  64. EOF;
  65. ?><?php return $return;?><?php }
  66. function attachlist($attach) {
  67. global $_G;
  68. $attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
  69. $aidencode = packaids($attach);
  70. $widthcode = attachwidth($attach['width']);
  71. $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
  72. $pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]] : '';?><?php
  73. $return = <<<EOF
  74. <ignore_js_op>
  75. <dl class="tattl">
  76. <dt>
  77. {$attach['attachicon']}
  78. </dt>
  79. <dd>
  80. <p class="attnm">
  81. EOF;
  82. if(!$attach['price'] || $attach['payed']) {
  83. $return .= <<<EOF
  84. <a href="forum.php?mod=attachment{$is_archive}&amp;aid={$aidencode}" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" id="aid{$attach['aid']}" target="_blank">{$attach['filename']}</a>
  85. EOF;
  86. } else {
  87. $return .= <<<EOF
  88. <a href="forum.php?mod=misc&amp;action=attachpay&amp;aid={$attach['aid']}&amp;tid={$attach['tid']}" onclick="showWindow('attachpay', this.href)">{$attach['filename']}</a>
  89. EOF;
  90. }
  91. $return .= <<<EOF
  92. <div class="tip tip_4" id="aid{$attach['aid']}_menu" style="display: none" disautofocus="true">
  93. <div class="tip_c">
  94. <p class="y">{$attach['dateline']} 上传</p>
  95. <p>点击文件名下载附件</p>
  96. EOF;
  97. if(!$attach['attachimg'] && $_G['getattachcredits']) {
  98. $return .= <<<EOF
  99. 下载积分: {$_G['getattachcredits']}<br />
  100. EOF;
  101. }
  102. $return .= <<<EOF
  103. </div>
  104. <div class="tip_horn"></div>
  105. </div>
  106. </p>
  107. <p>{$attach['attachsize']}
  108. EOF;
  109. if($attach['readperm']) {
  110. $return .= <<<EOF
  111. , 阅读权限: <strong>{$attach['readperm']}</strong>
  112. EOF;
  113. }
  114. $return .= <<<EOF
  115. , 下载次数: {$attach['downloads']}
  116. EOF;
  117. if(!$attach['attachimg'] && $_G['getattachcredits']) {
  118. $return .= <<<EOF
  119. , 下载积分: {$_G['getattachcredits']}
  120. EOF;
  121. }
  122. $return .= <<<EOF
  123. </p>
  124. <p>
  125. EOF;
  126. if($attach['price']) {
  127. $return .= <<<EOF
  128. 售价: <strong>{$attach['price']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title']}</strong> &nbsp;[<a href="forum.php?mod=misc&amp;action=viewattachpayments&amp;aid={$attach['aid']}" onclick="showWindow('attachpay', this.href)" target="_blank">记录</a>]
  129. EOF;
  130. if(!$attach['payed']) {
  131. $return .= <<<EOF
  132. &nbsp;[<a href="forum.php?mod=misc&amp;action=attachpay&amp;aid={$attach['aid']}&amp;tid={$attach['tid']}" onclick="showWindow('attachpay', this.href)">购买</a>]
  133. EOF;
  134. } }
  135. $return .= <<<EOF
  136. </p>
  137. EOF;
  138. if($attach['description']) {
  139. $return .= <<<EOF
  140. <p class="xg2">{$attach['description']}</p>
  141. EOF;
  142. }
  143. $return .= <<<EOF
  144. {$pluginhook}
  145. </dd>
  146. </dl>
  147. </ignore_js_op>
  148. EOF;
  149. ?><?php return $return;?><?php }
  150. function imagelist($attach, $firstpost = 0) {
  151. global $_G;
  152. $attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
  153. $aidencode = packaids($attach);
  154. $widthcode = attachwidth($attach['width']);
  155. $is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
  156. $attachthumb = getimgthumbname($attach['attachment']);
  157. $pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]] : '';?><?php
  158. $__STATICURL = STATICURL;$return = <<<EOF
  159. EOF;
  160. if($attach['attachimg'] && $_G['setting']['showimages'] && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) {
  161. $return .= <<<EOF
  162. <ignore_js_op>
  163. EOF;
  164. if(!IS_ROBOT) {
  165. $return .= <<<EOF
  166. <dl class="tattl attm">
  167. <dt></dt>
  168. <dd>
  169. <p class="mbn">
  170. <a href="forum.php?mod=attachment{$is_archive}&amp;aid={$aidencode}&amp;nothumb=yes" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" id="aid{$attach['aid']}" class="xw1" target="_blank">{$attach['filename']}</a>
  171. <em class="xg1">({$attach['attachsize']}, 下载次数: {$attach['downloads']})</em>
  172. EOF;
  173. if($firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])) {
  174. $return .= <<<EOF
  175. <a href="forum.php?mod=ajax&amp;action=setthreadcover&amp;aid={$attach['aid']}&amp;fid={$_G['fid']}" onclick="showWindow('setcover{$attach['aid']}', this.href)">设为封面</a>
  176. EOF;
  177. }
  178. $return .= <<<EOF
  179. </p>
  180. <div class="tip tip_4" id="aid{$attach['aid']}_menu" style="display: none" disautofocus="true">
  181. <div class="tip_c">
  182. <p class="y">{$attach['dateline']} 上传</p>
  183. <p>点击文件名下载附件</p>
  184. <p>
  185. <a href="javascript:;" onclick="imageRotate('aimg_{$attach['aid']}', 1)"><img src="{$__STATICURL}image/common/rleft.gif" class="vm" /></a>
  186. <a href="javascript:;" onclick="imageRotate('aimg_{$attach['aid']}', 2)"><img src="{$__STATICURL}image/common/rright.gif" class="vm" /></a>
  187. </p>
  188. </div>
  189. <div class="tip_horn"></div>
  190. </div>
  191. <p class="mbn">
  192. EOF;
  193. if($attach['readperm']) {
  194. $return .= <<<EOF
  195. 阅读权限: <strong>{$attach['readperm']}</strong>
  196. EOF;
  197. } if($attach['price']) {
  198. $return .= <<<EOF
  199. 售价: <strong>{$attach['price']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title']}</strong> &nbsp;[<a href="forum.php?mod=misc&amp;action=viewattachpayments&amp;aid={$attach['aid']}" onclick="showWindow('attachpay', this.href)" target="_blank">记录</a>]
  200. EOF;
  201. if(!$attach['payed']) {
  202. $return .= <<<EOF
  203. &nbsp;[<a href="forum.php?mod=misc&amp;action=attachpay&amp;aid={$attach['aid']}&amp;tid={$attach['tid']}" onclick="showWindow('attachpay', this.href)" target="_blank">购买</a>]
  204. EOF;
  205. } }
  206. $return .= <<<EOF
  207. </p>
  208. EOF;
  209. if($attach['description']) {
  210. $return .= <<<EOF
  211. <p class="mbn xg2">{$attach['description']}</p>
  212. EOF;
  213. }
  214. $return .= <<<EOF
  215. {$pluginhook}
  216. EOF;
  217. if(!$attach['price'] || $attach['payed']) {
  218. $return .= <<<EOF
  219. <p class="mbn">
  220. EOF;
  221. if($_G['setting']['thumbstatus'] && $attach['thumb']) {
  222. $return .= <<<EOF
  223. <a href="javascript:;"><img id="aimg_{$attach['aid']}" aid="{$attach['aid']}" src="{$__STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'), 0, 0, '{$_G['setting']['showexif']}')" zoomfile="
  224. EOF;
  225. if($attach['refcheck']) {
  226. $return .= <<<EOF
  227. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes&nothumb=yes
  228. EOF;
  229. } else {
  230. $return .= <<<EOF
  231. {$attach['url']}{$attach['attachment']}
  232. EOF;
  233. }
  234. $return .= <<<EOF
  235. " file="
  236. EOF;
  237. if($attach['refcheck']) {
  238. $return .= <<<EOF
  239. forum.php?mod=attachment{$is_archive}&aid={$aidencode}
  240. EOF;
  241. } else {
  242. $return .= <<<EOF
  243. {$attach['url']}{$attachthumb}
  244. EOF;
  245. }
  246. $return .= <<<EOF
  247. " alt="{$attach['imgalt']}" title="{$attach['imgalt']}" w="{$attach['width']}" /></a>
  248. EOF;
  249. } else {
  250. $return .= <<<EOF
  251. <img id="aimg_{$attach['aid']}" aid="{$attach['aid']}" src="{$__STATICURL}image/common/none.gif" zoomfile="
  252. EOF;
  253. if($attach['refcheck']) {
  254. $return .= <<<EOF
  255. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes&nothumb=yes
  256. EOF;
  257. } else {
  258. $return .= <<<EOF
  259. {$attach['url']}{$attach['attachment']}
  260. EOF;
  261. }
  262. $return .= <<<EOF
  263. " file="
  264. EOF;
  265. if($attach['refcheck']) {
  266. $return .= <<<EOF
  267. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes
  268. EOF;
  269. } else {
  270. $return .= <<<EOF
  271. {$attach['url']}{$attach['attachment']}
  272. EOF;
  273. }
  274. $return .= <<<EOF
  275. " {$widthcode} alt="{$attach['imgalt']}" title="{$attach['imgalt']}" w="{$attach['width']}" />
  276. EOF;
  277. }
  278. $return .= <<<EOF
  279. </p>
  280. EOF;
  281. }
  282. $return .= <<<EOF
  283. </dd>
  284. </dl>
  285. EOF;
  286. } else {
  287. $return .= <<<EOF
  288. <dl class="tattl attm">
  289. EOF;
  290. if(!$attach['price'] || $attach['payed']) {
  291. $return .= <<<EOF
  292. <dd>
  293. EOF;
  294. if($attach['description']) {
  295. $return .= <<<EOF
  296. <p>{$attach['description']}</p>
  297. EOF;
  298. }
  299. $return .= <<<EOF
  300. <img src="
  301. EOF;
  302. if($attach['refcheck']) {
  303. $return .= <<<EOF
  304. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes
  305. EOF;
  306. } else {
  307. $return .= <<<EOF
  308. {$attach['url']}{$attach['attachment']}
  309. EOF;
  310. }
  311. $return .= <<<EOF
  312. " alt="{$attach['imgalt']}" title="{$attach['imgalt']}" />
  313. </dd>
  314. EOF;
  315. }
  316. $return .= <<<EOF
  317. </dl>
  318. EOF;
  319. }
  320. $return .= <<<EOF
  321. </ignore_js_op>
  322. EOF;
  323. }
  324. $return .= <<<EOF
  325. EOF;
  326. ?><?php return $return;?><?php }
  327. function attachinpost($attach, $post) {
  328. global $_G;
  329. $firstpost = $post['first'];
  330. $attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
  331. $aidencode = packaids($attach);
  332. $widthcode = attachwidth($attach['width']);
  333. $is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G[forum_thread][archiveid] : '';
  334. $attachthumb = getimgthumbname($attach['attachment']);
  335. $musiccode = getstatus($post[status], 7) && fileext($attach['attachment']) == 'mp3' ? (browserversion('ie') > 8 || browserversion('safari') ? '<audio controls="controls"><source src="'.$attach['url'].$attach['attachment'].'"></audio>' : parseaudio($attach['url'].$attach['attachment'], 400)) : '';?><?php
  336. $__STATICURL = STATICURL;$return = <<<EOF
  337. <ignore_js_op>
  338. EOF;
  339. if($attach['attachimg'] && $_G['setting']['showimages'] && (!$attach['price'] || $attach['payed']) && ($_G['group']['allowgetimage'] || $_G['uid'] == $attach['uid'])) { if(!IS_ROBOT) { if($_G['setting']['thumbstatus'] && $attach['thumb']) {
  340. $return .= <<<EOF
  341. <img
  342. EOF;
  343. if($attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']) {
  344. $return .= <<<EOF
  345. class="attprice"
  346. EOF;
  347. }
  348. $return .= <<<EOF
  349. style="cursor:pointer" id="aimg_{$attach['aid']}" aid="{$attach['aid']}" src="{$__STATICURL}image/common/none.gif" onclick="zoom(this, this.getAttribute('zoomfile'), 0, 0, '{$_G['setting']['showexif']}')" zoomfile="
  350. EOF;
  351. if($attach['refcheck']) {
  352. $return .= <<<EOF
  353. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes&nothumb=yes
  354. EOF;
  355. } else {
  356. $return .= <<<EOF
  357. {$attach['url']}{$attach['attachment']}
  358. EOF;
  359. }
  360. $return .= <<<EOF
  361. " file="
  362. EOF;
  363. if($attach['refcheck']) {
  364. $return .= <<<EOF
  365. forum.php?mod=attachment{$is_archive}&aid={$aidencode}
  366. EOF;
  367. } else {
  368. $return .= <<<EOF
  369. {$attach['url']}{$attachthumb}
  370. EOF;
  371. }
  372. $return .= <<<EOF
  373. " inpost="1" alt="{$attach['imgalt']}" title="{$attach['imgalt']}" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />
  374. EOF;
  375. } else {
  376. $return .= <<<EOF
  377. <img
  378. EOF;
  379. if($attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']) {
  380. $return .= <<<EOF
  381. class="attprice"
  382. EOF;
  383. }
  384. $return .= <<<EOF
  385. id="aimg_{$attach['aid']}" aid="{$attach['aid']}" src="{$__STATICURL}image/common/none.gif" zoomfile="
  386. EOF;
  387. if($attach['refcheck']) {
  388. $return .= <<<EOF
  389. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes&nothumb=yes
  390. EOF;
  391. } else {
  392. $return .= <<<EOF
  393. {$attach['url']}{$attach['attachment']}
  394. EOF;
  395. }
  396. $return .= <<<EOF
  397. " file="
  398. EOF;
  399. if($attach['refcheck']) {
  400. $return .= <<<EOF
  401. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes
  402. EOF;
  403. } else {
  404. $return .= <<<EOF
  405. {$attach['url']}{$attach['attachment']}
  406. EOF;
  407. }
  408. $return .= <<<EOF
  409. " {$widthcode} id="aimg_{$attach['aid']}" inpost="1" alt="{$attach['imgalt']}" title="{$attach['imgalt']}" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />
  410. EOF;
  411. }
  412. $return .= <<<EOF
  413. <div class="tip tip_4 aimg_tip" id="aimg_{$attach['aid']}_menu" style="position: absolute; display: none" disautofocus="true">
  414. <div class="tip_c xs0">
  415. <div class="y">{$attach['dateline']} 上传</div>
  416. <a href="forum.php?mod=attachment{$is_archive}&amp;aid={$aidencode}&amp;nothumb=yes" title="{$attach['filename']} 下载次数:{$attach['downloads']}" target="_blank"><strong>下载附件</strong> <span class="xs0">({$attach['attachsize']})</span></a>
  417. EOF;
  418. if($attach['description']) {
  419. $return .= <<<EOF
  420. <br />{$attach['description']}
  421. EOF;
  422. } if($firstpost && $_G['fid'] && $_G['forum']['picstyle'] && ($_G['forum']['ismoderator'] || $_G['uid'] == $attach['uid'])) {
  423. $return .= <<<EOF
  424. <br /><a href="forum.php?mod=ajax&amp;action=setthreadcover&amp;aid={$attach['aid']}&amp;fid={$_G['fid']}" onclick="showWindow('setcover{$attach['aid']}', this.href)">设为封面</a>
  425. EOF;
  426. } } else { if($attach['description']) {
  427. $return .= <<<EOF
  428. <p>{$attach['description']}</p>
  429. EOF;
  430. }
  431. $return .= <<<EOF
  432. <img src="
  433. EOF;
  434. if($attach['refcheck']) {
  435. $return .= <<<EOF
  436. forum.php?mod=attachment{$is_archive}&aid={$aidencode}&noupdate=yes
  437. EOF;
  438. } else {
  439. $return .= <<<EOF
  440. {$attach['url']}{$attach['attachment']}
  441. EOF;
  442. }
  443. $return .= <<<EOF
  444. " alt="{$attach['imgalt']}" title="{$attach['imgalt']}" />
  445. <div style="display: none">
  446. EOF;
  447. } } else { if($musiccode) {
  448. $return .= <<<EOF
  449. <div>{$musiccode}</div>
  450. EOF;
  451. }
  452. $return .= <<<EOF
  453. {$attach['attachicon']}
  454. <span style="white-space: nowrap" id="attach_{$attach['aid']}" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})">
  455. EOF;
  456. if(!$attach['price'] || $attach['payed']) {
  457. $return .= <<<EOF
  458. <a href="forum.php?mod=attachment{$is_archive}&amp;aid={$aidencode}" target="_blank">{$attach['filename']}</a>
  459. EOF;
  460. } else {
  461. $return .= <<<EOF
  462. <a href="forum.php?mod=misc&amp;action=attachpay&amp;aid={$attach['aid']}&amp;tid={$attach['tid']}" onclick="showWindow('attachpay', this.href)">{$attach['filename']}</a>
  463. EOF;
  464. }
  465. $return .= <<<EOF
  466. <em class="xg1">({$attach['attachsize']}, 下载次数: {$attach['downloads']}
  467. EOF;
  468. if($attach['price']) {
  469. $return .= <<<EOF
  470. , 售价: {$attach['price']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title']}
  471. EOF;
  472. }
  473. $return .= <<<EOF
  474. )</em>
  475. </span>
  476. <div class="tip tip_4" id="attach_{$attach['aid']}_menu" style="position: absolute; display: none" disautofocus="true">
  477. <div class="tip_c xs0">
  478. <div class="y">{$attach['dateline']} 上传</div>
  479. 点击文件名下载附件
  480. EOF;
  481. if($attach['description']) {
  482. $return .= <<<EOF
  483. <br />{$attach['description']}
  484. EOF;
  485. } if($attach['readperm']) {
  486. $return .= <<<EOF
  487. <br />阅读权限: {$attach['readperm']}
  488. EOF;
  489. } } if($attach['price']) {
  490. $return .= <<<EOF
  491. <br />售价: {$attach['price']} {$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title']} &nbsp;<a href="forum.php?mod=misc&amp;action=viewattachpayments&amp;aid={$attach['aid']}" onclick="showWindow('attachpay', this.href)" target="_blank">[记录]</a>
  492. EOF;
  493. if(!$attach['payed']) {
  494. $return .= <<<EOF
  495. &nbsp;[<a href="forum.php?mod=misc&amp;action=attachpay&amp;aid={$attach['aid']}&amp;tid={$attach['tid']}" onclick="showWindow('attachpay', this.href)" target="_blank">购买</a>]
  496. EOF;
  497. } } if(!$attach['attachimg'] && $_G['getattachcredits']) {
  498. $return .= <<<EOF
  499. <br />下载积分: {$_G['getattachcredits']}
  500. EOF;
  501. }
  502. $return .= <<<EOF
  503. </div>
  504. <div class="tip_horn"></div>
  505. </div>
  506. EOF;
  507. if($musiccode) {
  508. $return .= <<<EOF
  509. <br />
  510. EOF;
  511. }
  512. $return .= <<<EOF
  513. </ignore_js_op>
  514. EOF;
  515. ?><?php return $return;?><?php }?>