From 98ef84ebc36f098ec9ce3aeb2c97f925ffcc050e Mon Sep 17 00:00:00 2001 From: lorilee Date: Fri, 23 Jul 2010 20:31:52 -0700 Subject: [PATCH] New main page design --- js/main_custom_color.js | 2 +- libraries/select_server.lib.php | 7 +- main.php | 65 ++++++------------- .../darkblue_orange/css/theme_right.css.php | 29 +++------ themes/darkblue_orange/layout.inc.php | 2 +- themes/original/css/theme_right.css.php | 31 +++------ 6 files changed, 41 insertions(+), 95 deletions(-) diff --git a/js/main_custom_color.js b/js/main_custom_color.js index eacc5b793..557fb3fed 100644 --- a/js/main_custom_color.js +++ b/js/main_custom_color.js @@ -6,7 +6,7 @@ $(document).ready(function() { $('#li_custom_color').show(); // Choosing another id does not work! - $('#colorSelector').ColorPicker({ + $("input[type='submit'][name='custom_color_choose']").ColorPicker({ color: '#0000ff', onShow: function (colpkr) { $(colpkr).fadeIn(500); diff --git a/libraries/select_server.lib.php b/libraries/select_server.lib.php index e6804fc02..f71f7cde0 100644 --- a/libraries/select_server.lib.php +++ b/libraries/select_server.lib.php @@ -35,13 +35,13 @@ function PMA_select_server($not_only_options, $ommit_fieldset) if (! $ommit_fieldset) { echo '
'; } - echo ' '; + echo ' '; echo '' . "\n" + . ' ' . "\n" + . ' ' . "\n"; + } // end of if ($server > 0) echo ''; echo ''; } - -if ($server > 0) { - echo '
'; - echo '

MySQL ' . $short_server_info . '

'; - echo '
    ' . "\n"; - - if ($cfg['ShowCreateDb']) { - echo '
  • '; - require './libraries/display_create_database.lib.php'; - echo '
  • ' . "\n"; - } - - echo '
  • '; - echo '
    ' . "\n" - . PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection') - . ' ' . "\n" - . PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'collation_connection', 'select_collation_connection', $collation_connection, true, 4, true) - . ' ' . "\n" - // put the doc link in the form so that it appears on the same line - . PMA_showMySQLDocu('MySQL_Database_Administration', 'Charset-connection') . "\n" - . '
    ' . "\n" - . '
  • ' . "\n"; - - echo '
'; - echo '
'; -} - echo '
'; -echo '

' . __('Interface') . '

'; +echo '

' . __('Appearance Settings') . '

