{subtemplate header}
<div id="nav">
<a href="$indexname">$bbname</a> &raquo; {lang search_trade}
</div>

<!--{if !empty($multipage)}--><div class="pages_btns">$multipage</div><!--{/if}-->
<div id="wrap" class="wrap s_clear">
	<div class="main">
		<div class="content">
		<h1>{lang search_trade}</h1>
		<div class="searchlist">
			<table cellspacing="0" cellpadding="0" width="100%">
			<thead>
				<tr class="colplural">
					<td colspan="2">{lang my_trade_goods_name}</td>
					<td style="width: 10%"><a href="search.php?searchid=$searchid&srchtype=trade&orderby=price&searchsubmit=yes">{lang post_trade_price}</a></td>
					<td style="width: 10%">{lang post_trade_locus}</td>
					<td style="width: 10%"><a href="search.php?searchid=$searchid&srchtype=trade&orderby=expiration&searchsubmit=yes">{lang trade_remaindays}</a></td>
				</tr>
			</thead>
			<tbody>
			<!--{if $tradelist}-->
				<!--{loop $tradelist $key $trade}-->
				<tr height="90" class="{echo swapclass('colplural')}">
					<td width="80" align="center">
					<a href="viewthread.php?do=tradeinfo&tid=$trade[tid]&pid=$trade[pid]" target="_blank">
					<!--{if $trade['aid']}-->
						<img class="absmiddle" src="attachment.php?aid=$trade[aid]&amp;k={echo md5($trade[aid].md5($authkey).$timestamp);}&amp;t=$timestamp&amp;noupdate=yes&sid=$sid" onload="thumbImg(this, 1)" _width="80" _height="80" alt="" border="0" /></a>
					<!--{else}-->
						<img class="absmiddle" src="{IMGDIR}/trade_nophotosmall.gif" alt="" border="0" /></a>
					<!--{/if}-->
					</td>
					<td>[{$tradetypes[$trade[typeid]]}] <a href="viewthread.php?do=tradeinfo&tid=$trade[tid]&pid=$trade[pid]" target="_blank">$trade[subject]</a><br />
					<em class="tips">{lang my_trade_seller}: <a href="space.php?$trade[sellerid]/mytrades">$trade[seller]</a></em>
					</td>
					<td><strong><b>$trade[price]</b></strong></td>
					<td>$trade[locus]&nbsp;</td>
					<td>
					<!--{if $trade[closed]}-->
						{lang trade_timeout}
					<!--{elseif $trade[expiration] > 0}-->
						{$trade[expiration]}{lang days}{$trade[expirationhour]}{lang trade_hour}
					<!--{elseif $trade[expiration] == -1}-->
						{lang trade_timeout}
					<!--{/if}-->&nbsp;
					</td>
					</tr>
				<!--{/loop}-->
			<!--{else}-->
				<tr><td colspan="6">{lang search_nomatch}</td></tr>
			<!--{/if}-->
			</tbody>
			</table>
		</div>
		</div>
	</div>
</div>
<!--{if !empty($multipage)}--><div class="pages_btns">$multipage</div><!--{/if}-->
{subtemplate footer}