viewthread_trade.htm
4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!--{if !$post['message'] && (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && $post['authorid'] == $_G['uid']))}-->
<div class="box">
<a href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]&page=$page">
<span>{lang post_add_aboutcounter}</span>
</a>
</div>
<!--{else}-->
<div class="postmessage">
$post[message]
</div>
<!--{/if}-->
<!--{if count($trades) > 1 || ($_G['uid'] == $_G['forum_thread']['authorid'] || $_G['group']['allowedittrade'])}-->
<div class="box">
<em>{lang post_trade_totalnumber}: $tradenum</em>
<!--{if !$_G['forum_thread']['is_archived'] && ($_G['uid'] == $_G['forum_thread']['authorid'] || $_G['group']['allowedittrade'])}-->
<span class="xi1">{lang trade_mod}</span>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if $tradenum}-->
<!--{if $trades}-->
<!--{loop $trades $key $trade}-->
<div id="trade$trade[pid]" class="box">
<div>
<!--{if $trade['displayorder'] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<!--{if $trade['thumb']}-->
<img src="$trade[thumb]" width="{if $trade[width] > 90}90{else}$trade[width]{/if}" _width="90" _height="90" alt="$trade[subject]" />
<!--{else}-->
<img src="{IMGDIR}/nophotosmall.gif" width="90" height="90" alt="$trade[subject]" />
<!--{/if}-->
</div>
<div>
<h4>$trade[subject]</h4>
<dl>
<dt>{lang trade_type_viewthread}:
<!--{if $trade['quality'] == 1}-->{lang trade_new}<!--{/if}-->
<!--{if $trade['quality'] == 2}-->{lang trade_old}<!--{/if}-->
{lang trade_type_buy}
</dt>
<dt>{lang trade_remaindays}:
<!--{if $trade[closed]}-->
<em>{lang trade_timeout}</em>
<!--{elseif $trade[expiration] > 0}-->
{$trade[expiration]}{lang days}{$trade[expirationhour]}{lang trade_hour}
<!--{elseif $trade[expiration] == -1}-->
<em>{lang trade_timeout}</em>
<!--{else}-->
<!--{/if}-->
</dt>
</dl>
<div>
<!--{if $trade[price] > 0}-->
<strong>$trade[price]</strong> {lang payment_unit}
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade[credit]}-->
<!--{if $trade['price'] > 0}-->{lang trade_additional} <!--{/if}--><strong>$trade[credit]</strong> {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][5]][title]}
<!--{/if}-->
<p class="xg1">
<!--{if $trade['costprice'] > 0}-->
<del>$trade[costprice] {lang payment_unit}</del>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $trade['costcredit'] > 0}-->
<del><!--{if $trade['costprice'] > 0}-->{lang trade_additional} <!--{/if}-->$trade[costcredit] {$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}</del>
<!--{/if}-->
</p>
</div>
</div>
</div>
<!--{/loop}-->
<!--{/if}-->
<div id="postmessage_$post[pid]">$post[counterdesc]</div>
<!--{else}-->
<div class="locked">{lang trade_nogoods}</div>
<!--{/if}-->