plugins.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <form action="{:url('hook/pluginListOrder')}" method="post" class="js-ajax-form">
  6. <php>
  7. $types = ["1"=>'系统钩子','2'=>'应用钩子','3'=>'模板钩子','4'=>'后台模板钩子'];
  8. $status=array("1"=>'开启',"0"=>'禁用',"3"=>'未安装');
  9. </php>
  10. <div class="table-actions">
  11. <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>
  12. </div>
  13. <table class="table table-hover table-bordered">
  14. <thead>
  15. <tr>
  16. <th width="50">{:lang('Sort')}</th>
  17. <th>{:lang('Name')}</th>
  18. <th>{:lang('Key')}</th>
  19. <th>{:lang('Hook')}</th>
  20. <th>{:lang('Description')}</th>
  21. <th>{:lang('Author')}</th>
  22. <th width="60">{:lang('Status')}</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <foreach name="plugins" item="vo">
  27. <tr>
  28. <td><input name="list_orders[{$vo.hook_plugin_id}]" type="text" size="3" value="{$vo.list_order}"
  29. class="input input-order"></td>
  30. <td>{$vo.title}</td>
  31. <td>{$vo.name}</td>
  32. <td>{$vo.hooks|default=''}</td>
  33. <td>{$vo.description}</td>
  34. <td>{$vo.author}</td>
  35. <td>{$status[$vo['hook_plugin_status']]}</td>
  36. </tr>
  37. </foreach>
  38. </tbody>
  39. </table>
  40. </form>
  41. </div>
  42. <script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
  43. </body>
  44. </html>