<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />

    <title>提现管理</title>
    <!--{include file="<!--{$cptplpath}-->headerjs.tpl"}-->
    <!--{assign var='pluginevent' value=XHook::doAction('adm_head')}-->
</head>
<body>
<!--{assign var='pluginevent' value=XHook::doAction('adm_main_top')}-->
<!--{include file="<!--{$cptplpath}-->lang_all.tpl"}-->
<!--{if $a eq "tixian"}-->
<div class="main-wrap">
    <div class="path"><p>当前位置：分销设置<span>&gt;&gt;</span><a href="<!--{$cpfile}-->?c=order">提现管理</a></p></div>
    <div class="main-cont">
        <form action="<!--{$cpfile}-->?c=photo&tid=<!--{$tid}-->&a=del" method="post" name="myform" id="myform" style="margin:0">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table" align="center">
                <thead class="tb-tit-bg">
                <tr>
                    <th width="12%"><div class="th-gap">会员名称</div></th>
                    <th width="12%"><div class="th-gap">订单编号</div></th>
                    <th width="6%"><div class="th-gap">提现金额</div></th>
                    <th width="6%"><div class="th-gap">状态</div></th>
                    <th width="6%"><div class="th-gap">提现账户</div></th>
                    <th width="11%"><div class="th-gap">申请时间</div></th>
                    <th width="11%"><div class="th-gap">操作</div></th>
                </tr>
                </thead>
                <tfoot class="tb-foot-bg"></tfoot>
                <!--{foreach $data as $volist}-->
                <tr onMouseOver="overColor(this)" onMouseOut="outColor(this)">
                    <td align="center">
                        <!--{if $volist.nickname neq ""}-->
                        <!--{$volist.nickname}-->
                        <!--{else}-->
                        <!--{$volist.name}-->
                        <!--{/if}--></td>
                    <td align="center"><!--{$volist.order_number}--></td>
                    <td align="center">
                        <!--{$volist.price}-->
                    </td>
                    <td align="center">
                        <!--{if $volist.status eq "0"}-->
                                待审核
                        <!--{elseif $volist.status eq "1"}-->
                                已到账
                        <!--{/if}-->
                    </td>
                    <td align="center"><!--{$volist.phone}--></td>
                    <td align="center" title="<!--{$volist.time|date_format:"%Y-%m-%d %H:%M:%S"}-->"><!--{$volist.time|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
                    <td align="center"><a href="javascript:void(0);" number="<!--{$volist.order_number}-->" class="icon-edit shenhe">审核</a>&nbsp;&nbsp;</td>
                </tr>
                <!--{foreachelse}-->
                <tr>
                    <td colspan="7" align="center">暂无信息</td>
                </tr>
                <!--{/foreach}-->
                <!--{if $total>0}-->
                <tr>
                    <td class="hback" colspan="7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共[ <b><!--{$total}--></b> ]条记录</td>
                </tr>
                <!--{/if}-->
            </table>
        </form>
        <!--{if $pagecount>1}-->
        <table width='95%' border='0' cellspacing='0' cellpadding='0' align='center' style="margin-top:10px;">
            <tr>
                <td align='center'><!--{$showpage}--></td>
            </tr>
        </table>
        <!--{/if}-->
    </div>

</div>
<!--{/if}-->
<!--{if $a eq "edit"}-->
<div class="main-wrap">
    <div class="path"><p>当前位置：会员中心<span>&gt;&gt;</span>订单详情</p></div>
    <div class="main-cont">
        <h3 class="title"><a href="<!--{$cpfile}-->?c=ordeer" class="btn-general"><span>返回列表</span></a>订单详情</h3>
        <form name="myform" id="myform" method="post" action="<!--{$cpfile}-->?c=order&<!--{$comeurl}-->" onsubmit='return checkform();' />
        <input type="hidden" name="a" value="saveedit" />
        <input type="hidden" name="id" value="<!--{$data.id}-->" />
        <input type='hidden' name='treeid' id='treeid' value='<!--{$tid}-->' />
        <table cellpadding='1' cellspacing='2' class='tab'>
            <tr>
                <td class='hback_1' width="15%">订单编号 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.ordernum}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">商品名称 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.goodsname}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">单价 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.goodsprice}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">购买数量 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.goodsnum}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">订单价格 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.orderprice}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">下单时间 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.time}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">订单状态 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.status}--> <span id="dcatid" class='f_red'></span></td>
            </tr>

            <tr>
                <td class='hback_yellow' colspan="2">收件人信息 </td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">收件人姓名 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.linkman}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">收件人电话 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.linkphone}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_1' width="15%">收件人地址 <span class='f_red'></span></td>
                <td class='hback' width="85%"><!--{$data.provincename}--><!--{$data.cityname}--><!--{$data.countyname}--><!--{$data.address}--> <span id="dcatid" class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_yellow' colspan="2">物流信息 </td>
            </tr>
            <tr>
                <td class='hback_1'>快递公司 <span class="f_red"></span> </td>
                <td class='hback'><input type="text" name="company" id="tags" class="input-txt" value="<!--{$data.company}-->" />
                    <span id='dtags' class='f_red'></span>
                    (请填写完整快递公司名称,例如 中通快递、顺丰快递、韵达快递)</td>
            </tr>
            <tr>
                <td class='hback_1'>物流单号 <span class="f_red"></span> </td>
                <td class='hback'><input type="text" name="wuliunum" id="metakeyword" class="input-txt" value="<!--{$data.wuliunum}-->" /> <span id='dmetakeyword' class='f_red'></span></td>
            </tr>
            <tr>
                <td class='hback_none'></td>
                <td class='hback_none'><input type="submit" name="btn_save" class="button" value="更新保存" /></td>
            </tr>
        </table>
        </form>
    </div>
    <div style="clear:both;"></div>
</div>
<!--{/if}-->
<!--{assign var='pluginevent' value=XHook::doAction('adm_footer')}-->
</body>
</html>
<script type="text/javascript">
    function checkform() {
        var t = "";
        var v = "";

        /*
        t = "catid";
        v = $("#"+t).val();
        if(v=="") {
            dmsg("请选择分类", t);
            $('#'+t).focus();
            return false;
        }
        */

        t = "title";
        v = $("#"+t).val();
        if(v=="") {
            dmsg("标题不能为空", t);
            $('#'+t).focus();
            return false;
        }

        t = "content";
        v = editor.text();
        if(editor.isEmpty()) {
            dmsg("内容不能为空", t);
            editor.focus();
            return false;
        }
        return true;
    }
    $('.shenhe').click(function(e){
        var number = $(this).attr('number');
        //询问框
        layer.confirm('是否确认无误？确认后将直接提现到对应支付宝账户', {
            btn: ['确认','取消'] //按钮
        }, function(){
            $.post("admincp.php?c=order&a=ajaxti", {
                order_number:number
            }, function (data) {
                if (data.response == '1') {
                    layer.open({
                        content: data.result
                        ,skin: 'msg'
                        ,time: 2 //2秒后自动关闭
                    });
                    setTimeout( function(){
                        window.location.href = '';
                    }, 1 * 1000 );//延迟5000毫米
                } else {
                    layer.open({
                        content: data.result
                        ,skin: 'msg'
                        ,time: 2 //2秒后自动关闭
                    });
                }
            }, "json");
        });
    });
</script>