index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!-- 头部 -->
  2. <include file="Public/top" />
  3. <div class="wrapper row-offcanvas row-offcanvas-left">
  4. <!-- Left side column. contains the logo and sidebar -->
  5. <aside class="left-side sidebar-offcanvas">
  6. <!-- 左边 -->
  7. <include file="Public/left" />
  8. </aside>
  9. <!-- Right side column. Contains the navbar and content of the page -->
  10. <aside class="right-side">
  11. <!-- Content Header (Page header) -->
  12. <!-- bar -->
  13. <include file="Public/bar" />
  14. <!-- Main content -->
  15. <!-- 右侧 -->
  16. <div class="row">
  17. <div class="col-sm-12">
  18. <div class="row pad">
  19. <form name="form1" method="get">
  20. <div class="col-sm-11">
  21. <div class="btn-group">
  22. <select name="sort" class="form-control input-sm">
  23. <volist name="orderList" id="v">
  24. <option <if condition="$sort eq $v[2]">selected="selected"</if> value="<{$v[2]}>"><{$v[1]}></option>
  25. </volist>
  26. </select>
  27. </div>
  28. <div class="btn-group">
  29. <select name="choice_status" class="form-control input-sm">
  30. <foreach name="statusList" item="r" key="k">
  31. <option <if condition="$choiceStatus eq $k">selected="selected"</if> value="<{$k}>"><{$r}></option>
  32. </foreach>
  33. </select>
  34. </div>
  35. <div class="btn-group">
  36. <input type="text" placeholder="请输入精选名称" name="keyword" value="<{$keyword}>" class="form-control input-sm">
  37. </div>
  38. <div class="btn-group">
  39. <input type="hidden" name="choice_source" value="<{$choice_source}>">
  40. <button class="btn btn-sm btn-primary" name="sub" type="submit">
  41. <i class="fa fa-search"></i>
  42. </button>
  43. </div>
  44. </div>
  45. <div class="col-sm-1">
  46. <div class="col-sm-1">
  47. <if condition="$choice_source eq 1"><a href="/admin/choice/edit" class="btn btn-primary">新增精选</a><else /></if>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. <div class="col-xs-12">
  54. <div class="box">
  55. <!-- /.box-header -->
  56. <div class="box-body table-responsive">
  57. <table class="table table-bordered table-striped">
  58. <thead>
  59. <tr>
  60. <th>序号</th>
  61. <th>标题</th>
  62. <th>评论数</th>
  63. <th>点赞数</th>
  64. <th>创建时间</th>
  65. <th>状态</th>
  66. <th>发布者</th>
  67. <th colspan="4">操作</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <volist name="list" id="val">
  72. <tr>
  73. <td><{$i}></td>
  74. <td><a href="/admin/choice/detail?choice_id=<{$val['choice_id']}>"><{$val['choice_name']}></a></td>
  75. <td><{$val['reply']}></td>
  76. <td><{$val['praise']}></td>
  77. <td><{$val['operate_dt']|date='Y-m-d H:i:s',###}></td>
  78. <td><if condition="$val['choice_status'] eq 3">已上架<else />未上架</if></td>
  79. <td>
  80. <{$val['user_name']}>
  81. </td>
  82. <td>
  83. &nbsp;<a href="/admin/choice/detail?choice_id=<{$val['choice_id']}>">查看</a>
  84. <if condition="$val['choice_status'] eq 3">
  85. &nbsp;<a href="/admin/choice/status?choice_id=<{$val['choice_id']}>&choice_status=1" onclick="return confirm('确定下架吗?')">下架</a>
  86. <else />
  87. &nbsp;<a href="/admin/choice/status?choice_id=<{$val['choice_id']}>&choice_status=3" onclick="return confirm('确定上架吗?')">上架</a>
  88. </if>
  89. <if condition="$val['choice_source'] eq 1">
  90. &nbsp;<a href="/admin/choice/edit?choice_id=<{$val['choice_id']}>">编辑</a>
  91. &nbsp;<a href="/admin/choice/del?choice_id=<{$val['choice_id']}>" onclick="return confirm('确定删除吗?')">删除</a>
  92. <else />
  93. <if condition="$val['choice_type'] eq 2">
  94. &nbsp;<a href="/admin/choice/type?choice_id=<{$val['choice_id']}>&choice_type=1" onclick="return confirm('确定取消精选吗?')">取消精选</a>
  95. <else />
  96. &nbsp;<a href="/admin/choice/type?choice_id=<{$val['choice_id']}>&choice_type=2" onclick="return confirm('确定精选吗?')">精选</a>
  97. </if>
  98. </if>
  99. </td>
  100. </tr>
  101. </volist>
  102. <empty name="list">
  103. <tr>
  104. <td colspan="12" align="center">没有记录</td>
  105. </tr>
  106. </empty>
  107. </tbody>
  108. </table>
  109. </div>
  110. <!-- /.box-body -->
  111. <{$page}>
  112. </div>
  113. <!-- /.box -->
  114. </div>
  115. </div>
  116. <!-- 右侧 -->
  117. <!-- /.content -->
  118. </aside>
  119. <!-- /.right-side -->
  120. </div>
  121. <!-- ./wrapper -->
  122. </body>
  123. </html>