open db link from querywindow in main frame
This commit is contained in:
@@ -15,6 +15,7 @@ $Source$
|
||||
moved not always needed code out of event handler, fixed display with larger font
|
||||
* libraries/function.js, css/phpmyadmin.css.php:
|
||||
added mark and hover effect to every table of class data
|
||||
* libraries/sql_query_form.lib.php: open db link from querywindow in main frame
|
||||
|
||||
2005-10-18 Michal Čihař <michal@cihar.com>
|
||||
* libraries/relation.lib.php: Do not set database if not needed.
|
||||
|
@@ -215,7 +215,12 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
|
||||
$db = $GLOBALS['db'];
|
||||
// if you want navigation:
|
||||
$strDBLink = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase']
|
||||
. '?' . PMA_generate_common_url( $db ) . '">'
|
||||
. '?' . PMA_generate_common_url( $db ) . '"';
|
||||
if ( $is_querywindow ) {
|
||||
$strDBLink .= ' target="_self"'
|
||||
. ' onclick="this.target=window.opener.frames[1].name"';
|
||||
}
|
||||
$strDBLink .= '>'
|
||||
. htmlspecialchars( $db ) . '</a>';
|
||||
// else use
|
||||
// $strDBLink = htmlspecialchars( $db );
|
||||
@@ -235,7 +240,12 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
|
||||
. '.' . PMA_backquote( $GLOBALS['table'] ));
|
||||
|
||||
$strDBLink = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase']
|
||||
. '?' . PMA_generate_common_url( $db ) . '">'
|
||||
. '?' . PMA_generate_common_url( $db ) . '"';
|
||||
if ( $is_querywindow ) {
|
||||
$strDBLink .= ' target="_self"'
|
||||
. ' onclick="this.target=window.opener.frames[1].name"';
|
||||
}
|
||||
$strDBLink .= '>'
|
||||
. htmlspecialchars( $db ) . '</a>';
|
||||
// else use
|
||||
// $strDBLink = htmlspecialchars( $db );
|
||||
|
Reference in New Issue
Block a user