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="{:url('index')}">打卡列表</a></li>
        <!--<li>-->
            <!--<a href="{:url('add')}">打卡添加</a>-->
        <!--</li>-->

    </ul>
     <form class="well form-inline margin-top-20" method="post" action="{:url('index')}">
          关键字:
          <input type="text" class="form-control" name="keyword" style="width: 150px;" value="{$keyword|default=''}" placeholder="请输入关键字">
          <input type="submit" class="btn btn-primary" value="搜索" />
          <a class="btn btn-danger" href="{:url('index')}">清空</a>
      </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="20">id</th>
                <th width="50">活动名称</th>
                <th width="50">用户信息</th>
                <th width="50">状态</th>
                <th width="50">日期</th>
                <th width="50">地点</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.activity_name}</td>
                    <td>{$vo.user_name}</td>
                    <if condition="$vo.status==0"> <td>未打卡</td> </if>
                    <if condition="$vo.status==1"> <td>已开始</td> </if>
                    <if condition="$vo.status==2"> <td>完成打卡</td> </if>
                    <if condition="$vo.status==3"> <td>未完成</td> </if>
                    <td>{$vo.date}</td>
                    <td>{$vo.address}</td>
                    <td>
                        <a href='{:url("edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>