pluginsadmin.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!DOCTYPE html>
  2. <html>
  3. <head>{include="includes"}</head>
  4. <body>
  5. <div id="pageheader">
  6. {include="page.header"}
  7. </div>
  8. <noscript>
  9. <div>
  10. <ul class="errors">
  11. <li>You need to enable Javascript to change plugin loading order.</li>
  12. </ul>
  13. </div>
  14. <div class="clear"></div>
  15. </noscript>
  16. <div id="pluginsadmin">
  17. <form action="?do=save_pluginadmin" method="POST">
  18. <section id="enabled_plugins">
  19. <h1>Enabled Plugins</h1>
  20. <div>
  21. {if="count($enabledPlugins)==0"}
  22. <p>No plugin enabled.</p>
  23. {else}
  24. <table id="plugin_table">
  25. <thead>
  26. <tr>
  27. <th class="center">Disable</th>
  28. <th class="center">Order</th>
  29. <th>Name</th>
  30. <th>Description</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. {loop="$enabledPlugins"}
  35. <tr data-line="{$key}" data-order="{$counter}">
  36. <td class="center"><input type="checkbox" name="{$key}" checked="checked"></td>
  37. <td class="center">
  38. <a href="#"
  39. onclick="return orderUp(this.parentNode.parentNode.getAttribute('data-order'));">
  40. </a>
  41. <a href="#"
  42. onclick="return orderDown(this.parentNode.parentNode.getAttribute('data-order'));">
  43. </a>
  44. <input type="hidden" name="order_{$key}" value="{$counter}">
  45. </td>
  46. <td>{$key}</td>
  47. <td>{$value.description}</td>
  48. </tr>
  49. {/loop}
  50. </tbody>
  51. </table>
  52. {/if}
  53. </div>
  54. </section>
  55. <section id="disabled_plugins">
  56. <h1>Disabled Plugins</h1>
  57. <div>
  58. {if="count($disabledPlugins)==0"}
  59. <p>No plugin disabled.</p>
  60. {else}
  61. <table>
  62. <tr>
  63. <th class="center">Enable</th>
  64. <th>Name</th>
  65. <th>Description</th>
  66. </tr>
  67. {loop="$disabledPlugins"}
  68. <tr>
  69. <td class="center"><input type="checkbox" name="{$key}"></td>
  70. <td>{$key}</td>
  71. <td>{$value.description}</td>
  72. </tr>
  73. {/loop}
  74. </table>
  75. {/if}
  76. </div>
  77. <div class="center">
  78. <input type="submit" value="Save"/>
  79. </div>
  80. </section>
  81. </form>
  82. <form action="?do=save_pluginadmin" method="POST">
  83. <section id="plugin_parameters">
  84. <h1>Enabled Plugin Parameters</h1>
  85. <div>
  86. {if="count($enabledPlugins)==0"}
  87. <p>No plugin enabled.</p>
  88. {else}
  89. {loop="$enabledPlugins"}
  90. {if="count($value.parameters) > 0"}
  91. <div class="plugin_parameters">
  92. <h2>{$key}</h2>
  93. {loop="$value.parameters"}
  94. <div class="plugin_parameter">
  95. <div class="float_label">
  96. <label for="{$key}">
  97. <code>{$key}</code>
  98. </label>
  99. </div>
  100. <div class="float_input">
  101. <input name="{$key}" value="{$value}" id="{$key}"/>
  102. </div>
  103. </div>
  104. {/loop}
  105. </div>
  106. {/if}
  107. {/loop}
  108. {/if}
  109. <div class="center">
  110. <input type="submit" name="parameters_form" value="Save"/>
  111. </div>
  112. </div>
  113. </section>
  114. </form>
  115. </div>
  116. {include="page.footer"}
  117. <script src="inc/plugin_admin.js#"></script>
  118. </body>
  119. </html>