{imp:"c_pub/a-frame"}<!--模板继承-->

{block:init}{:parent}<?php
$whr = "auser='$uname'";
if(empty($this->key)){
    $title = lang('user.pub_hisord');
}elseif($this->key=='nodone'){ 
    $title = lang('user.ord_noend');
    $whr .= " AND ordstat='new'";
}elseif($this->key=='isdone'){
    $title = lang('user.ord_isend');
    $whr .= " AND ordstat='done'";
}
$tipmsg = $title;
$ordcnt = 0;
//$tipmsg = lang('user.pub_epass');
?>{/block:init}

{block:action}
<div class="umc-mitem">
    <h3><i>order list</i>{=$title}</h3>
    <table class="tblist"> 
        <tr class="ordtitle">
        <td class="tc">{lang(user.ord_no2)}</td>
        <td class="tc">{lang(user.ord_stat)}</td>
        <td class="tc">{lang(user.ord_amount)}</td>
        <td class="tl">{lang(user.ord_pro)}</td>
        <td class="tc">{lang(user.ord_time)}</td>
        </tr>
        {tag:ordlist=[List][modid,corder][where,$whr][limit,100]}
        <?php $item=exvOcar::ilist('coms_coitem',"ordid='$t_cid'",2); @$v=@$item['data'][0]; $ordcnt=$t_ordlist ? count($t_ordlist) : 0; ?>
        <tr>
        <td class="tc"><a href="{surl(comm:0)}?ocar-invoce&ordid={=$t_cid}" target="detail">{=$t_cid}</a></td>
        <td class="tc">{sopt($t_ordstat,corder.ordstat,0,0)}</td>
        <td class="tc">{=$t_feeamount}</td>
        <td class="tl"><a href="{surl("cargo.$v[pid]")}" target="detail">{=$v['title']}</a>{if $item['sum']['acnt']>1}<i class="c999">{lang(user.ord_more)}</i>{/if}</td>
        <td class="tc">{stime($t_atime,min)}</td>
        </tr>
        {/tag:ordlist}
        {if !$ordcnt}
        <tr>
        <td> {lang(flow.dops_nodata)} </td>
        </tr>
        {/if}
    </table>
</div>
{/block:action}

// notes 
[where,$whr]