Display a (javascript) based query window as a new frame below the left
frame with query history [#526008]. Currently a bit experimental, works with IE6 and Mozilla 1.2. Utilizes pretty basic JavaScript functions which *should* work with any browser.
This commit is contained in:
@@ -1265,10 +1265,15 @@ if (typeof(document.getElementById) != 'undefined'
|
||||
&& ($cfg['SQLQuery']['Edit'] == TRUE )
|
||||
&& (!empty($edit_target))) {
|
||||
|
||||
$onclick = '';
|
||||
if ($cfg['QueryFrameJS'] && $cfg['QueryFrame']) {
|
||||
$onclick = 'onclick="focus_querywindow(); return false;"';
|
||||
}
|
||||
|
||||
$edit_link = ' [<a href="'
|
||||
. $edit_target
|
||||
. $url_qpart
|
||||
. '&sql_query=' . urlencode($GLOBALS['sql_query']) . '&show_query=1#querybox">' . $GLOBALS['strEdit'] . '</a>]';
|
||||
. '&sql_query=' . urlencode($GLOBALS['sql_query']) . '&show_query=1#querybox" ' . $onclick . '>' . $GLOBALS['strEdit'] . '</a>]';
|
||||
} else {
|
||||
$edit_link = '';
|
||||
}
|
||||
|
Reference in New Issue
Block a user