<?php
 include template("header"); ;echo '<div id="menu2"><a href="#">小菜单</a></div>
<div id="data">
    <h2>订单商品：</h2>
    <table>
        <form id="order_item" action="'; echo WEB_ROOT; ;echo '/manage/order_item.php?order_number='; echo $order_number; ;echo '" method="post">
        <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>
        '; 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['zone']."｜".$one['category_name']; ;echo '</td>
            <td>'; echo $one['size']; ;echo '</td>
            <td><input name="item['; echo $one['id']; ;echo '][quantity]" value="'; echo $one['quantity'] ;echo '" size="6" /></td><td>'; echo $one['weight']; ;echo '</td>
            <td>'; echo $one['origin']; ;echo '</td>
            <td>'; echo $one['cost'] ;echo '</td>
            <td>'; echo $one['discount'] ;echo '</td>
            <td>'; echo $one['discount']*$one['origin']; ;echo '</td>
            <td>'; echo state($one['state']); ;echo '</td>
            <td>
                <input name="item['; echo $one['id']; ;echo '][refund]" type="checkbox" '; if($one['state']=='refund') echo "disabled='true'"; ;echo ' />
            </td>
        </tr>
        '; }} ;echo '        <tr><td colspan="11">'; echo $pagestring; ;echo '</td></tr>
        </form>
    </table>
    <div id="fm" style="display:none">
    </div>
    <div id="op">
        <h2>[<a href="javascript:if(confirm(\'确认更新订单吗？\'))$(\'#order_item\').submit()">更新订单</a>]</h2>
    </div>

    <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="help">help</div>
'; include template("footer"); ?>
