审查视图

public/themes/admin_simpleboot3/admin/withdrawal/withd_list.html 2.9 KB
anyv authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<include file="public@header"/>
</head>
<body>
<style>
    .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}
    .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}
    .pagination .active{background-color: #dd1a20;color: #fff;}
    .pagination .disabled{color:#aaa;}
</style>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">提现列表</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('Withdrawal/withd_list')}">
        时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
24
               value="{$keyword|default=''}" placeholder="请输入手机号/微信昵称">
anyv authored
25 26 27
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Withdrawal/withd_list')}">清空</a>
    </form>
28
    <table class="table table-hover table-bordered table-list">
anyv authored
29 30 31 32 33 34 35
        <thead>
        <tr>
            <th>序号</th>
            <th>微信昵称</th>
            <th>手机号</th>
            <th>提现金额</th>
            <th>状态</th>
4  
anyv authored
36
            <th>提现时间</th>
anyv authored
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="data_arr" id="vo">
            <tr class="tr{$vo.id}">
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.money}</td>
                <if condition="$vo.state eq 1">
                        <td>提现成功</td>
                    <else/>
                        <td>提现失败</td>
                </if>

                <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                <td style="width: 80px;">
                    <button type="button" class="btn btn-default" onclick="withd_del({$vo.id})">删除</button>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<div class="pagination">
    {$data->render()}
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    /**
     *点击删除
     */
    function withd_del(id){
        ccc = window.confirm('是否删除?');
        if(ccc){
            $.post("{:url('Withdrawal/withd_del')}",{id:id},function(data){
                if(data){
                    $('.tr'+id).remove();
                }else{
                    alert('删除失败!');
                }
            });
        }
    }
</script>
</body>
</html>