hooks.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <form action="" method="post">
  6. <php>
  7. $types = ["1"=>'系统钩子','2'=>'应用钩子','3'=>'模板钩子','4'=>'后台模板钩子'];
  8. </php>
  9. <table class="table table-hover table-bordered">
  10. <thead>
  11. <tr>
  12. <th>{:lang('NAME')}</th>
  13. <th>{:lang('Type')}</th>
  14. <th>执行插件</th>
  15. <th>{:lang('Description')}</th>
  16. <th width="150">{:lang('ACTIONS')}</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <foreach name="hooks" item="vo">
  21. <tr>
  22. <td><b>{$vo.name}</b>:<span class="label label-success">{$vo.hook}</span></td>
  23. <td>{$types[$vo.type]}</td>
  24. <td>{$vo.once?'首个插件':'多个插件'}</td>
  25. <td>{$vo.description}</td>
  26. <td>
  27. <a class="btn btn-xs btn-primary"
  28. href="javascript:parent.openIframeLayer('{:url('Hook/plugins',['hook'=>$vo['hook']])}','钩子{$vo.name}插件管理',{});">设置执行顺序</a>
  29. </td>
  30. </tr>
  31. </foreach>
  32. </tbody>
  33. </table>
  34. </form>
  35. </div>
  36. <script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
  37. </body>
  38. </html>