From 08253a6b16e5abe09718e9a593f296c3a66b482b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 27 Oct 2014 17:13:30 +0100 Subject: Show modules of sysconfig using fancy javascript mouseover effects --- modules/sysconfig.inc.php | 7 +- style/default.css | 19 +++- templates/sysconfig/_page.html | 193 ++++++++++++++++++++++++----------------- 3 files changed, 138 insertions(+), 81 deletions(-) diff --git a/modules/sysconfig.inc.php b/modules/sysconfig.inc.php index dc2458de..6bb96c80 100644 --- a/modules/sysconfig.inc.php +++ b/modules/sysconfig.inc.php @@ -133,12 +133,17 @@ class Page_SysConfig extends Page private function listConfigs() { // Configs - $res = Database::simpleQuery("SELECT configid, title, filepath FROM configtgz ORDER BY title ASC"); + $res = Database::simpleQuery("SELECT configtgz.configid, configtgz.title, configtgz.filepath, GROUP_CONCAT(configtgz_x_module.moduleid) AS modlist" + . " FROM configtgz" + . " INNER JOIN configtgz_x_module USING (configid)" + . " GROUP BY configid" + . " ORDER BY title ASC"); $configs = array(); while ($row = $res->fetch(PDO::FETCH_ASSOC)) { $configs[] = array( 'configid' => $row['configid'], 'config' => $row['title'], + 'modlist' => $row['modlist'], 'current' => readlink(CONFIG_HTTP_DIR . '/default/config.tgz') === $row['filepath'] ); } diff --git a/style/default.css b/style/default.css index 1359c4ba..f16d35dd 100644 --- a/style/default.css +++ b/style/default.css @@ -148,5 +148,22 @@ body { } .slx-warning-badge { - color: #ff0; + color: #ff6; } + +.slx-footer { + color: #999; + padding: 5px; +} + +.slx-bold { + font-weight: bold; +} + +.slx-fade { + opacity: 0.5; +} + +.slx-pointer { + cursor: pointer; +} \ No newline at end of file diff --git a/templates/sysconfig/_page.html b/templates/sysconfig/_page.html index 0fe46d0b..c86c4b14 100644 --- a/templates/sysconfig/_page.html +++ b/templates/sysconfig/_page.html @@ -1,85 +1,89 @@ -
-
- {{lang_availableSystem}} - -
-
-
- - - - {{#configs}} - - - - - - - {{/configs}} -
{{config}} - {{^current}} - - {{/current}} - {{#current}} - - - {{lang_active}} - - {{/current}} - - - - -
- {{^configs}} -
- {{lang_systemConfigurationNotFound}} +
+
+
+
+ {{lang_availableSystem}} +
- {{^modules}} -
- {{lang_systemConfigurationAlert}} +
+ + + + + {{#configs}} + + + + + + {{/configs}} +
{{config}} + {{^current}} + + {{/current}} + {{#current}} + + + {{lang_active}} + + {{/current}} + + +
+ {{^configs}} +
+ {{lang_systemConfigurationNotFound}} +
+ {{^modules}} +
+ {{lang_systemConfigurationAlert}} +
+ {{/modules}} + {{/configs}} +
- {{/modules}} - {{/configs}} - -
- -
-
-
- {{lang_availableModules}} - -
-
-
- - - - {{#modules}} - - - - - - {{/modules}} -
{{module}} - - - - -
- {{^modules}} -
{{lang_configurationModuleNotFound}}
- {{/modules}} -
+ +
- @@ -106,3 +110,34 @@
+ + \ No newline at end of file -- cgit v1.2.3-55-g7522