index.html 2.1 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('add')}">添加系统消息</a></li>
    </ul>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th style="width: 30px;">id</th>
                <th>标题</th>
                <th>内容</th>
                <th style="width: 130px;">添加时间</th>
                <th style="width: 80px;">状态</th>
                <th style="width: 130px;">操作</th>
            </tr>
            </thead>
            <foreach name="all" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.content}</td>
                    <td>{:date('Y-m-d H:i',$vo.create_time)}</td>
                    <td>
                        <if condition="$vo.is_sta eq 1">
                            发布
                            <else>
                                未发布
                        </if>
                    </td>
                    <td>
                        <if condition="$vo.is_sta eq 1">
                            <a href="{:url('sta',array('id'=>$vo['id'],'is_sta'=>2))}" class="js-ajax-dialog-btn" data-msg="确定取消发布?">不发布</a>
                            <else>
                                <a href="{:url('sta',array('id'=>$vo['id'],'is_sta'=>1))}" class="js-ajax-dialog-btn" data-msg="确定发布?">发布</a>
                        </if>
                        <a href="{:url('edit',array('id'=>$vo['id']))}">编辑</a>
                        <a href="{:url('delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>