{template "header.html"}

<form class="form-horizontal" method="post" role="form" id="myform">
    {dr_form_hidden()}
    <div class="form-body">
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('购买账号')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {Function_list::author($order.username)} </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('商品名称')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> <a href="{$order.url}" target="_blank">{$order.title}</a> </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('购买积分')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {$order.score} </p>
            </div>
        </div>
        {if $order.status == 1}
        <div class="form-group" id="dr_row_id">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('选择物流')}</label>
            <div class="col-xs-8">
                <select class="form-control" name="data[id]">
                    <option value="0"> -- </option>
                    {loop $delivery_corp $t}
                    <option value="{$t.id}">{$t.name}</option>
                    {/loop}
                </select>
            </div>
        </div>
        <div class="form-group" id="dr_row_sn">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('运单编号')}</label>
            <div class="col-xs-8">
                <input class="form-control" name="data[sn]" type="text">
            </div>
        </div>
        <div class="form-group" id="dr_row_name">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('收货人')}</label>
            <div class="col-xs-8">
                <input class="form-control" name="data[name]" value="{$order.name}" type="text">
            </div>
        </div>
        <div class="form-group" id="dr_row_phone">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('联系电话')}</label>
            <div class="col-xs-8">
                <input class="form-control" name="data[phone]" value="{$order.phone}" type="text">
            </div>
        </div>
        <div class="form-group" id="dr_row_address">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('联系电话')}</label>
            <div class="col-xs-8">
                <textarea class="form-control" id="dr_address" name="data[address]" rows="3">{$order.address}</textarea>
            </div>
        </div>
        {else}
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('收货人')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {$order.name} </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('联系电话')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {$order.phone} </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('收货地址')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {$order.address} </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('发货时间')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {dr_date($order.deliver_time)} </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('配送方式')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {$order.deliver_name} </p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label ajax_name">{dr_lang('运单编号')}</label>
            <div class="col-xs-8">
                <p class="form-control-static"> {$order.deliver_sn} </p>
                <p class="form-control-static kdinfo">  </p>
            </div>
        </div>
        {if $delivery.deliver_sn}
        <script>
            $.get('/index.php?s=mall&c=api&m=kuaidi&sn={$order.deliver_sn}&code={$delivery.code}', function (html) {
                $('.kdinfo').html(html);
            });
        </script>
        {/if}

        {/if}
    </div>
</form>


{template "footer.html"}