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:
Garvin Hicking
2003-02-24 18:16:24 +00:00
parent dba8ecc4fd
commit dd6345c90f
8 changed files with 492 additions and 12 deletions

View File

@@ -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 = '&nbsp;[<a href="'
. $edit_target
. $url_qpart
. '&amp;sql_query=' . urlencode($GLOBALS['sql_query']) . '&amp;show_query=1#querybox">' . $GLOBALS['strEdit'] . '</a>]';
. '&amp;sql_query=' . urlencode($GLOBALS['sql_query']) . '&amp;show_query=1#querybox" ' . $onclick . '>' . $GLOBALS['strEdit'] . '</a>]';
} else {
$edit_link = '';
}