<html xmlns:o="urn:schemas-microsoft-com:office:office" 
 xmlns:x="urn:schemas-microsoft-com:office:excel" 
 xmlns="http://www.w3.org/TR/REC-html40"> 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 <html> 
     <head> 
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> 
         <style id="Classeur1_16681_Styles"></style> 
     </head> 
     <body> 
<div id="Classeur1_16681" align=center x:publishsource="Excel"> 
<table x:str border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid"> 
    <thead>
        <tr>
            <th>订单时间</th>
            <th>单号</th>
            <th>交易状态</th>
            <th>订单金额</th>
            <th>订单详情</th>
            <th>收货人</th>
            <th>联系电话</th>            
            <th>收货地址</th>
            <th>发货时间</th>
            <th>物流公司</th>            
            <th>快递单号</th>
        </tr>
    </thead>
    {foreach $order as $order_no => $rs}
    <tbody>
        <tr>
            <td>{$rs.order_starttime}</td>
            <td>{$order_no}</td>
            <td>
                {if $rs.is_del ==1}已删除{else}
                    {if $rs.status == 1}已完成{else}
                        {if $rs.paid_at}{if $rs.express_status}已发货{else}{if $rs.is_entrust}待发货{else}待确认{/if}{/if}{else}待付款{/if}
                    {/if}
                {/if}
            </td>
            <td>¥{$rs.order_amount}</td>
            <td>
                <table border=1 cellpadding=0 cellspacing=0 width="100%" style="border-collapse: collapse;border 1px #000 solid">
                    <tr height="80">
                        <td width="80"><img src="{$rs.item.img}" width="80" height="80"/></td>
                        <td>{$rs.item.name}</td>
                        <td>{if $rs.is_entrust}{$rs.fusion_state?'寄卖中':'已提货'}{else}待提货{/if}</td>
                        <td>¥{$rs.item.amount}</td>
                    </tr>
                    {foreach $rs.gift as $key => $vo}
                     <tr height="80">
                        <td width="80"><img src="{$vo.img}" width="80" height="80"/></td>
                        <td>{$vo.name}</td>
                        <td>
                            {if $rs.is_entrust}
                                {if $rs.fusion_state == 1}
                                    已提货
                                {else}
                                    {if $rs.entrust[$key] == true}已退货{else}已提货{/if}
                                {/if}
                            {else}
                                待提货
                            {/if}
                        </td>
                        <td>¥{$vo.sale_price}</td>
                    </tr>
                    {/foreach}
                </table>
            </td>
            <td>{$rs.express_name}</td>
            <td>{$rs.express_phone}</td>
            <td>{$rs.express_address}</td>
            <td>{if $rs.express_starttime}{$rs.express_starttime}{/if}</td>
            <td>{$rs.express_company}</td>
            <td>{$rs.express_no}</td>
        </tr>
    </tbody>
    {/foreach}
</table>
</div>
</body>
</html>