index.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:url('link/index')}">所有友情链接</a></li>
  7. <li><a href="{:url('link/add')}">添加友情链接</a></li>
  8. </ul>
  9. <form method="post" class="js-ajax-form margin-top-20" action="{:url('Link/listOrder')}">
  10. <div class="table-actions">
  11. <button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>
  12. <button class="btn btn-sm btn-success js-ajax-submit" type="submit"
  13. data-action="{:url('link/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')}
  14. </button>
  15. <button class="btn btn-sm btn-danger js-ajax-submit" type="submit"
  16. data-action="{:url('link/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}
  17. </button>
  18. </div>
  19. <php>$status=array("1"=>lang('DISPLAY'),"0"=>lang('HIDDEN'));</php>
  20. <table class="table table-hover table-bordered table-list">
  21. <thead>
  22. <tr>
  23. <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
  24. data-checklist="js-check-x"></label></th>
  25. <th width="50">{:lang('SORT')}</th>
  26. <th width="50">ID</th>
  27. <th>{:lang('NAME')}</th>
  28. <th>链接地址</th>
  29. <th width="50">{:lang('STATUS')}</th>
  30. <th width="120">{:lang('ACTIONS')}</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <foreach name="links" item="vo">
  35. <tr>
  36. <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  37. value="{$vo.id}"></td>
  38. <td><input name='list_orders[{$vo.id}]' class="input input-order mr5" type='text' size='3'
  39. value='{$vo.list_order}'></td>
  40. <td>{$vo.id}</td>
  41. <td>{$vo.name}</td>
  42. <td><a href="{$vo.url}" target="_blank">{$vo.url}</a></td>
  43. <td>
  44. <empty name="vo.status">
  45. <span class="label label-default">
  46. {$status[$vo['status']]}
  47. </span>
  48. <else/>
  49. <span class="label label-success">
  50. {$status[$vo['status']]}
  51. </span>
  52. </empty>
  53. </td>
  54. <td>
  55. <a class="btn btn-xs btn-primary" href="{:url('link/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  56. <a class="btn btn-xs btn-danger" href="{:url('link/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">
  57. {:lang('DELETE')}
  58. </a>
  59. </td>
  60. </tr>
  61. </foreach>
  62. </tbody>
  63. <tfoot>
  64. <tr>
  65. <th width="16">
  66. <label>
  67. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  68. </label>
  69. </th>
  70. <th width="50">{:lang('SORT')}</th>
  71. <th width="50">ID</th>
  72. <th>{:lang('NAME')}</th>
  73. <th>链接地址</th>
  74. <th width="50">{:lang('STATUS')}</th>
  75. <th width="120">{:lang('ACTIONS')}</th>
  76. </tr>
  77. </tfoot>
  78. </table>
  79. <div class="table-actions">
  80. <button class="btn btn-sm btn-primary js-ajax-submit" type="submit">{:lang('SORT')}</button>
  81. <button class="btn btn-sm btn-success js-ajax-submit" type="submit"
  82. data-action="{:url('link/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')}
  83. </button>
  84. <button class="btn btn-sm btn-danger js-ajax-submit" type="submit"
  85. data-action="{:url('link/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}
  86. </button>
  87. </div>
  88. </form>
  89. </div>
  90. <script src="__STATIC__/js/admin.js"></script>
  91. </body>
  92. </html>