{template 'user/head.html'}
<div id="position">
    <a href="javascript:history.back(-1)"><img src="{$base_url}/images/user/skin/undo.gif" style="float:right;" /></a>{lang(nowposition)}：{lang(listorders)}
</div>


<div class="blank10"></div>

<script type="text/javascript" src="{$base_url}/common/js/list.js"></script>
<script language="javascript" src="{$base_url}/common/js/common.js"></script>


<form name="listform" id="listform"  action="<?php echo uri();?>" method="post">

    <table border="0" cellspacing="0" cellpadding="4" class="list" name="table" id="table">
        <thead>
            <tr>
                <th align="center"><!--oid-->{lang(id)}</th>
                <th align="center"><!--status-->{lang(orderstatus)}</th>               
                <th align="center"><!--adddate-->{lang(adddate)}</th>
          
                <th align="center">{lang(dosomething)}</th>
            </tr>

        </thead>
        <tbody>
            {loop $data $d}
<?php
 

switch($d['status']){
				case 1:
				$d['status']='完成';
				break;
				case 2:
				$d['status']='处理中';
				break;
				case 3:
				$d['status']='已发货';
				break;
				case 4:
				$d['status']='客户已付款，待审核';
				break;
				case 5:
				$d['status']='已核实客户支付';
				break;
				default:
				$d['status']='新订单';
				break;	
			}

?>
            <tr class="s_out" onmouseover="m_over(this)" onmouseout="m_out(this)">

                <td align="center">{$d['oid']}</td>
                <td align="center">{$d['status']}</td>
                <td align="center">{date('Y-m-d H:i:s',$d['adddate'])}</td>

                <td align="center">
                    <a href='<?php echo url("archive/orders/oid/".$d['oid'],false);?>' target="_blank" >{lang(look)}</a>                   
                </td>
            </tr>
            {/loop}


        </tbody>
    </table>


    <div class="blank10"></div>
   

</form>


<div class="page"><?php if(get('table')!='type' && front::get('case')!='field') echo pagination::html($record_count); ?></div>

<div class="blank30"></div> <div class="blank30"></div></div>
{template 'user/foot.html'}