index.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a >列表</a></li>
  7. <li><a href="{:url('Liveclass/add')}">{:lang('ADD')}</a></li>
  8. </ul>
  9. <form method="post" class="js-ajax-form" action="{:url('Liveclass/listOrder')}">
  10. <div class="table-actions">
  11. <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
  12. </div>
  13. <table class="table table-hover table-bordered">
  14. <thead>
  15. <tr>
  16. <th>排序</th>
  17. <th>ID</th>
  18. <th>名称</th>
  19. <th>图标</th>
  20. <th>描述</th>
  21. <th>{:lang('ACTIONS')}</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <foreach name="lists" item="vo">
  26. <tr>
  27. <td><input name="list_orders[{$vo.id}]" class="input-order" type="text" value="{$vo.list_order}"></td>
  28. <td>{$vo.id}</td>
  29. <td>{$vo['name']}</td>
  30. <td><if condition="$vo['thumb'] neq '' "><img width="25" height="25" class="imgtip" src="{:get_upload_path($vo['thumb'])}" /></if></td>
  31. <td style="max-width: 200px;">{$vo['des']}</td>
  32. <td>
  33. <a class="btn btn-xs btn-primary" href='{:url("Liveclass/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
  34. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Liveclass/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  35. </td>
  36. </tr>
  37. </foreach>
  38. </tbody>
  39. </table>
  40. <div class="pagination">{$page}</div>
  41. </form>
  42. </div>
  43. <script src="__STATIC__/js/admin.js"></script>
  44. </body>
  45. </html>