space_trade.htm
10.1 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!--{template common/header}-->
<!--{eval
$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&do=trade\">{lang trade}</a>";
}-->
<!--{if $_GET[view] == 'eccredit'}-->
<!--{eval
$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=$do&view=eccredit\">{lang they_credit_rating}</a>";
}-->
<!--{else}-->
<!--{eval
$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=$do&view=onlyuser\">{lang they_trade}</a>";
}-->
<!--{/if}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
<a href="home.php?mod=space&do=thread">{lang post}</a> <em>›</em>
<a href="home.php?mod=space&uid=$space[uid]&do=trade&view=me">{lang trade}</a>
</div>
</div>
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
<div class="bm bw0">
<!--{if (!$_G['uid'] && !$space[uid]) || $space[self]}-->
<h1 class="mt"><img alt="trade" src="{IMGDIR}/tradesmall.gif" class="vm" /> {lang trade}</h1>
<!--{/if}-->
<!--{if $space[self]}-->
<ul class="tb cl">
<li$actives[we]><a href="home.php?mod=space&do=trade&view=we">{lang friend_trade}</a></li>
<li$actives[me]><a href="home.php?mod=space&do=trade&view=me">{lang my_trade}</a></li>
<li$actives[tradelog]><a href="home.php?mod=space&do=trade&view=tradelog">{lang trade_log}</a></li>
<li><a href="home.php?mod=space&do=trade&view=eccredit" target="_blank">{lang credit_rating}</a></li>
<!--{if $_G[group][allowposttrade]}-->
<li class="o">
<!--{if $_G[setting][tradeforumid]}-->
<a href="forum.php?mod=post&action=newthread&fid=$_G[setting][tradeforumid]&special=2">{lang create_new_trade}</a>
<!--{else}-->
<a href="forum.php?mod=misc&action=nav&special=2" onclick="showWindow('nav', this.href)">{lang create_new_trade}</a>
<!--{/if}-->
</li>
<!--{/if}-->
</ul>
<!--{else}-->
<!--{template home/space_menu}-->
<p class="tbmu cl">
<span class="y">
<!--{if $_GET[view]=='me'}-->
<!--{eval $actives[onlyuser]=' class="a"';}-->
<!--{/if}-->
<!--{if $space[uid] > 0}-->
<a href="home.php?mod=space&do=trade&view=onlyuser"$actives[onlyuser]>{lang sale_of_goods}</a><span class="pipe">|</span>
<a href="home.php?mod=space&do=trade&view=eccredit"$actives[eccredit]>{lang credit_rating}</a>
<!--{/if}-->
</span>
</p>
<!--{/if}-->
<!--{if $_GET[view] == 'tradelog' && $space[uid] > 0}-->
<p class="tbmu bw0">
<a href="home.php?mod=space&do=trade&view=tradelog" $orderactives[sell]>{lang sell_trade}</a><span class="pipe">|</span>
<a href="home.php?mod=space&do=trade&view=tradelog&type=buy" $orderactives[buy]>{lang buy_trade}</a>
</p>
<!--{/if}-->
<!--{if $userlist}-->
<p class="tbmu">
{lang view_by_friend}
<select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
<option value="">{lang all_friends}</option>
<!--{loop $userlist $value}-->
<option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
<!--{/loop}-->
</select>
</p>
<!--{/if}-->
<!--{if $_GET[view] == 'tradelog'}-->
<!--{eval
$selltrades = array('all' => '{lang trade_all}', 'trading' => '{lang trade_trading}', 'attention' => '{lang trade_attention}', 'eccredit' => '{lang trade_eccredit}', 'success' => '{lang trade_success}', 'refund' => '{lang trade_refund}', 'closed' => '{lang trade_closed}', 'unstart' => '{lang trade_unstart}');
}-->
<div class="tl tlog">
<table id="list_trade_selles" cellspacing="0" cellpadding="0">
<tr class="th">
<td width="90">{lang trade_goods_name}</td>
<td> </td>
<td class="by"><!--{if $viewtype == 'sell'}-->{lang trade_buyer}<!--{else}-->{lang trade_seller}<!--{/if}--></td>
<td class="by">{lang trade_amount}</td>
<td>
<select onchange="filterTrade(this.value)">
<!--{loop $selltrades $key $langstr}-->
<option value="$key" {if $filter == $key} selected="selected"{/if}>$langstr</option>
<!--{/loop}-->
</select>
<script type="text/javascript">
function filterTrade(value) {
window.location = 'home.php?mod=space&do=trade&view=tradelog&type=$viewtype&filter='+value;
}
</script>
</td>
<!--{if $filter == 'success' || $filter == 'refund' || $filter == 'eccredit'}--><td>{lang trade_rate}</td><!--{/if}-->
</tr>
<tbody>
<!--{if $tradeloglist}-->
<!--{loop $tradeloglist $tradelog}-->
<tr>
<td>
<a href="forum.php?mod=viewthread&tid=$tradelog[tid]&do=tradeinfo&pid=$tradelog[pid]"><!--{if $tradelog['aid']}--><img src="{echo getforumimg($tradelog[aid])}" width="90" /><!--{else}--><img src="{IMGDIR}/nophotosmall.gif" /><!--{/if}--></a>
</td>
<td>
<a href="forum.php?mod=trade&orderid=$tradelog[orderid]">$tradelog[subject]</a><br />
<a href="forum.php?mod=viewthread&tid=$tradelog[tid]&do=tradeinfo&pid=$tradelog[pid]" class="xg1">$tradelog[threadsubject]</a>
</td>
<td>
<!--{if $item == 'selltrades'}-->
<!--{if $tradelog['buyerid']}--><a target="_blank" href="home.php?mod=space&uid=$tradelog[buyerid]">$tradelog[buyer]</a><!--{else}-->$tradelog[buyer]<!--{/if}-->
<!--{else}-->
<a target="_blank" href="home.php?mod=space&uid=$tradelog[sellerid]">$tradelog[seller]</a>
<!--{/if}-->
</td>
<td>
<!--{if $tradelog[price] > 0}-->
$tradelog[price] {lang trade_units}<br/>
<!--{/if}-->
<!--{if $tradelog[credit] > 0}-->
{$extcredits[$creditid][title]} $tradelog[credit] {$extcredits[$creditid][unit]}
<!--{/if}-->
</td>
<td>
<cite><a target="_blank" href="forum.php?mod=trade&orderid=$tradelog[orderid]">
<!--{if $tradelog['attend']}-->
<b>$tradelog[status]</b>
<!--{else}-->
$tradelog[status]
<!--{/if}-->
</a></cite>
<em>$tradelog[lastupdate]</em>
</td>
<!--{if $filter == 'success' || $filter == 'refund' || $filter == 'eccredit'}-->
<td>
<!--{if $tradelog[ratestatus] == 3}-->
{lang eccredit_post_between}
<!--{elseif ($item == 'buytrades' && $tradelog[ratestatus] == 1) || ($item == 'selltrades' && $tradelog[ratestatus] == 2)}-->
{lang eccredit_post_waiting}
<!--{else}-->
<!--{if ($item == 'buytrades' && $tradelog[ratestatus] == 2) || ($item == 'selltrades' && $tradelog[ratestatus] == 1)}-->{lang eccredit_post_already}<br /><!--{/if}-->
<!--{if $item == 'buytrades'}-->
<a href="home.php?mod=spacecp&ac=eccredit&op=rate&orderid=$tradelog[orderid]&type=0" target="_blank">{lang eccredit1}</a>
<!--{else}-->
<a href="home.php?mod=spacecp&ac=eccredit&op=rate&orderid=$tradelog[orderid]&type=1" target="_blank">{lang eccredit1}</a>
<!--{/if}-->
<!--{/if}-->
</td>
<!--{/if}-->
</tr>
<!--{/loop}-->
<!--{else}-->
<td colspan="{if $filter == 'success' || $filter == 'refund' || $filter == 'eccredit'}6{else}5{/if}"><p class="emp">{lang data_nonexistence}</p></td></tr>
<!--{/if}-->
</tbody>
</table>
</div>
<!--{else}-->
<!--{if $list}-->
<ul class="ml tradl cl">
<!--{loop $list $key $value}-->
<li class="bbda">
<p class="u xg1"><a href="home.php?mod=space&uid=$value[sellerid]" title="$value[seller]" target="_blank">$value[seller]</a></p>
<a href="forum.php?mod=viewthread&tid=$value[tid]&do=tradeinfo&pid=$value[pid]" class="tn" target="_blank">
<!--{if $value[displayorder] > 0}--><em class="hot">{lang post_trade_sticklist}</em><!--{/if}-->
<img src="{if $value[aid]}{echo getforumimg($value[aid])}{else}{IMGDIR}/nophoto.gif{/if}" alt="$value[subject]" />
</a>
<!--{if $value[expiration] && $value[expiration] < $_G[timestamp] || $value[closed]}-->
<p class="stat">- {lang trade_closing} -</p>
<!--{else}-->
<!--{if $value[price] > 0}-->
<p class="p">¥ <em class="xi1">$value[price]</em></p>
<!--{/if}-->
<!--{if $_G['setting']['creditstransextra'][5] != -1 && $value[credit]}-->
<p class="{if $value[price] > 0}xg1{else}p{/if}"><!--{if $value[price] > 0}-->{lang additional} <!--{/if}--><em class="xi1">$value[credit]</em> {$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][unit]}{$_G[setting][extcredits][$_G['setting']['creditstransextra'][5]][title]}</p>
<!--{/if}-->
<!--{/if}-->
<h4><a href="forum.php?mod=viewthread&tid=$value[tid]&do=tradeinfo&pid=$value[pid]" title="$value[subject]" class="xi2" target="_blank">$value[subject]</a></h4>
</li>
<!--{/loop}-->
<!--{if $emptyli}-->
<!--{loop $emptyli $value}-->
<li class="bbda"> </li>
<!--{/loop}-->
<!--{/if}-->
</ul>
<!--{else}-->
<div class="emp">{lang no_trade}</div>
<!--{/if}-->
<!--{/if}-->
</div>
<!--{if $hiddennum}-->
<p class="mtm">{lang hide_trade}</p>
<!--{/if}-->
<!--{if $multi}--><div class="pgs cl">$multi</div><!--{/if}--><br />
<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
</div>
<div class="appl">
<!--{subtemplate home/space_thread_nav}-->
<div class="drag">
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
</div>
</div>
</div>
<div class="wp mtn">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<script type="text/javascript">
function fuidgoto(fuid) {
var parameter = fuid != '' ? '&fuid='+fuid : '';
window.location.href = 'home.php?mod=space&do=trade&view=we'+parameter;
}
</script>
<!--{template common/footer}-->