<?php
 include template("header"); ;echo '<div id="menu2"><a href="#">小菜单</a></div>
<div id="data">
    <h2>订单商品：</h2>
    <table>
        <thead><tr><th>款号</th><th>尺码</th><th>数量</th><th>单重</th><th>吊牌价</th><th>折扣</th><th>折扣价</th><th>状态</th></tr></thead>
        '; if(is_array($order_item)){foreach($order_item AS $index=>$one) { ;echo '        <tr id="item_'; echo $one['id']; ;echo '" onmouseover="cart_item_over(\'item_'; echo $one['id']; ;echo '\')" onmouseout="cart_item_out(\'item_'; echo $one['id']; ;echo '\')">
            <td>'; echo $one['item_number'] ;echo '</td><td>'; echo $one['size']; ;echo '</td>
            <td>'; echo $one['quantity'] ;echo '</td><td>'; echo $one['weight']; ;echo '</td>
            <td>'; echo $one['origin']; ;echo '</td><td>'; echo $one['discount'] ;echo '</td>
            <td>'; echo mceil($one['discount']*$one['origin']); ;echo '</td>
            <td>'; echo state($one['state']); ;echo '</td>
        </tr>
        '; }} ;echo '        <tr><td colspan="8">'; echo $pagestring; ;echo '</td></tr>
    </table>
    <h2>收货人信息：</h2>
    <table>
        <thead>
            <tr><th>姓名</th><th>联系方式</th><th>地址</th><th>物流</th><th>产品</th></tr>
        </thead>
        <tbody>
            <tr><td>'; echo $order_info['realname']; ;echo '</td>
                <td>手机：'; echo $order_info['mobile']; ;echo '<br />
                    固话：'; echo $order_info['phone']; ;echo '</td>
                <td>地区：'; echo $order_info['province']; ;echo '                    （邮编：'; echo $order_info['zipcode']; ;echo '）<br />
                    地址：'; echo $order_info['address']; ;echo '</td>
                <td>公司：'; echo OFare::getName($order_info['express_id']); ;echo '<br />
                    运费：'; echo $order_info['fare']; ;echo '</td>
                <td>总重：'; echo $order_info['weight']; ;echo '<br/>
                    总价：'; echo $order_info['sum']-$order_info['fare']; ;echo '                </td></tr>
        <tr><td colspan="4" align="right"><h2>订单总价（'; echo state($order_info['state']); ;echo '）</h2></td><td><h2>'; echo $order_info['sum']; ;echo '</h2></td></tr>
        </tbody>
    </table>
</div>
<div id="fm" style="display:none">
</div>
<div id="op">
    '; if($order_info['state']=='unpay') { ;echo '    <h2>[<a href="javascript:order_pay('; echo $order_info['order_number'] ;echo ')">确定支付</a>]</h2>
    '; } ;echo '</div>
<div id="help">help</div>
'; include template("footer"); ?>
