open db link from querywindow in main frame

This commit is contained in:
Sebastian Mendel
2005-10-19 15:16:56 +00:00
parent 3cedec468e
commit 7a0baa863a
2 changed files with 13 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ $Source$
moved not always needed code out of event handler, fixed display with larger font moved not always needed code out of event handler, fixed display with larger font
* libraries/function.js, css/phpmyadmin.css.php: * libraries/function.js, css/phpmyadmin.css.php:
added mark and hover effect to every table of class data 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> 2005-10-18 Michal Čihař <michal@cihar.com>
* libraries/relation.lib.php: Do not set database if not needed. * libraries/relation.lib.php: Do not set database if not needed.

View File

@@ -215,7 +215,12 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
$db = $GLOBALS['db']; $db = $GLOBALS['db'];
// if you want navigation: // if you want navigation:
$strDBLink = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] $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>'; . htmlspecialchars( $db ) . '</a>';
// else use // else use
// $strDBLink = htmlspecialchars( $db ); // $strDBLink = htmlspecialchars( $db );
@@ -235,7 +240,12 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
. '.' . PMA_backquote( $GLOBALS['table'] )); . '.' . PMA_backquote( $GLOBALS['table'] ));
$strDBLink = '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] $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>'; . htmlspecialchars( $db ) . '</a>';
// else use // else use
// $strDBLink = htmlspecialchars( $db ); // $strDBLink = htmlspecialchars( $db );