diff --git a/ChangeLog b/ChangeLog index fb1400871..f9b70ec4b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2004-05-03 Michal Cihar * querywindow.php: Fix javascript error (bug #946823). * tbl_query_box.php: Stray
  • (bug #946530). + * querywindow.php, tbl_query_box.php: A bit more XHTML validity. 2004-05-03 Garvin Hicking * left.php: Bug #946501 - Nested table now also work with aliased diff --git a/querywindow.php b/querywindow.php index 1d2da7bd6..3ad298b67 100644 --- a/querywindow.php +++ b/querywindow.php @@ -84,12 +84,12 @@ if ($cfg['QueryFrameJS'] && !isset($no_js)) {  '; } echo "\n"; - echo PMA_printTab($strSQL, '#', '', 'onClick="javascript:query_tab_commit(\'sql\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'sql' ? TRUE : FALSE)); - echo PMA_printTab($strImportFiles, '#', '', 'onClick="javascript:query_tab_commit(\'files\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'files' ? TRUE : FALSE)); - echo PMA_printTab($strQuerySQLHistory, '#', '', 'onClick="javascript:query_tab_commit(\'history\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'history' ? TRUE : FALSE)); + echo PMA_printTab($strSQL, '#', '', 'onclick="javascript:query_tab_commit(\'sql\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'sql' ? TRUE : FALSE)); + echo PMA_printTab($strImportFiles, '#', '', 'onclick="javascript:query_tab_commit(\'files\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'files' ? TRUE : FALSE)); + echo PMA_printTab($strQuerySQLHistory, '#', '', 'onclick="javascript:query_tab_commit(\'history\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'history' ? TRUE : FALSE)); if ($cfg['QueryWindowDefTab'] == 'full') { - echo PMA_printTab($strAll, '#', '', 'onClick="javascript:query_tab_commit(\'full\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'full' ? TRUE : FALSE)); + echo PMA_printTab($strAll, '#', '', 'onclick="javascript:query_tab_commit(\'full\');return false;"', '', '', (isset($querydisplay_tab) && $querydisplay_tab == 'full' ? TRUE : FALSE)); } if (!$cfg['LightTabs']) { @@ -141,8 +141,8 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { $input_query_history[] = ''; $sql_history[] = '
  • ' - . '' . $titles['Change'] . '' - . ' [' . htmlspecialchars($query_history_latest_db) . '] ' . urldecode($query_history_latest) . '' + . '' . $titles['Change'] . '' + . ' [' . htmlspecialchars($query_history_latest_db) . '] ' . urldecode($query_history_latest) . '' . '
  • ' . "\n"; $sql_query = urldecode($query_history_latest); @@ -164,8 +164,8 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { foreach($temp_history AS $history_nr => $history_array) { if (!isset($dup_sql[$history_array['sqlquery']])) { $sql_history[] = '
  • ' - . '' . $titles['Change'] . '' - . '[' . htmlspecialchars($history_array['db']) . '] ' . urldecode($history_array['sqlquery']) . '' + . '' . $titles['Change'] . '' + . '[' . htmlspecialchars($history_array['db']) . '] ' . urldecode($history_array['sqlquery']) . '' . '
  • ' . "\n"; $dup_sql[$history_array['sqlquery']] = true; } @@ -184,8 +184,8 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { $input_query_history[] = ''; $sql_history[] = '
  • ' - . '' . $titles['Change'] . '' - . '[' . htmlspecialchars($query_history_db[$query_no]) . '] ' . urldecode($query_sql) . '' + . '' . $titles['Change'] . '' + . '[' . htmlspecialchars($query_history_db[$query_no]) . '] ' . urldecode($query_sql) . '' . '
  • ' . "\n"; $dup_sql[$query_sql] = true; } // end if check if this item exists @@ -216,9 +216,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { if (isset($sql_history) && isset($querydisplay_tab) && ($querydisplay_tab == 'history' || $querydisplay_tab == 'full') && is_array($sql_history) && count($sql_history) > 0) { ?> -
  • '; ?> -
  • diff --git a/tbl_query_box.php b/tbl_query_box.php index 880490192..ebfdbcf26 100644 --- a/tbl_query_box.php +++ b/tbl_query_box.php @@ -48,7 +48,7 @@ if (isset($db) && isset($table) && $table != '' && $db != '') { // ($is_upload now defined in common.lib.php) if ($cfg['QueryFrame'] && $cfg['QueryFrameJS'] && isset($is_inside_querywindow) && $is_inside_querywindow == TRUE && isset($querydisplay_tab) && ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full')) { - $locking = 'onKeyPress="document.sqlform.elements[\'LockFromUpdate\'].checked = true;"'; + $locking = 'onkeypress="document.sqlform.elements[\'LockFromUpdate\'].checked = true;"'; } else { $locking = ''; }