'; echo '
    '; // Displays language selection combo @@ -155,14 +129,13 @@ if ($GLOBALS['cfg']['ThemeManager']) { // see js/main_custom_color.js echo '
  • '; - echo PMA_escapeJsString(__('Custom color')) . ': '; + echo PMA_escapeJsString(__('Background color')) . ': '; + echo ''; echo PMA_generate_common_hidden_inputs(); echo ''; echo ''; echo ''; - echo '
    '; - echo '
    '; echo '
  • '; } echo '
  • '; diff --git a/themes/darkblue_orange/css/theme_right.css.php b/themes/darkblue_orange/css/theme_right.css.php index e95d49d68..a27556094 100644 --- a/themes/darkblue_orange/css/theme_right.css.php +++ b/themes/darkblue_orange/css/theme_right.css.php @@ -1020,7 +1020,7 @@ div#queryboxcontainer div#bookmarkoptions { } #maincontainer ul { - list-style-image: url(getImgPath(); ?>item_.png); + list-style-type: disc; vertical-align: middle; } @@ -1040,8 +1040,7 @@ li#li_select_lang { list-style-image: url(getImgPath(); ?>s_lang.png); } -li#li_select_mysql_collation, -li#li_select_mysql_charset { +li#li_select_mysql_collation { list-style-image: url(getImgPath(); ?>s_asci.png); } @@ -1049,11 +1048,6 @@ li#li_select_theme{ list-style-image: url(getImgPath(); ?>s_theme.png); } -li#li_server_info, -li#li_server_version{ - list-style-image: url(getImgPath(); ?>s_host.png); -} - li#li_user_info{ /* list-style-image: url(getImgPath(); ?>s_rights.png); */ } @@ -1102,19 +1096,10 @@ li#li_log_out { list-style-image: url(getImgPath(); ?>s_loggoff.png); } -li#li_pma_docs, -li#li_pma_wiki { - list-style-image: url(getImgPath(); ?>b_docs.png); -} - li#li_phpinfo { list-style-image: url(getImgPath(); ?>php_sym.png); } -li#li_pma_homepage { - list-style-image: url(getImgPath(); ?>b_home.png); -} - li#li_mysql_privilegs{ list-style-image: url(getImgPath(); ?>s_rights.png); } @@ -1245,7 +1230,7 @@ code.sql { } .group h2 { - background-color: ; + background: ; padding: 0.1em 0.3em; margin-top: 0; } @@ -1256,9 +1241,11 @@ code.sql { } #li_select_server { - padding-bottom: 0.3em; - border-bottom: 0.3em solid ; - margin-bottom: 0.3em; + list-style-image: url(getImgPath(); ?>s_host.png); +} + +#list_server { + list-style-image: none; } /** diff --git a/themes/darkblue_orange/layout.inc.php b/themes/darkblue_orange/layout.inc.php index e7282e1c5..617ee9606 100644 --- a/themes/darkblue_orange/layout.inc.php +++ b/themes/darkblue_orange/layout.inc.php @@ -76,7 +76,7 @@ $GLOBALS['cfg']['FontFamilyFixed'] = 'monospace'; // border $GLOBALS['cfg']['Border'] = 0; // table header and footer color -$GLOBALS['cfg']['ThBackground'] = '#ff9900 url(' . $_SESSION['PMA_Theme']->getImgPath() . 'tbl_th.png) repeat-x top'; +$GLOBALS['cfg']['ThBackground'] = '#ff9900 url("' . $_SESSION['PMA_Theme']->getImgPath() . 'tbl_th.png") repeat-x top'; // table header and footer background $GLOBALS['cfg']['ThColor'] = '#000000'; // table data row background diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index fad64cef6..a3e6fa3c8 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -969,12 +969,12 @@ div#queryboxcontainer div#bookmarkoptions { } #maincontainer ul { - list-style-image: url(getImgPath(); ?>item_.png); + list-style-type: disc; vertical-align: middle; } #maincontainer li { - margin-bottom: 0.3em; + margin: 0.2em 0em; } /* END main page */ @@ -989,8 +989,7 @@ li#li_select_lang { list-style-image: url(getImgPath(); ?>s_lang.png); } -li#li_select_mysql_collation, -li#li_select_mysql_charset { +li#li_select_mysql_collation { list-style-image: url(getImgPath(); ?>s_asci.png); } @@ -998,11 +997,6 @@ li#li_select_theme{ list-style-image: url(getImgPath(); ?>s_theme.png); } -li#li_server_info, -li#li_server_version{ - list-style-image: url(getImgPath(); ?>s_host.png); -} - li#li_user_info{ /* list-style-image: url(getImgPath(); ?>s_rights.png); */ } @@ -1051,19 +1045,10 @@ li#li_log_out { list-style-image: url(getImgPath(); ?>s_loggoff.png); } -li#li_pma_docs, -li#li_pma_wiki { - list-style-image: url(getImgPath(); ?>b_docs.png); -} - li#li_phpinfo { list-style-image: url(getImgPath(); ?>php_sym.png); } -li#li_pma_homepage { - list-style-image: url(getImgPath(); ?>b_home.png); -} - li#li_mysql_privilegs{ list-style-image: url(getImgPath(); ?>s_rights.png); } @@ -1197,7 +1182,7 @@ code.sql { } .group h2 { - background-color: ; + background: ; padding: 0.1em 0.3em; margin-top: 0; } @@ -1208,9 +1193,11 @@ code.sql { } #li_select_server { - padding-bottom: 0.3em; - border-bottom: 0.3em solid ; - margin-bottom: 0.3em; + list-style-image: url(getImgPath(); ?>s_host.png); +} + +#list_server { + list-style-image: none; } /**