index.html 5.8 KB
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">用户列表</a></li>
        <!--<li><a href="{:url('AdminArticle/add')}">添加文章</a></li>-->
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('AdminUsers/index')}">
        时间:
        <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; &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="手机号">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('AdminUsers/index')}">清空</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                    </label>
                </th>
                <th width="50">ID</th>
                <th>OpenId</th>
                <!--<th>微信昵称</th>-->
                <!--<th>微信头像</th>-->
                <th>手机号</th>
                <th>是否交了押金</th>
                <th>是否充值</th>
                <th>余额</th>
                <th>使用设备</th>
            </tr>
            </thead>
            <foreach name="data" item="vo">
                <tr>
                    <td>
                        <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}" title="ID:{$vo.id}">
                    </td>
                    <td><b>{$vo.id}</b></td>
                    <td>
                        {$vo.open_id}
                    </td>
                    <!--<td>-->
                        <!--{$vo.nickname}-->
                    <!--</td>-->
                    <!--<td>{$vo.portrait}</td>-->
                    <td>{$vo.phone}</td>
                    <td>
                        <switch name="vo.is_deposit">
                            <case value="0"><span class="label label-warning">未交押金</span></case>
                            <case value="1"><span class="label label-success">已交押金</span></case>
                        </switch>
                    </td>
                    <td>
                        <switch name="vo.recharge">
                            <case value="0"><span class="label label-warning">未充值</span></case>
                            <case value="1"><span class="label label-success">已充值</span></case>
                        </switch>
                    </td>
                    <td>
                        {$vo.fee}元
                    </td>
                    <td>
                        <eq name="vo.is_use" value="1">
                            {$vo.eq}
                        <else />
                            未使用
                        </eq>
                    </td>
                </tr>
            </foreach>
        </table>
        <ul style="text-align: center">{$data->render()}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

    function reloadPage(win) {
        win.location.reload();
    }

    $(function () {
        setCookie("refersh_time", 0);
        Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
            //批量复制
            $('.js-articles-copy').click(function (e) {
                var ids = [];
                $("input[name='ids[]']").each(function () {
                    if ($(this).is(':checked')) {
                        ids.push($(this).val());
                    }
                });

                if (ids.length == 0) {
                    art.dialog.through({
                        id: 'error',
                        icon: 'error',
                        content: '您没有勾选信息,无法进行操作!',
                        cancelVal: '关闭',
                        cancel: true
                    });
                    return false;
                }

                ids = ids.join(',');
                art.dialog.open("__ROOT__/index.php?g=portal&m=AdminArticle&a=copy&ids=" + ids, {
                    title: "批量复制",
                    width: "300px"
                });
            });
            //批量移动
            $('.js-articles-move').click(function (e) {
                var ids = [];
                $("input[name='ids[]']").each(function () {
                    if ($(this).is(':checked')) {
                        ids.push($(this).val());
                    }
                });

                if (ids.length == 0) {
                    art.dialog.through({
                        id: 'error',
                        icon: 'error',
                        content: '您没有勾选信息,无法进行操作!',
                        cancelVal: '关闭',
                        cancel: true
                    });
                    return false;
                }

                ids = ids.join(',');
                art.dialog.open("__ROOT__/index.php?g=portal&m=AdminArticle&a=move&old_term_id={$term.term_id|default=0}&ids=" + ids, {
                    title: "批量移动",
                    width: "300px"
                });
            });
        });
    });
</script>
</body>
</html>