admin_index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. </ul>
  14. <div class="common-form">
  15. <div>
  16. <php>
  17. $config = $plugin->getConfig();
  18. $pluginName = $plugin->getName();
  19. $pluginInfo = $plugin->checkInfo();
  20. $configFilePath = $plugin->getConfigFilePath();
  21. $defaultConfig = $plugin->getDefaultConfig();
  22. $pluginThemeRoot = $plugin->getThemeRoot();
  23. $pluginFetchContent = $plugin->testFetch();
  24. echo "<b>\$plugin->getConfig():</b>";
  25. dump($config);
  26. echo "<b>\$plugin->getName():</b>";
  27. dump($pluginName);
  28. echo "<b>\$plugin->checkInfo():</b>";
  29. dump($pluginInfo);
  30. echo "<b>\$plugin->getConfigFilePath():</b>";
  31. dump($configFilePath);
  32. echo "<b>\$plugin->getDefaultConfig():</b>";
  33. dump($defaultConfig);
  34. echo "<b>\$plugin->getThemeRoot():</b>";
  35. dump($pluginThemeRoot);
  36. echo "<b>\$plugin->testFetch():</b>";
  37. dump($pluginFetchContent);
  38. </php>
  39. </div>
  40. <div class="well">
  41. <p>
  42. <b>当前登录管理员id:</b>{$admin_id|default='管理员未登录'}
  43. </p>
  44. <p>
  45. <b>网站根目录:</b>__ROOT__
  46. </p>
  47. <p>
  48. <b>插件根目录:</b>__PLUGIN_ROOT__
  49. </p>
  50. <p>
  51. <b>插件模板根目录:</b>__PLUGIN_TMPL__
  52. </p>
  53. <p>
  54. <b>后台当前模板目录:</b>__ADMIN_TMPL__
  55. </p>
  56. <p>
  57. <b>网站资源根目录:</b>__WEB_ROOT__
  58. </p>
  59. <p>
  60. <b>public/static目录:</b>__STATIC__
  61. </p>
  62. </div>
  63. <form method="post" class="js-ajax-form" action="#">
  64. <div class="table_list">
  65. <table width="100%" class="table table-hover">
  66. <thead>
  67. <tr>
  68. <th width="50">ID</th>
  69. <th>用户名</th>
  70. <th>邮箱</th>
  71. <th>注册时间</th>
  72. <th width="120">操作</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <foreach name="users" item="vo">
  77. <tr>
  78. <td>{$vo.id}</td>
  79. <td>{$vo.user_login}</td>
  80. <td>{$vo.user_email}</td>
  81. <td>{$vo.create_time}</td>
  82. <td>
  83. <a href="javascript:;">修改</a>|
  84. <a href="javascript:;" class="js-ajax-delete">删除</a>
  85. </td>
  86. </tr>
  87. </foreach>
  88. </tbody>
  89. </table>
  90. </div>
  91. </form>
  92. </div>
  93. </div>
  94. <include file="public/scripts"/>
  95. </body>
  96. </html>