From f2567b035fe8e70e592f334a9ed401e1000f1c9c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Olivier=20M=C3=BCller?=
Date: Fri, 11 Jan 2002 15:59:32 +0000
Subject: [PATCH] started to work on the "LeftLight" concept (cf. Changelog)
---
ChangeLog | 8 +
Documentation.html | 6 +
config.inc.php3 | 4 +
db_details.php3 | 11 +-
index.php3 | 10 +-
leftlight.php3 | 325 ++++++++++++++++++++++++++++++++++++++
libraries/common.lib.php3 | 9 +-
main.php3 | 11 +-
8 files changed, 380 insertions(+), 4 deletions(-)
create mode 100755 leftlight.php3
diff --git a/ChangeLog b/ChangeLog
index 70c3b842f..e41adb82d 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,14 @@ $Source$
2002-01-11 Olivier Müller
* lang/*: added $strSelectAll / $strUnselectAll, used in db_details.php3
+ * leftlight.php3, config.inc.php3, db_details.php3, index.php3, main.php3,
+ libraries/common.lib.php3, Documentation.html:
+ started to work on the "LeftLight" concept. TODO:
+ - better fonts & html
+ - add strings for leftlight.php specific messages
+ - javascript: update both frames on DB selection
+ - give the user the possibility to choose between the
+ "standard" and the "light" view.
2002-01-10 Marc Delisle
* lang/slovak-iso updates, thanks to Lubos Klokner
diff --git a/Documentation.html b/Documentation.html
index cffb0507b..9b4b40762 100755
--- a/Documentation.html
+++ b/Documentation.html
@@ -556,6 +556,12 @@
+
$cfgLeftFrameLight boolean
+
+ Defines whether to use select-based menu and display only the
+ current tables in the left frame (smaller page).
+
+
$cfgOBGzip boolean
diff --git a/config.inc.php3 b/config.inc.php3
index 116f924b2..35d5ed2c5 100755
--- a/config.inc.php3
+++ b/config.inc.php3
@@ -108,6 +108,10 @@ $cfgShowStats = TRUE; // allow to display statistics and space usa
// properties
$cfgShowTooltip = TRUE; // display table comment as tooltip in left frame
+// Left frame setup
+$cfgLeftFrameLight = TRUE; // use a select-based menu and display only the
+ // current tables in the left frame. (experimental)
+
// In the main frame, at startup...
$cfgShowMysqlInfo = FALSE; // whether to display the "MySQL runtime
$cfgShowMysqlVars = FALSE; // information", "MySQL system variables" and "PHP
diff --git a/db_details.php3 b/db_details.php3
index 990595c8d..9c1059e36 100755
--- a/db_details.php3
+++ b/db_details.php3
@@ -37,6 +37,15 @@ if (!isset($is_db) || !$is_db) {
}
} // end if (ensures db exists)
+// Select the file to be displayed
+
+if ($cfgLeftFrameLight) {
+ $leftFrame = "leftlight.php3";
+} else {
+ $leftFrame = "left.php3";
+}
+
+
// Displays headers
if (!isset($message)) {
$js_to_run = 'functions.js';
@@ -47,7 +56,7 @@ if (!isset($message)) {
?>
; font-size:
';
+} // end if ($num_dbs == 0)
+echo "\n";
+?>
+
+
+
+
+
diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3
index 20bb9241d..7db14aa65 100644
--- a/libraries/common.lib.php3
+++ b/libraries/common.lib.php3
@@ -807,10 +807,17 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
*/
function PMA_showMessage($message)
{
+
+ if (isset($GLOBALS['cfgLeftFrameLight']) && $GLOBALS['cfgLeftFrameLight']) {
+ $leftFrame = "leftlight.php3";
+ } else {
+ $leftFrame = "left.php3";
+ }
+
// Reloads the navigation frame via JavaScript if required
if (isset($GLOBALS['reload']) && $GLOBALS['reload']) {
echo "\n";
- $reload_url = './left.php3'
+ $reload_url = './' . $leftFrame
. '?lang=' . $GLOBALS['lang']
. '&server=' . $GLOBALS['server']
. ((!empty($GLOBALS['db'])) ? '&db=' . urlencode($GLOBALS['db']) : '');
diff --git a/main.php3 b/main.php3
index 6bbfd5abb..61614e387 100755
--- a/main.php3
+++ b/main.php3
@@ -25,11 +25,20 @@ if (isset($message)) {
}
else if (isset($reload) && $reload) {
// Reloads the navigation frame via JavaScript if required
+
+ // Select the file to be displayed
+
+ if ($cfgLeftFrameLight) {
+ $leftFrame = "leftlight.php3";
+ } else {
+ $leftFrame = "left.php3";
+ }
+
echo "\n";
?>