index.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('guide/set')}">配置</a></li>
  7. <li class="active"><a >列表</a></li>
  8. <li><a href="{:url('guide/add')}">添加</a></li>
  9. </ul>
  10. <form class="form-horizontal js-ajax-form" method="post" action="{:url('guide/listsorders')}">
  11. <div class="table-actions">
  12. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
  13. </div>
  14. <table class="table table-hover table-bordered">
  15. <thead>
  16. <tr>
  17. <th>排序</th>
  18. <th align="center">ID</th>
  19. <th><if condition="$type eq 1">视频<else/>图片</if></th>
  20. <th>链接</th>
  21. <th>发布时间</th>
  22. <th>更新时间</th>
  23. <th align="center">{:lang('ACTIONS')}</th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <foreach name="lists" item="vo">
  28. <tr>
  29. <td><input name="listsorders[{$vo['id']}]" type="text" size="3" value="{$vo['orderno']}" class="input input-order"></td>
  30. <td align="center">{$vo.id}</td>
  31. <if condition="$type eq 1">
  32. <td>{:get_upload_path($vo['thumb'])}</td>
  33. <else/>
  34. <td><img width="25" height="25" class="imgtip" src="{:get_upload_path($vo['thumb'])}" /></td>
  35. </if>
  36. <td>{$vo['href']}</td>
  37. <td>{:date('Y-m-d H:i',$vo['addtime'])}</td>
  38. <td>{:date('Y-m-d H:i',$vo['uptime'])}</td>
  39. <td align="center">
  40. <a class="btn btn-xs btn-primary" href="{:url('guide/edit',array('id'=>$vo['id']))}" >编辑</a>
  41. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('guide/del',array('id'=>$vo['id']))}" data-msg="您确定要删除吗?">删除</a>
  42. </td>
  43. </tr>
  44. </foreach>
  45. </tbody>
  46. </table>
  47. <div class="pagination">{$page}</div>
  48. </form>
  49. </div>
  50. <script src="__STATIC__/js/admin.js"></script>
  51. </body>
  52. </html>