summaryrefslogtreecommitdiff
path: root/core/views/admin_modules.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-22 03:41:33 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-22 03:41:33 +0000
commitfe27bd1eb34efe95da6ffe8b6f6c137fe8a18306 (patch)
treeb89e04040d1a3fac5ce413505d5177b671e36db1 /core/views/admin_modules.html.php
parentf7b4222e3fc725c2fc4db28840c151c1ebeb801c (diff)
Change the way that we track modules.
Each module now has a "module.info" file that has information about the module, including the core. We can display the installed version, and the version in the code. Also take a first shot at a modules admin page.
Diffstat (limited to 'core/views/admin_modules.html.php')
-rw-r--r--core/views/admin_modules.html.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/views/admin_modules.html.php b/core/views/admin_modules.html.php
new file mode 100644
index 00000000..d0a0f613
--- /dev/null
+++ b/core/views/admin_modules.html.php
@@ -0,0 +1,19 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<div id="gModules">
+ <table>
+ <tr>
+ <th> <?= _("Installed") ?> </th>
+ <th> <?= _("Name") ?> </th>
+ <th> <?= _("Version") ?> </th>
+ <th> <?= _("Description") ?> </th>
+ </tr>
+ <? foreach ($available as $module_name => $module_info): ?>
+ <tr>
+ <td> <?= form::checkbox($module_name, '', module::is_installed($module_name)) ?> </td>
+ <td> <?= _($module_info["name"]) ?> </td>
+ <td> <?= module::get_version($module_name) ?> </td>
+ <td> <?= _($module_info["description"]) ?> </td>
+ </tr>
+ <? endforeach ?>
+ </table>
+</div>