diff --git a/ChangeLog b/ChangeLog index 64c894389..a116aab0e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-11-20 Sebastian Mendel + * added test/theme.php: for testing themes + 2005-11-21 Michal Čihař * libraries/import/sql.php: Fix query splitting in some cases (reported by Marc). diff --git a/test/theme.php b/test/theme.php new file mode 100644 index 000000000..b8530d2c7 --- /dev/null +++ b/test/theme.php @@ -0,0 +1,276 @@ + + + + + phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?> - Theme Test + + + + + + +-' . "\n"; +$item = '' + .' ' . "\n" + .'%4$s: %3$s' . "\n"; + +echo '
' . "\n"; +printf( $item, + $GLOBALS['cfg']['DefaultTabServer'], + PMA_generate_common_url(), + 'Server', + $GLOBALS['strServer'], + 's_host.png' ); + +echo $separator; +printf( $item, + $GLOBALS['cfg']['DefaultTabDatabase'], + '', + 'Database', + $GLOBALS['strDatabase'], + 's_db.png' ); + +echo $separator; +printf( $item, + $GLOBALS['cfg']['DefaultTabTable'], + '', + 'Table', + (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] ? $GLOBALS['strView'] : $GLOBALS['strTable']), + (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] ? 'b_views' : 's_tbl') . '.png' ); + +echo '' + .'"Table comment"' . "\n"; + +echo '
'; + + +/** + * Displays tab links + */ +$tabs = array(); + +$tabs['databases']['icon'] = '../../../../' . $pmaThemeImage . 's_db.png'; +$tabs['databases']['link'] = 'server_databases.php'; +$tabs['databases']['text'] = $strDatabases; + +$tabs['sql']['icon'] = '../../../../' . $pmaThemeImage . 'b_sql.png'; +$tabs['sql']['link'] = 'server_sql.php'; +$tabs['sql']['text'] = $strSQL; + +$tabs['status']['icon'] = '../../../../' . $pmaThemeImage . 's_status.png'; +$tabs['status']['link'] = 'server_status.php'; +$tabs['status']['text'] = $strStatus; + +$tabs['vars']['icon'] = '../../../../' . $pmaThemeImage . 's_vars.png'; +$tabs['vars']['link'] = 'server_variables.php'; +$tabs['vars']['text'] = $strServerTabVariables; + +$tabs['charset']['icon'] = '../../../../' . $pmaThemeImage . 's_asci.png'; +$tabs['charset']['link'] = 'server_collations.php'; +$tabs['charset']['text'] = $strCharsets; + +$tabs['engine']['icon'] = '../../../../' . $pmaThemeImage . 'b_engine.png'; +$tabs['engine']['link'] = 'server_engines.php'; +$tabs['engine']['text'] = $strEngines; + +$tabs['rights']['icon'] = '../../../../' . $pmaThemeImage . 's_rights.png'; +$tabs['rights']['link'] = 'server_privileges.php'; +$tabs['rights']['text'] = $strPrivileges; + +$tabs['binlog']['icon'] = '../../../../' . $pmaThemeImage . 's_tbl.png'; +$tabs['binlog']['link'] = 'server_binlog.php'; +$tabs['binlog']['text'] = $strBinaryLog; + +$tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png'; +$tabs['process']['link'] = 'server_processlist.php'; +$tabs['process']['text'] = 'caution'; +$tabs['process']['class'] = 'caution'; + +$tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; +$tabs['export']['text'] = 'disabled'; + +$tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; +$tabs['export2']['text'] = 'disabled caution'; +$tabs['export2']['class'] = 'caution'; + +$tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png'; +$tabs['import']['link'] = 'server_import.php'; +$tabs['import']['text'] = 'active'; +$tabs['import']['class'] = 'active'; + +echo PMA_getTabs( $tabs ); +unset( $tabs ); + +if ( @file_exists( $pmaThemeImage . 'logo_right.png') ) { + ?> + phpMyAdmin + +

+phpMyAdmin ' . PMA_VERSION . ''); +?> +

+ +
+ +
+
+ + + + +
+
+ +
+ +

H1 Header

+

H2 Header

+

H3 Header

+

H4 Header

+ +

Notice header!

+
+ notice message box content! +
+
+

Notice message box header!

+ notice message box content! +
+ +

Warning header!

+
+ warning message box content! +
+
+

Warning message box header!

+ warning message box content! +
+ +

Error header!

+
+ error message box content! +
+
+

Error message box header!

+ error message box content! +
+ +
+ Confirmation fieldset + QUERY TO EXECUTE; +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
table.data caption
table.data thead tr thtable.data thead tr thactiontable.data thead tr th
table.data tfoot tr thtable.data tfoot tr thactiontable.data tfoot tr th
td.valuedropdropdroptable.data tbody tr.odd td
td.valuedropdropdroptable.data tbody tr.even td
td.valuedropdropdroptable.data tbody tr.odd td
td.valuedropdropdroptable.data tbody tr.even td
+ + \ No newline at end of file