admin_index.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <include file="public/head"/>
  5. <title>ThinkCMF插件演示首页</title>
  6. <meta name="description" content="ThinkCMF插件演示首页">
  7. <meta name="keywords" content="ThinkCMF插件演示首页">
  8. </head>
  9. <body>
  10. <div class="wrap js-check-wrap">
  11. <ul class="nav nav-tabs">
  12. <li class="active"><a>小程序管理</a></li>
  13. <li><a href="{:cmf_plugin_url('Wxapp://AdminWxapp/add')}">添加小程序</a></li>
  14. </ul>
  15. <form method="post" class="js-ajax-form margin-top-20" action="#">
  16. <div class="table_list">
  17. <table width="100%" class="table table-hover">
  18. <thead>
  19. <tr>
  20. <th>名称</th>
  21. <th>App ID</th>
  22. <th>App Secret</th>
  23. <th>默认小程序</th>
  24. <th width="120">操作</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <foreach name="wxapps" item="vo">
  29. <tr>
  30. <td>{$vo.name|default=''}</td>
  31. <td>{$vo.app_id|default=''}</td>
  32. <td>{$vo.app_secret|default=''}</td>
  33. <td>
  34. <if condition="!empty($default_wxapp['app_id']) && !empty($vo['app_id']) &&$default_wxapp['app_id']== $vo['app_id']">
  35. <else/>
  36. </if>
  37. </td>
  38. <td>
  39. <a href="{:cmf_plugin_url('Wxapp://AdminWxapp/edit',['id'=>$vo.app_id])}">编辑</a>
  40. <a class="js-ajax-delete" href="{:cmf_plugin_url('Wxapp://AdminWxapp/delete',['id'=>$vo.app_id])}">删除</a>
  41. </td>
  42. </tr>
  43. </foreach>
  44. </tbody>
  45. </table>
  46. </div>
  47. </form>
  48. </div>
  49. <include file="public/scripts"/>
  50. </body>
  51. </html>