From 4b7e65e6107706b9d9ea9b671f509935ed49f3f0 Mon Sep 17 00:00:00 2001 From: Aris Feryanto Date: Mon, 2 May 2011 10:09:05 +0700 Subject: [PATCH] Recently used tables (works, but only in temporary session variable) --- libraries/header.inc.php | 3 +++ tbl_structure.php | 1 - themes/original/css/theme_left.css.php | 10 ++++++++++ themes/pmahomme/css/theme_left.css.php | 12 +++++++++++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/libraries/header.inc.php b/libraries/header.inc.php index 807ec0af20..9e37e32033 100644 --- a/libraries/header.inc.php +++ b/libraries/header.inc.php @@ -151,6 +151,9 @@ if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) { .'"' . htmlspecialchars($show_comment) .'"' . "\n"; } // end if + + // remember accessed table + PMA_addRecentTable($table, $db); } else { // no table selected, display database comment if present /** diff --git a/tbl_structure.php b/tbl_structure.php index 6286287a1f..73374d7a5e 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -934,7 +934,6 @@ if ($cfg['ShowStats']) { require './libraries/tbl_triggers.lib.php'; echo '
' . "\n"; -PMA_addRecentTable($table, $db); /** * Displays the footer diff --git a/themes/original/css/theme_left.css.php b/themes/original/css/theme_left.css.php index 50ffc3984e..f21bca27f0 100644 --- a/themes/original/css/theme_left.css.php +++ b/themes/original/css/theme_left.css.php @@ -83,6 +83,16 @@ div#pmalogo { background-color: ; padding:.3em; } + +div#recentTableList { + text-align: center; + margin-bottom: 0.5em; +} + +div#recentTableList select { + width: 100%; +} + div#pmalogo, div#leftframelinks, div#databaseList { diff --git a/themes/pmahomme/css/theme_left.css.php b/themes/pmahomme/css/theme_left.css.php index 467e70a255..e0a6393c5e 100644 --- a/themes/pmahomme/css/theme_left.css.php +++ b/themes/pmahomme/css/theme_left.css.php @@ -94,11 +94,21 @@ button { div#pmalogo { } + +div#recentTableList { + text-align: center; + margin: 20px 10px 0px 10px; +} + +div#recentTableList select { + width: 100%; +} + div#pmalogo, div#leftframelinks, div#databaseList { text-align: center; - margin: 20px 10px 0px 10px; + margin: 5px 10px 0px 10px; } ul#databaseList {