{template 'header', $module}
{if $action == 'bind'} {if $member[vtrade]}

{$DT[trade_nm]} | {$member[trade]}
{$DT[trade_nm]} |

{else}

{$DT[trade_nm]} |
{$DT[trade_nm]} |
| ¦Ä
| {$DT[trade_nm]}
| {$DT[trade_nm]}

{/if}
{elseif $action == 'update'} {if $step == 'edit_price'}

| T{$td[itemid]}
| {$td[title]}
| {if $DT[im_web]}{im_web($td[buyer])} {/if}{$td[buyer]}
| {$td[buyer_receive]}
| {$td[note]}
| {$td[adddate]}
| {$td[price]}
| {$td[number]}
| {$td[amount]}
* |
* | {$DT[money_unit]}
{if $td[status] < 1}
{/if} {if $_userid && $DT[sms]}
| ( {$_sms} )
{/if}

{elseif $step == 'detail'}

| T{$td[itemid]} {if $DT[trade]}({$DT[trade_nm]}:{$td[trade_no]}){/if}
| {$td[title]}
{if $td[seller] == $_username}
| {if $DT[im_web]}{im_web($td[buyer])} {/if}{$td[buyer]}
{elseif $td[buyer] == $_username}
| {if $DT[im_web]}{im_web($td[seller])} {/if}{$td[seller]}
{/if}

| {$td[buyer_postcode]}
| {$td[buyer_address]}
| {$td[buyer_name]}
| {$td[buyer_mobile]} {if $DT[sms]} {/if}
´Â | {$td[buyer_phone]}
| {$td[buyer_receive]}
| {$td[note]}
{if $td[send_time]}
| {$td[send_type]}
| {$td[send_no]}{if $td[send_no]} []{/if}
{/if}

| {$td[price]}
| {$td[number]}
{if $td[fee_name] && $td[fee]}
{$td[fee_name]} | {$td[fee]}
{/if}
| {$td[total]}

| {$td[adddate]}
| {$td[updatedate]}
{if $td[send_time]}
| {$td[send_time]}
{/if}
| {$_status[$td[status]]}
{if $td[buyer_reason]}
| {$td[buyer_reason]}
{/if}

{elseif $step == 'pay'}

| T{$td[itemid]} {if $DT[trade]}({$DT[trade_nm]}:{$td[trade_no]}){/if}
| {$td[title]}
| {if $DT[im_web]}{im_web($td[seller])} {/if}{$td[seller]}
| {$td[adddate]}
| {$td[buyer_receive]}
| {$td[note]}
| {$td[price]}
| {$td[number]}
{if $td[fee]>0.1}
{$td[fee_name]} | {$td[fee]}
{/if}
| {$money}
| {$_money}
* | {template 'password', 'chip'}
{if $_userid && $DT[sms]}
| ( {$_sms} )
{/if}

{elseif $step == 'send_goods'}

{if $td[buyer_receive]}
| {$td[buyer_receive]}
{/if}
{if $_userid && $DT[sms]}
| ( {$_sms} )
{/if}

{elseif $step == 'add_time'}

* | ¦Ë:§³ 1=24§³

{elseif $step == 'refund'}

| T{$td[itemid]} {if $DT[trade]}({$DT[trade_nm]}:{$td[trade_no]}){/if}
| {$td[title]}
| {if $DT[im_web]}{im_web($td[seller])} {/if}{$td[seller]}
| {$td[adddate]}
| {$td[updatedate]}
| {$td[note]}
| {$td[price]}
| {$td[number]}
{if $td[fee_name] && $td[fee]}
{$td[fee_name]} | {$td[fee]}
{/if}
| {$money}
* | {deditor($moduleid, 'content', 'Simple', '98%', 200)}
* | {template 'password', 'chip'}

{elseif $step == 'comment'}

| ¦Í (0500) 0

{elseif $step == 'comment_detail'}

{if $_username==$td[buyer]}(){/if}

{if $cm[seller_star]}
| {$STARS[$cm[seller_star]]} {if $_username == $td[seller] && !$cm[buyer_reply]} [] {/if}
| {nl2br($cm[seller_comment])}
| {timetodate($cm[seller_ctime], 6)}
{if $cm[buyer_reply]}
| {nl2br($cm[buyer_reply])}
| {timetodate($cm[buyer_rtime], 6)}
{/if} {else}
| ¦Ä
{/if}

{if $_username==$td[seller]}(){/if}

{if $cm[buyer_star]}
| {$STARS[$cm[buyer_star]]} {if $_username == $td[buyer] && !$cm[seller_reply]} [] {/if}
| {nl2br($cm[buyer_comment])}
| {timetodate($cm[buyer_ctime], 6)}
{if $cm[seller_reply]}
| {nl2br($cm[seller_reply])}
| {timetodate($cm[seller_rtime], 6)}
{/if} {else}
| ¦Ä
{/if}

* | (2500) 0

{/if} {elseif $action == 'order'}
{$fields_select} {$status_select} {dcalendar('fromtime', $fromtime)} {dcalendar('totime', $totime)}
ID

{loop $trades $k $v}
| {$v[title]} | {$v[money]} | {$v[seller]} | {if $DT[im_web]}{im_web($v[seller].'&mid=16&itemid='.$v[mallid])} {/if} | {$v[addtime]} | {$v[updatetime]} | {$v[dstatus]}
| {if $v[status] == 0} {elseif $v[status] == 1} {if $DT[trade]} {else} {/if} {elseif $v[status] == 3} {if $v[lefttime]} {$v[lefttime]} {else} {/if} {elseif $v[status] == 4} {if $v[seller_star]} {else} {/if} {elseif $v[status] == 9} {/if} {$v[itemid]} {$v[price]} {$v[number]} {$v[note]} {/loop} {if $trades}
| §³ | {$money} | ¦Ê
{/if}

{$pages}
{else} {if $MG[trade_sell]}
{$fields_select} {$status_select} {dcalendar('fromtime', $fromtime)} {dcalendar('totime', $totime)}
ID

{loop $trades $k $v}
| {$v[title]}{if $v[status] == 0} {/if} | {$v[money]} | {$v[buyer]} | {if $DT[im_web]}{im_web($v[buyer].'&mid=16&itemid='.$v[mallid])} {/if} | {$v[addtime]} | {$v[updatetime]} | {$v[dstatus]}
| {if $v[status] == 0} {elseif $v[status] == 1} {elseif $v[status] == 2} {if !$DT[trade]}{/if} {elseif $v[status] == 3} {if $v[lefttime]} {$v[lefttime]} {else} {/if} {elseif $v[status] == 4} {if $v[buyer_star]} {else} {/if} {elseif $v[status] == 8} {/if} {$v[itemid]} {$v[price]} {$v[number]} {$v[note]} {/loop} {if $trades}
| §³ | {$money} | ¦Ê
{/if}

{$pages}
{else}
{$orders}
{/if}
{/if} {template 'footer', $module}