{template "header.html"}
<link href="{THEME_PATH}assets/mall/css/mall.css" rel="stylesheet" type="text/css" />
<div class="note note-danger">
    <p>
        <a href="{$order.url}">{$order.title}</a>
    </p>
</div>

<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {dr_form_hidden()}
    <input type="hidden" name="ids[]" value="{$order.id}" />
    <div class="portlet bordered light">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green">{dr_lang('订单信息')}</span>
            </div>
        </div>
        <div class="portlet-body form">

            <div class="form-body">

                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group row">
                            <label class="col-md-3 control-label">{dr_lang('下单时间')}</label>
                            <div class="col-md-7">
                                <p class="form-control-static">{dr_date($order._inputtime, 'Y-m-d H:i:s', 'red')}</p>
                            </div>
                        </div>
                    </div>
                    <!--/span-->
                    <div class="col-md-6">
                        <div class="form-group row">
                            <label class="col-md-3 control-label">{dr_lang('购买者')}</label>
                            <div class="col-md-7">
                                <p class="form-control-static">{Function_list::author($order.username)}</p>
                            </div>
                        </div>
                    </div>
                    <!--/span-->
                </div>
                <!--/row-->
                <!--/row-->
                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group row">
                            <label class="col-md-3 control-label">{dr_lang('购买积分')}</label>
                            <div class="col-md-7">
                                <p class="form-control-static" style="cursor: pointer" >{$order.score}</p>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group row">
                            <label class="col-md-3 control-label">{dr_lang('发货状态')}</label>
                            <div class="col-md-7">
                                <p class="form-control-static" style="cursor: pointer"  onclick="dr_iframe{if $order.status == 2}_show{/if}('{dr_lang("发货信息")}', '{$op_url}&at=delivery')">{order_score_status($order.status)}</p>
                            </div>
                        </div>
                    </div>
                    <!--/span-->
                </div>
                <!--/row-->
            </div>
        </div>
    </div>
    <div class="portlet bordered light  myfbody">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green">{dr_lang('送货信息')}</span>
            </div>
        </div>
        <div class="portlet-body form">

            <div class="form-body">

                <div class="row fc-mall-col-2">
                    <div class="col-md-6">
                        <div class="form-group row">
                            <label class="col-md-3 control-label">{dr_lang('联系人')}</label>
                            <div class="col-md-7">
                                <p class="form-control-static">{$order.name}</p>
                            </div>
                        </div>
                    </div>
                    <!--/span-->
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-md-3 control-label">{dr_lang('联系电话')}</label>
                            <p class="form-control-static">{$order.name}</p>
                        </div>
                    </div>
                    <!--/span-->
                </div>
                <div class="row fc-mall-col-2">
                    <div class="col-md-6">
                        <div class="form-group row">
                            <label class="col-md-3 control-label">{dr_lang('电子邮箱')}</label>
                            <div class="col-md-7">
                                <p class="form-control-static">{$order.email}</p>
                            </div>
                        </div>
                    </div>
                    <!--/span-->
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="col-md-3 control-label">{dr_lang('详细地址')}</label>
                            <p class="form-control-static">{$order.address}</p>
                        </div>
                    </div>
                    <!--/span-->
                </div>

                <!--/row-->
            </div>
        </div>
    </div>
    {if $order.remark}
    <div class="portlet bordered light myfbody">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green">{dr_lang('买家留言')}</span>
            </div>
        </div>
        <div class="portlet-body form">

            <div class="form-body">

                {$order.remark}

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


    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <label><a onclick="dr_iframe{if $order.status == 2}_show{/if}('{dr_lang("发货信息")}', '{$op_url}&at=delivery')" class="btn green"> <i class="fa fa-truck"></i> {dr_lang('发货')}</a></label>
            <label><a href="{$reply_url}" class="btn yellow"> <i class="fa fa-mail-reply"></i> {dr_lang('返回')}</a></label>
        </div>
    </div>
</form>
{template "footer.html"}