index.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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('Gift/add')}">{:lang('ADD')}</a></li>
  8. </ul>
  9. <form method="post" class="js-ajax-form" action="{:url('Gift/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>所需点数</th>
  22. <th>图片</th>
  23. <th>动画类型</th>
  24. <th>动画</th>
  25. <th>动画时长</th>
  26. <th>发布时间</th>
  27. <th align="center">{:lang('ACTIONS')}</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <foreach name="lists" item="vo">
  32. <tr>
  33. <td><input name="list_orders[{$vo.id}]" class="input-order" type="text" value="{$vo.list_order}"></td>
  34. <td>{$vo.id}</td>
  35. <td>{$type[$vo['type']]}</td>
  36. <td>{$mark[$vo['mark']]}</td>
  37. <td>{$vo['giftname']}</td>
  38. <td>{$vo['needcoin']}</td>
  39. <td><img width="25" height="25" class="imgtip" src="{$vo['gifticon']}" /></td>
  40. <td><if condition="$vo['type'] eq 1">{$swftype[$vo['swftype']]}</if></td>
  41. <td><if condition="$vo['swf']">
  42. <if condition="$vo['swftype'] eq 1">
  43. {$vo['swf']}
  44. <else/>
  45. <img width="100" height="100" src="{$vo['swf']}" />
  46. </if>
  47. </if>
  48. </td>
  49. <td>{$vo['swftime']}</td>
  50. <td>{:date('Y-m-d H:i',$vo['addtime'])}</td>
  51. <td>
  52. <a class="btn btn-xs btn-primary" href='{:url("Gift/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
  53. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Gift/del',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  54. </td>
  55. </tr>
  56. </foreach>
  57. </tbody>
  58. </table>
  59. <div class="pagination">{$page}</div>
  60. </form>
  61. </div>
  62. <script src="__STATIC__/js/admin.js"></script>
  63. </body>
  64. </html>