diff --git a/ChangeLog b/ChangeLog
index d282475d5..5d476c5ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog
$Id$
$HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $
+3.0.0.0 (not yet released)
++ [navi] new parameter $cfg['LeftDefaultTabTable']
+
2.11.2.0 (not yet released)
- patch #1791576 HTTP auth: support REDIRECT_REMOTE_USER, thanks to Allard
+ [lang] Serbian update, thanks to Mihailo Stefanovic
diff --git a/Documentation.html b/Documentation.html
index 89b7ffe27..e9b51af3f 100644
--- a/Documentation.html
+++ b/Documentation.html
@@ -1267,6 +1267,14 @@ ALTER TABLE `pma_column_comments`
Defines whether to display database choice in light navigation frame as links
instead of in a drop-down. Defaults to 'auto' - on main page list is
shown, when database is selected, only drop down is displayed.
+
+ $cfg['LeftDefaultTabTable'] string
+ Defines the tab displayed by default when clicking the small
+ icon next to each table name in the navigation panel. Possible
+ values: "tbl_structure.php",
+ "tbl_sql.php", "tbl_select.php",
+ "tbl_change.php" or "sql.php".
+
$cfg['ShowStats'] boolean
Defines whether or not to display space usage and statistics about databases
and tables.
diff --git a/libraries/config.default.php b/libraries/config.default.php
index 447b5a6e1..1d5b39104 100644
--- a/libraries/config.default.php
+++ b/libraries/config.default.php
@@ -585,6 +585,20 @@ $cfg['DisplayServersList'] = false;
*/
$cfg['DisplayDatabasesList'] = 'auto';
+/**
+ * target of the navigation panel quick access icon
+ *
+ * Possible values:
+ * 'tbl_structure.php' = fields list
+ * 'tbl_sql.php' = SQL form
+ * 'tbl_select.php' = search page
+ * 'tbl_change.php' = insert row page
+ * 'sql.php' = browse page
+ *
+ * @global string $cfg['LeftDefaultTabTable']
+ */
+$cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
+
/*******************************************************************************
* In the main frame, at startup...
@@ -820,13 +834,13 @@ $cfg['DefaultTabDatabase'] = 'db_structure.php';
* Possible values:
* 'tbl_structure.php' = fields list
* 'tbl_sql.php' = SQL form
- * 'tbl_select.php' = select page
+ * 'tbl_select.php' = search page
* 'tbl_change.php' = insert row page
* 'sql.php' = browse page
*
* @global string $cfg['DefaultTabTable']
*/
-$cfg['DefaultTabTable'] = 'tbl_structure.php';
+$cfg['DefaultTabTable'] = 'sql.php';
/*******************************************************************************
diff --git a/navigation.php b/navigation.php
index 03fdcc866..8e32050fb 100644
--- a/navigation.php
+++ b/navigation.php
@@ -581,17 +581,17 @@ function PMA_displayTableList($tables, $visible = false,
}
echo '' . "\n";
} elseif (is_array($table)) {
- $href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
- .$GLOBALS['common_url_query'] . '&table='
- .urlencode($table['Name']);
+ // quick access icon next to each table name
echo '' . "\n";
- echo ''
.'
' . "\n"
- .'' . "\n";
+
+ // link for the table name itself
+ $href = $GLOBALS['cfg']['DefaultTabTable'] . '?'
+ .$GLOBALS['common_url_query'] . '&table='
+ .urlencode($table['Name']);
+ echo ''
// preserve spaces in table name
@@ -612,6 +618,38 @@ function PMA_displayTableList($tables, $visible = false,
echo '';
}
+/**
+ * get the action word corresponding to a script name
+ * in order to display it as a title in navigation panel
+ *
+ * @uses switch()
+ * @uses $GLOBALS
+ * @param string a valid value for $cfg['LeftDefaultTabTable']
+ * or $cfg['DefaultTabTable']
+ */
+function PMA_getTitleForTarget($target) {
+ switch ($target) {
+ case 'tbl_structure.php':
+ $message = 'strStructure';
+ break;
+ case 'tbl_sql.php':
+ $message = 'strSQL';
+ break;
+ case 'tbl_select.php':
+ $message = 'strSearch';
+ break;
+ case 'tbl_change.php':
+ $message = 'strInsert';
+ break;
+ case 'sql.php':
+ $message = 'strBrowse';
+ break;
+ default:
+ $message = '';
+ }
+ return $GLOBALS[$message];
+}
+
echo '' . "\n";
PMA_exitNavigationFrame();