123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <!-- 头部 -->
- <include file="Public/top" />
- <div class="wrapper row-offcanvas row-offcanvas-left">
- <!-- Left side column. contains the logo and sidebar -->
- <aside class="left-side sidebar-offcanvas">
- <!-- 左边 -->
- <include file="Public/left" />
- </aside>
- <!-- Right side column. Contains the navbar and content of the page -->
- <aside class="right-side">
- <!-- Content Header (Page header) -->
- <!-- bar -->
- <include file="Public/bar" />
- <!-- Main content -->
- <!-- 右侧 -->
- <div class="row">
- <div class="col-sm-12">
- <div class="row pad">
- <form name="form1" method="get">
- <div class="col-sm-11">
- <div class="btn-group">
- <select name="sort" class="form-control input-sm">
- <volist name="orderList" id="v">
- <option <if condition="$sort eq $v[2]">selected="selected"</if> value="<{$v[2]}>"><{$v[1]}></option>
- </volist>
- </select>
- </div>
- <div class="btn-group">
- <select name="choice_status" class="form-control input-sm">
- <foreach name="statusList" item="r" key="k">
- <option <if condition="$choiceStatus eq $k">selected="selected"</if> value="<{$k}>"><{$r}></option>
- </foreach>
- </select>
- </div>
-
- <div class="btn-group">
- <input type="text" placeholder="请输入精选名称" name="keyword" value="<{$keyword}>" class="form-control input-sm">
- </div>
- <div class="btn-group">
- <input type="hidden" name="choice_source" value="<{$choice_source}>">
-
- <button class="btn btn-sm btn-primary" name="sub" type="submit">
- <i class="fa fa-search"></i>
- </button>
- </div>
- </div>
- <div class="col-sm-1">
- <div class="col-sm-1">
- <if condition="$choice_source eq 1"><a href="/admin/choice/edit" class="btn btn-primary">新增精选</a><else /></if>
-
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="col-xs-12">
- <div class="box">
- <!-- /.box-header -->
- <div class="box-body table-responsive">
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>序号</th>
- <th>标题</th>
- <th>评论数</th>
- <th>点赞数</th>
- <th>创建时间</th>
- <th>状态</th>
- <th>发布者</th>
- <th colspan="4">操作</th>
- </tr>
- </thead>
- <tbody>
- <volist name="list" id="val">
- <tr>
- <td><{$i}></td>
- <td><a href="/admin/choice/detail?choice_id=<{$val['choice_id']}>"><{$val['choice_name']}></a></td>
- <td><{$val['reply']}></td>
- <td><{$val['praise']}></td>
- <td><{$val['operate_dt']|date='Y-m-d H:i:s',###}></td>
- <td><if condition="$val['choice_status'] eq 3">已上架<else />未上架</if></td>
- <td>
- <{$val['user_name']}>
-
- </td>
- <td>
-
- <a href="/admin/choice/detail?choice_id=<{$val['choice_id']}>">查看</a>
- <if condition="$val['choice_status'] eq 3">
- <a href="/admin/choice/status?choice_id=<{$val['choice_id']}>&choice_status=1" onclick="return confirm('确定下架吗?')">下架</a>
- <else />
- <a href="/admin/choice/status?choice_id=<{$val['choice_id']}>&choice_status=3" onclick="return confirm('确定上架吗?')">上架</a>
- </if>
- <if condition="$val['choice_source'] eq 1">
- <a href="/admin/choice/edit?choice_id=<{$val['choice_id']}>">编辑</a>
- <a href="/admin/choice/del?choice_id=<{$val['choice_id']}>" onclick="return confirm('确定删除吗?')">删除</a>
- <else />
- <if condition="$val['choice_type'] eq 2">
- <a href="/admin/choice/type?choice_id=<{$val['choice_id']}>&choice_type=1" onclick="return confirm('确定取消精选吗?')">取消精选</a>
- <else />
- <a href="/admin/choice/type?choice_id=<{$val['choice_id']}>&choice_type=2" onclick="return confirm('确定精选吗?')">精选</a>
- </if>
- </if>
-
- </td>
- </tr>
- </volist>
- <empty name="list">
- <tr>
- <td colspan="12" align="center">没有记录</td>
- </tr>
- </empty>
- </tbody>
- </table>
- </div>
- <!-- /.box-body -->
- <{$page}>
- </div>
- <!-- /.box -->
- </div>
- </div>
- <!-- 右侧 -->
- <!-- /.content -->
- </aside>
- <!-- /.right-side -->
- </div>
- <!-- ./wrapper -->
- </body>
- </html>
|