Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorAnn + J.M <phpMyAdmin@ZweiSteinSoft.de>2014-03-29 23:45:49 +0400
committerAnn + J.M <phpMyAdmin@ZweiSteinSoft.de>2014-03-29 23:45:49 +0400
commit356626bbaa1be763349743745e30200db8d2d27d (patch)
tree133fbf118ef01549b30191336a441f6ebec45b82 /setup
parent2714cdce1ce10229c3c44875e4ed4138e3288169 (diff)
[interface] Highlight active left menu item in setup
Signed-off-by: Ann + J.M <phpMyAdmin@ZweiSteinSoft.de>
Diffstat (limited to 'setup')
-rw-r--r--setup/frames/menu.inc.php34
-rw-r--r--setup/styles.css2
2 files changed, 22 insertions, 14 deletions
diff --git a/setup/frames/menu.inc.php b/setup/frames/menu.inc.php
index 0ca99109a9..74f46bca0f 100644
--- a/setup/frames/menu.inc.php
+++ b/setup/frames/menu.inc.php
@@ -10,19 +10,27 @@ if (!defined('PHPMYADMIN')) {
exit;
}
+$formset_id = filter_input(INPUT_GET, 'formset');
+
$separator = PMA_URL_getArgSeparator('html');
echo '<ul>';
-echo '<li><a href="index.php">' . __('Overview') . '</a></li>';
-echo '<li><a href="?page=form' . $separator . 'formset=Features">'
- . __('Features') . '</a></li>';
-echo '<li><a href="?page=form' . $separator . 'formset=Sql_queries">'
- . __('SQL queries') . '</a></li>';
-echo '<li><a href="?page=form' . $separator . 'formset=Navi_panel">'
- . __('Navigation panel') . '</a></li>';
-echo '<li><a href="?page=form' . $separator . 'formset=Main_panel">'
- . __('Main panel') . '</a></li>';
-echo '<li><a href="?page=form' . $separator . 'formset=Import">'
- . __('Import') . '</a></li>';
-echo '<li><a href="?page=form' . $separator . 'formset=Export">'
- . __('Export') . '</a></li>';
+echo '<li><a href="index.php"'
+ . ($formset_id === null ? ' class="active' : '')
+ .'">' . __('Overview') . '</a></li>';
+
+$formsets = array(
+ 'Features' => __('Features'),
+ 'Sql_queries' => __('SQL queries'),
+ 'Navi_panel' => __('Navigation panel'),
+ 'Main_panel' => __('Main panel'),
+ 'Import' => __('Import'),
+ 'Export' => __('Export')
+);
+
+foreach ($formsets as $formset => $label) {
+ echo '<li><a href="?page=form' . $separator . 'formset=' . $formset . '" '
+ . ($formset_id === $formset ? ' class="active' : '')
+ .'">' . $label . '</a></li>';
+}
+
echo '</ul>';
diff --git a/setup/styles.css b/setup/styles.css
index 6bc45f8ab5..e9e51bda6d 100644
--- a/setup/styles.css
+++ b/setup/styles.css
@@ -73,7 +73,7 @@ h1 {
zoom: 1; /* IE fix */
}
-#menu li a:hover, #menu li a:active {
+#menu li a:hover, #menu li a:active, #menu li a.active {
background-color: #e4e4e4;
}