index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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>{:lang('ADMIN_HOOK_INDEX')}</a></li>
  7. <li><a href="{:url('Hook/sync')}">{:lang('ADMIN_HOOK_SYNC')}</a></li>
  8. </ul>
  9. <form action="" method="post" class="margin-top-20">
  10. <php>
  11. $types = ["1"=>'系统钩子','2'=>'应用钩子','3'=>'模板钩子','4'=>'后台模板钩子'];
  12. </php>
  13. <table class="table table-hover table-bordered">
  14. <thead>
  15. <tr>
  16. <th>{:lang('NAME')}</th>
  17. <th>{:lang('Type')}</th>
  18. <th>{:lang('Description')}</th>
  19. <th width="150">{:lang('ACTIONS')}</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <foreach name="hooks" item="vo">
  24. <tr>
  25. <td><b>{$vo.name}</b>:<span class="label label-success">{$vo.hook}</span></td>
  26. <td>{$types[$vo.type]}</td>
  27. <td>{$vo.description}</td>
  28. <td>
  29. <a class="btn btn-xs btn-primary"
  30. href="javascript:parent.openIframeLayer('{:url('Hook/plugins',['hook'=>$vo['hook']])}','钩子{$vo.name}插件管理',{});">管理插件</a>
  31. </td>
  32. </tr>
  33. </foreach>
  34. </tbody>
  35. </table>
  36. </form>
  37. </div>
  38. <script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
  39. </body>
  40. </html>