index.html 1.2 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>
    </ul>

    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <tr>
                <th>序号</th>
                <th>留言人</th>
                <th>内容</th>
                <th>日期</th>
            </tr>
            <volist name="mes" id="vo" key="k">
                <tr>
                    <td>{$k}</td>
                    <td>{$vo.user_nickname}</td>
                    <td>{$vo.content}</td>
                    <td>{$vo.add_time|date='Y-m-d', ###}</td>
                </tr>
            </volist>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(".form-control").change(function () {
        $.ajax({
            url:"{:url('Type/listOrder')}",
            data:{
                id:$(this).attr('data-id'),
                listorder:$(this).val()
            },
            type:"POST",
            dataType:"JSON"
        })
    })
</script>
</body>
</html>