diff --git a/ChangeLog b/ChangeLog index 3a525df1f..251da7176 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,18 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-10-11 Sebastian Mendel + * footer.inc.php, index.php, left.php, queryframe.php, querywindow.php + server_databases.php, css/phpmyadmin.css.php, libraries/common.lib.php + libraries/left_header.inc.php, libraries/sql_query_form.lib.php + themes/darkblue_orange/css/theme_left.css.php + themes/original/css/theme_left.css.php: + XHTML 1.0 trans. compliance and more semantic XHTML output + +CVS-Vorgang erfolgreich abgeschlossen + + + 2005-10-09 Marc Delisle * tbl_properties_links.php: invalid js confirmation and operation feedback when dropping a view diff --git a/css/phpmyadmin.css.php b/css/phpmyadmin.css.php index 22dba82ed..04f76e93d 100644 --- a/css/phpmyadmin.css.php +++ b/css/phpmyadmin.css.php @@ -43,7 +43,7 @@ table .name { } div#tablestatistics { - border-bottom: 0.1em solid silver; + border-bottom: 0.1em solid #669999; margin-bottom: 0.5em; padding-bottom: 0.5em; } @@ -62,20 +62,21 @@ div#pmalogo, div#leftframelinks, div#databaseList { text-align: center; - border-bottom: 0.1em solid silver; + border-bottom: 0.1em solid #669999; margin-bottom: 0.5em; padding-bottom: 0.5em; } +div#leftframelinks img { + vertical-align: middle; +} + div#leftframelinks a { - margin: 0.1em; - padding: 0.2em; - border: 0.1em solid ; + padding: 0.1em; } div#leftframelinks a:hover { - border-color: gray; - background-color: silver; + background-color: #669999; } div#databaseList form { @@ -98,6 +99,46 @@ div#querywindowcontainer fieldset { } +body#body_leftFrame { + background-color: ; +} + +/* leftdatabaselist */ +div#left_tableList ul { + list-style-type: none; + list-style-position: outside; + margin: 0; + padding: 0; + background-color: ; +} + +div#left_tableList li { + margin: 0; + padding: 0; + white-space: nowrap; +} + + +div#left_tableList li:hover { + background-color: ; +} + + +div#left_tableList img { + height: 1em; + width: auto; + padding: 0; + vertical-align: middle; +} + +div#left_tableList ul ul { + margin-left: 0em; + padding-left: 0.1em; + border-left: 0.1em solid #669999; + padding-bottom: 0.1em; + border-bottom: 0.1em solid #669999; +} + /* querybox */ /* Gecko bug */ @@ -186,7 +227,7 @@ form.clock { text-align: center; } /* Options, eg. on import page */ fieldset { - background-color: ; + background-color: ; } fieldset legend { background-color: transparent; @@ -258,7 +299,7 @@ a.tabactive { /* default tab styles */ .tab, .tabcaution, .tabactive { background-color: #E5E5E5; - border: 0.1em solid silver; + border: 0.1em solid ; border-bottom: 0.1em solid black; border-radius-topleft: 0.5em; border-radius-topright: 0.5em; @@ -288,13 +329,13 @@ span.tab, span.tabcaution { /* odd table rows 1,3,5,7,... */ table tbody tr.odd td, table tbody tr.odd th { - background-color: ; + background-color: ; } /* even table rows 2,4,6,8,... */ table tbody tr.even td, table tbody tr.even th { - background-color: ; + background-color: ; } diff --git a/footer.inc.php b/footer.inc.php index d2de583d1..6fa1d462f 100644 --- a/footer.inc.php +++ b/footer.inc.php @@ -15,64 +15,29 @@ require_once('./libraries/relation.lib.php'); // for PMA_setHistory() // If query window is wanted and open, update with latest selected db/table. if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { -?> + // $is_drop_database comes from sql.php when we saw a DROP DATABASE + // $force_queryframe_reload comes from db_operations.php + if ( empty( $is_drop_database ) && empty( $force_queryframe_reload ) ) { + $force_queryframe_reload = 'false'; + } else { + $force_queryframe_reload = 'true'; + } +?> - - +include('./config.footer.inc.php'); +?> - +?> \ No newline at end of file diff --git a/index.php b/index.php index 95c5128b3..9907b1ff9 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,39 @@ urldecode the db name -if (isset($lightm_db)) { -// no longer urlencoded because of html entities in the db name -// $db = urldecode($lightm_db); - $db = $lightm_db; - unset($lightm_db); -} -$url_query = PMA_generate_common_url(isset($db) ? $db : ''); -header('Content-Type: text/html; charset=' . $GLOBALS['charset']); -require_once('./libraries/relation.lib.php'); + +// purge querywindow history $cfgRelation = PMA_getRelationsParam(); - -if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) { - PMA_purgeHistory($cfg['Server']['user']); +if ( $GLOBALS['cfg']['QueryHistoryDB'] && $cfgRelation['historywork'] ) { + PMA_purgeHistory( $GLOBALS['cfg']['Server']['user'] ); } -$phpmain_hash = md5($cfg['PmaAbsoluteUri']); -$phpmain_hash_js = time(); +$drops = array( 'lang', 'server', 'convcharset', 'collation_connection', + 'db', 'table' ); + +$url_querys = array(); +// pass variables to child pages +foreach( $_GET as $key => $val ) { + if ( ! in_array( $key, $drops ) ) { + $url_querys[] = urlencode( $key ) . '=' . urlencode( $val ); + } +} +unset( $drops ); + +if ( count( $url_querys ) ) { + $url_query = implode( '&', $url_querys ) . '&'; +} else { + $url_query = ''; +} +unset( $url_querys ); + +if ( empty( $GLOBALS['db'] ) ) { + $url_query .= PMA_generate_common_url(); + $main_target = $GLOBALS['cfg']['DefaultTabServer']; +} elseif ( empty( $GLOBALS['table'] ) ) { + $url_query .= PMA_generate_common_url( $GLOBALS['db'] ); + $main_target = $GLOBALS['cfg']['DefaultTabDatabase']; +} else { + $url_query .= PMA_generate_common_url( $GLOBALS['db'], $GLOBALS['table'] ); + $main_target = $GLOBALS['cfg']['DefaultTabTable']; +} + +$main_target .= '?' . $url_query; + +$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2]; + + +// start output +header('Content-Type: text/html; charset=' . $GLOBALS['charset']); ?> - + phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?> - - + - - 0) { - PMA_availableDatabases(); // this function is defined in "common.lib.php" -} else { - $num_dbs = 0; -} -if ($num_dbs > 1) { - if ($cfg['LeftFrameLight']) { - $query_frame_height += 20; - } -} -if ($cfg['QueryFrame']) { - /* Will we show list of servers? */ - if ($cfg['LeftDisplayServers'] && $cfg['DisplayServersList'] && count($cfg['Servers']) > 1) { - $query_frame_height += (count($cfg['Servers']) + 1)*15; - } - - if ($cfg['QueryFrameJS']) { - echo '' . "\n"; - echo "\n"; - echo '