The branch, master has been updated via fd121f211a805e6cb83b51f5087ac79e7791dbba (commit) via 9730a6b3d78e28ef365010384556983f6864db02 (commit) via 97b1375605f241481a953e2c78eb42d43f84fa9d (commit) via 42d682e3405adf72eaeb4865d605a2e9c9d93319 (commit) via 67ec8263dbfd9f39c25bec5350f4618f5c14e001 (commit) via 5308a7b05d219fff7b96b55792e7737ce88ef837 (commit) via a4064cd8ab8a5126c5342d326b2449de3f6b7a34 (commit) via fb4b175586b76a721f539f4020cc5167e4f5aaca (commit) via 110b267a2987a2adcd88179e68b93b495883f616 (commit) via 4c8e6325f1d548cbc1d03919f0a2dd594bc1e7b1 (commit) via f12422457b3fdba017179ebfe2fb9624a11e2712 (commit) via 3b3a9fc7624f857b3ff5f599eee9473a42d71feb (commit) via bf2314342406ea56fc88d878be1072cb139e46d4 (commit) via da943ecbf7a2f604f6969564bee17aff52afd740 (commit) from ce3f3087414ebb87acf75346c17a69962e699e62 (commit)
- Log ----------------------------------------------------------------- commit fd121f211a805e6cb83b51f5087ac79e7791dbba Merge: 9730a6b3d78e28ef365010384556983f6864db02 ce3f3087414ebb87acf75346c17a69962e699e62 Author: Michal Čihař mcihar@suse.cz Date: Thu Jul 21 15:53:04 2011 +0200
Merge branch 'master' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin
commit 9730a6b3d78e28ef365010384556983f6864db02 Merge: bb3cb6d99cbba59caef8e91e621c282b192704c9 97b1375605f241481a953e2c78eb42d43f84fa9d Author: Michal Čihař mcihar@suse.cz Date: Thu Jul 21 15:51:05 2011 +0200
Merge commit '97b1375605f241481a953e2c78eb42d43f84fa9d'
Conflicts: js/functions.js libraries/common.lib.php libraries/header.inc.php server_status.php
commit 97b1375605f241481a953e2c78eb42d43f84fa9d Author: Tyron Madlener tyronx@gmail.com Date: Tue Jul 19 21:44:53 2011 +0300
Remove duplicate intialization
commit 42d682e3405adf72eaeb4865d605a2e9c9d93319 Author: Tyron Madlener tyronx@gmail.com Date: Tue Jul 19 16:26:10 2011 +0300
CSS Sprites for original theme
commit 67ec8263dbfd9f39c25bec5350f4618f5c14e001 Author: Tyron Madlener tyronx@gmail.com Date: Tue Jul 19 12:59:13 2011 +0300
Fixes wrong z-index of timepicker
commit 5308a7b05d219fff7b96b55792e7737ce88ef837 Merge: a5df22ced5067260b5edbb3d95b83cc8050d21a9 a4064cd8ab8a5126c5342d326b2449de3f6b7a34 Author: Tyron Madlener tyronx@gmail.com Date: Mon Jul 18 13:16:28 2011 +0300
Merge branch 'sprites'
Conflicts: ChangeLog po/af.po po/az.po po/be@latin.po po/bs.po po/ca.po po/cs.po po/el.po po/es.po po/fi.po po/fr.po po/gl.po po/he.po po/hi.po po/hr.po po/it.po po/ka.po po/ko.po po/lt.po po/lv.po po/mk.po po/mn.po po/ms.po po/nb.po po/nl.po po/phpmyadmin.pot po/pl.po po/ru.po po/si.po po/sk.po po/sl.po po/sv.po po/th.po po/uz.po themes/pmahomme/css/theme_right.css.php
commit a4064cd8ab8a5126c5342d326b2449de3f6b7a34 Author: Tyron Madlener tyronx@gmail.com Date: Mon Jul 18 13:13:40 2011 +0300
Monitor: Log table filtering and summation
commit fb4b175586b76a721f539f4020cc5167e4f5aaca Author: Tyron Madlener tyronx@gmail.com Date: Mon Jul 18 13:10:08 2011 +0300
Fix merge conflicts of .po files attempt #2
commit 110b267a2987a2adcd88179e68b93b495883f616 Author: Tyron Madlener tyronx@gmail.com Date: Sun Jul 17 22:44:32 2011 +0300
Fix merge conflicts with po files
commit 4c8e6325f1d548cbc1d03919f0a2dd594bc1e7b1 Author: Tyron Madlener tyronx@gmail.com Date: Fri Jul 15 10:28:24 2011 +0300
small help icon explained
commit f12422457b3fdba017179ebfe2fb9624a11e2712 Author: Tyron Madlener tyronx@gmail.com Date: Fri Jul 15 09:48:37 2011 +0300
PMA Spritify: Readded deleted icons
commit 3b3a9fc7624f857b3ff5f599eee9473a42d71feb Author: Tyron Madlener tyronx@gmail.com Date: Fri Jul 15 09:42:16 2011 +0300
pma spritify part 2
commit bf2314342406ea56fc88d878be1072cb139e46d4 Merge: da943ecbf7a2f604f6969564bee17aff52afd740 f989d6f0cf61c861af0a37af12e3a24af7cdf4ee Author: Tyron Madlener tyronx@gmail.com Date: Thu Jul 14 15:56:31 2011 +0300
Merge remote-tracking branch 'origin/master'
Conflicts: ChangeLog Documentation.html db_events.php db_routines.php db_structure.php db_triggers.php js/db_structure.js js/functions.js js/indexes.js js/makegrid.js js/messages.php js/sql.js js/tbl_structure.js libraries/Table.class.php libraries/common.lib.php libraries/config.default.php libraries/config/messages.inc.php libraries/config/setup.forms.php libraries/config/user_preferences.forms.php libraries/database_interface.lib.php libraries/db_events.inc.php libraries/db_links.inc.php libraries/display_tbl.lib.php libraries/tbl_links.inc.php po/af.po po/ar.po po/az.po po/be.po po/be@latin.po po/bg.po po/bn.po po/br.po po/bs.po po/ca.po po/cs.po po/cy.po po/da.po po/de.po po/el.po po/en_GB.po po/es.po po/et.po po/eu.po po/fa.po po/fi.po po/fr.po po/gl.po po/he.po po/hi.po po/hr.po po/hu.po po/id.po po/it.po po/ja.po po/ka.po po/ko.po po/lt.po po/lv.po po/mk.po po/ml.po po/mn.po po/ms.po po/nb.po po/nl.po po/phpmyadmin.pot po/pl.po po/pt.po po/pt_BR.po po/ro.po po/ru.po po/si.po po/sk.po po/sl.po po/sq.po po/sr.po po/sr@latin.po po/sv.po po/ta.po po/te.po po/th.po po/tr.po po/tt.po po/ug.po po/uk.po po/ur.po po/uz.po po/uz@latin.po po/zh_CN.po po/zh_TW.po server_status.php tbl_triggers.php themes/original/css/theme_right.css.php themes/original/jquery/jquery-ui-1.8.override.css themes/pmahomme/css/theme_right.css.php themes/pmahomme/img/s_sortable.png themes/pmahomme/jquery/jquery-ui-1.8.override.css
commit da943ecbf7a2f604f6969564bee17aff52afd740 Author: Tyron Madlener tyronx@gmail.com Date: Thu Jul 14 15:37:08 2011 +0300
PMA Icons to sprites part 1
-----------------------------------------------------------------------
Summary of changes: db_operations.php | 15 +- db_structure.php | 12 +- db_tracking.php | 4 +- js/db_search.js | 2 +- js/db_structure.js | 2 +- js/functions.js | 13 +- js/navigation.js | 4 +- js/server_status.js | 122 +++++++++-- js/server_synchronize.js | 3 +- js/server_variables.js | 6 +- js/sql.js | 16 +- libraries/auth/cookie.auth.lib.php | 4 +- libraries/common.lib.php | 25 +-- libraries/config/FormDisplay.tpl.php | 10 +- libraries/db_links.inc.php | 26 ++-- libraries/db_structure.lib.php | 12 +- libraries/display_create_database.lib.php | 2 +- libraries/display_create_table.lib.php | 2 +- libraries/display_export.lib.php | 2 +- libraries/display_import.lib.php | 2 +- libraries/display_tbl.lib.php | 12 +- libraries/footer.inc.php | 2 +- libraries/header.inc.php | 10 +- libraries/navigation_header.inc.php | 13 +- libraries/schema/User_Schema.class.php | 3 +- libraries/server_links.inc.php | 26 ++-- libraries/sql_query_form.lib.php | 3 +- libraries/tbl_links.inc.php | 20 +- libraries/user_preferences.inc.php | 12 +- navigation.php | 15 +- pmd/scripts/history.js | 6 +- querywindow.php | 10 +- server_binlog.php | 2 +- server_collations.php | 2 +- server_databases.php | 7 +- server_engines.php | 6 +- server_replication.php | 2 +- server_status.php | 42 +++-- server_synchronize.php | 3 +- server_variables.php | 2 +- sql.php | 2 +- tbl_create.php | 4 +- tbl_structure.php | 14 +- tbl_tracking.php | 2 +- test/theme.php | 74 +++---- themes/{pmahomme/img/cleardot.gif => dot.gif} | Bin 43 -> 43 bytes themes/original/css/theme_left.css.php | 28 ++- themes/original/css/theme_right.css.php | 245 ++++++++++++++++++---- themes/original/img/iconsprites.png | Bin 0 -> 32492 bytes themes/pmahomme/css/theme_left.css.php | 27 ++- themes/pmahomme/css/theme_right.css.php | 228 ++++++++++++++++---- themes/pmahomme/img/iconsprites.png | Bin 0 -> 35190 bytes themes/pmahomme/img/pause.png | Bin 329 -> 0 bytes themes/pmahomme/img/play.png | Bin 395 -> 0 bytes themes/pmahomme/img/{s_cog.png => s_process.png} | Bin 512 -> 512 bytes 55 files changed, 748 insertions(+), 358 deletions(-) rename themes/{pmahomme/img/cleardot.gif => dot.gif} (100%) create mode 100644 themes/original/img/iconsprites.png create mode 100644 themes/pmahomme/img/iconsprites.png delete mode 100644 themes/pmahomme/img/pause.png delete mode 100644 themes/pmahomme/img/play.png copy themes/pmahomme/img/{s_cog.png => s_process.png} (100%)
diff --git a/db_operations.php b/db_operations.php index 0b4ab5f..16630e3 100644 --- a/db_operations.php +++ b/db_operations.php @@ -398,8 +398,7 @@ if ($db != 'mysql') { <legend> <?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"' - .' alt="" width="16" height="16" />'; + echo '<img class="icon ic_b_edit" src="themes/dot.gif" alt="" />'; } echo __('Rename database to') . ':'; ?> @@ -434,8 +433,7 @@ if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase']) && ! $db_is_info <fieldset class="caution"> <legend><?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_deltbl.png"' - .' alt="" width="16" height="16" />'; + echo '<img class="icon ic_b_deltbl" src="themes/dot.gif" alt="" />'; } echo __('Remove database'); ?></legend> @@ -481,8 +479,7 @@ echo __('Remove database'); <legend> <?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"' - .' alt="" width="16" height="16" />'; + echo '<img class="icon ic_b_edit" src="themes/dot.gif" alt="" />'; } echo __('Copy database to') . ':'; $drop_clause = 'DROP TABLE / DROP VIEW'; @@ -546,8 +543,7 @@ echo __('Remove database'); . '<fieldset>' . "\n" . ' <legend>'; if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 's_asci.png"' - .' alt="" width="16" height="16" />'; + echo '<img class="icon ic_s_asci" src="themes/dot.gif" alt="" />'; } echo ' <label for="select_db_collation">' . __('Collation') . ':</label>' . "\n" . ' </legend>' . "\n" @@ -594,8 +590,7 @@ if ($cfgRelation['pdfwork'] && $num_tables > 0) { ?> */ echo '<div class="operations_full_width"><fieldset><a href="schema_edit.php?' . $url_query . '">'; if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_edit.png"' - .' alt="" width="16" height="16" />'; + echo '<img class="icon ic_b_edit" src="themes/dot.gif" alt="" />'; } echo __('Edit or export relational schema') . '</a></fieldset></div>'; } // end if diff --git a/db_structure.php b/db_structure.php index 000ab6a..d1ffdc3 100644 --- a/db_structure.php +++ b/db_structure.php @@ -284,9 +284,9 @@ foreach ($tables as $keyname => $each_table) { $tracking_icon = ''; if (PMA_Tracker::isActive()) { if (PMA_Tracker::isTracked($GLOBALS["db"], $truename)) { - $tracking_icon = '<a href="tbl_tracking.php?' . $url_query.'&table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye.png" alt="' . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>'; + $tracking_icon = '<a href="tbl_tracking.php?' . $url_query.'&table=' . $truename . '"><img class="icon ic_eye" src="themes/dot.gif" alt="' . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>'; } elseif (PMA_Tracker::getVersion($GLOBALS["db"], $truename) > 0) { - $tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&table=' . $truename . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye_grey.png" alt="' . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>'; + $tracking_icon = '<a href="tbl_tracking.php?' . $url_query . '&table=' . $truename . '"><img class="icon ic_eye" src="themes/dot.gif" alt="' . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>'; } }
@@ -341,7 +341,7 @@ foreach ($tables as $keyname => $each_table) { <th><?php echo $browse_table_label; ?> <?php echo (! empty($tracking_icon) ? $tracking_icon : ''); ?> </th> - <?php if ($server_slave_status) { ?><td align="center"><?php echo $ignored ? ' <img class="icon" src="' . $pmaThemeImage . 's_cancel.png" width="16" height="16" alt="NOT REPLICATED" />' : ''. $do ? ' <img class="icon" src="' . $pmaThemeImage . 's_success.png" width="16" height="16" alt="REPLICATED" />' : ''; ?></td><?php } ?> + <?php if ($server_slave_status) { ?><td align="center"><?php echo $ignored ? ' <img class="icon ic_s_cancel" src="themes/dot.gif" alt="NOT REPLICATED" />' : ''. $do ? ' <img class="icon ic_s_success" src="themes/dot.gif" alt="REPLICATED" />' : ''; ?></td><?php } ?> <td align="center"><?php echo $browse_table; ?></td> <td align="center"> <a href="tbl_structure.php?<?php echo $tbl_url_query; ?>"> @@ -548,15 +548,13 @@ PMA_listNavigator($total_num_tables, $pos, $_url_params, 'db_structure.php', 'fr echo '<p>'; echo '<a href="db_printview.php?' . $url_query . '">'; if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage - .'b_print.png" width="16" height="16" alt="" />'; + echo '<img class="icon ic_b_print" src="themes/dot.gif" alt="" />'; } echo __('Print view') . '</a> ';
echo '<a href="./db_datadict.php?' . $url_query . '">'; if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage - .'b_tblanalyse.png" width="16" height="16" alt="" />'; + echo '<img class="icon ic_b_tblanalyse" src="themes/dot.gif" alt="" />'; } echo __('Data Dictionary') . '</a>'; echo '</p>'; diff --git a/db_tracking.php b/db_tracking.php index 3a9b695..38a231d 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -98,7 +98,7 @@ if (PMA_DBI_num_rows($all_tables_result) > 0) {
$drop_image_or_text = ''; if (true == $GLOBALS['cfg']['PropertiesIconic']) { - $drop_image_or_text .= '<img class="icon" width="16" height="16" src="' . $pmaThemeImage . 'b_drop.png" alt="' . __('Delete tracking data for this table') . '" title="' . __('Delete tracking data for this table') . '" />'; + $drop_image_or_text .= '<img class="icon ic_b_drop" src="themes/dot.gif" alt="' . __('Delete tracking data for this table') . '" title="' . __('Delete tracking data for this table') . '" />'; } if ('both' === $GLOBALS['cfg']['PropertiesIconic'] || false === $GLOBALS['cfg']['PropertiesIconic']) { $drop_image_or_text .= __('Drop'); @@ -198,7 +198,7 @@ if (isset($my_tables)) { $my_link = '<a href="tbl_tracking.php?' . $url_query . '&table=' . htmlspecialchars($tablename) .'">';
if ($cfg['PropertiesIconic']) { - $my_link .= '<img class="icon" src="' . $pmaThemeImage . 'eye.png" width="16" height="16" alt="' . __('Track table') . '" /> '; + $my_link .= '<img class="icon ic_eye" src="themes/dot.gif" alt="' . __('Track table') . '" /> '; } $my_link .= __('Track table') . '</a>'; ?> diff --git a/js/db_search.js b/js/db_search.js index 0cb04b7..72b3046 100644 --- a/js/db_search.js +++ b/js/db_search.js @@ -87,7 +87,7 @@ $(document).ready(function() { });
/** Hide the table link in the initial search result */ - $("#table-info").prepend('<img id="table-image" src="./themes/original/img/s_tbl.png" />').hide(); + $("#table-info").prepend('<img id="table-image" class="icon ic_s_tbl" src="./themes/dot.gif" />').hide();
/** Hide the browse and deleted results in the new search criteria */ $('#buttonGo').click(function(){ diff --git a/js/db_structure.js b/js/db_structure.js index e7eb7ca..efc8f2a 100644 --- a/js/db_structure.js +++ b/js/db_structure.js @@ -218,7 +218,7 @@ $(document).ready(function() { PMA_ajaxShowMessage(data.message); //Fetch inner span of this anchor //and replace the icon with its disabled version - var span = $this_anchor.html().replace(/b_empty.png/, 'bd_empty.png'); + var span = $this_anchor.html().replace(/ic_b_empty/, 'ic_bd_empty'); PMA_adjustTotals($this_anchor);
//To disable further attempts to truncate the table, diff --git a/js/functions.js b/js/functions.js index eff6759..dbb962d 100644 --- a/js/functions.js +++ b/js/functions.js @@ -135,14 +135,13 @@ function displayPasswordGenerateButton() { * * @param object $this_element a jQuery object pointing to the element */ -function PMA_addDatepicker($this_element) { +function PMA_addDatepicker($this_element, options) { var showTimeOption = false; if ($this_element.is('.datetimefield')) { showTimeOption = true; } - - $this_element - .datepicker({ + + var defaultOptions = { showOn: 'button', buttonImage: themeCalendarImage, // defined in js/messages.php buttonImageOnly: true, @@ -164,7 +163,9 @@ function PMA_addDatepicker($this_element) { },0); }, constrainInput: false - }); + }; + + $this_element.datepicker($.extend(defaultOptions, options)); }
/** @@ -2409,7 +2410,7 @@ $(function() { }); var img = topmenu.find('li:first-child img'); if (img.length) { - img.clone().attr('src', img.attr('src').replace(//[^/]+$/, '/b_more.png')).prependTo(link); + img.clone().attr('class', 'icon ic_b_more').prependTo(link); } var submenu = $('<li />', {'class': 'submenu'}) .append(link) diff --git a/js/navigation.js b/js/navigation.js index 20aea18..167eb37 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -28,13 +28,13 @@ function toggle(id, only_open) { if (el.style.display == 'none' || only_open) { el.style.display = ''; if (img) { - img.src = image_minus; + img.className = 'icon ic_b_minus'; img.alt = '-'; } } else { el.style.display = 'none'; if (img) { - img.src = image_plus; + img.className = 'icon ic_b_plus'; img.alt = '+'; } } diff --git a/js/server_status.js b/js/server_status.js index 2fda29f..ac4071c 100644 --- a/js/server_status.js +++ b/js/server_status.js @@ -439,7 +439,7 @@ $(function() { });
$('#serverstatusqueriesdetails tr:first th') - .append('<img class="sortableIcon" src="' + pmaThemeImage + 'cleardot.gif" alt="">'); + .append('<img class="icon sortableIcon" src="themes/dot.gif" alt="">');
break;
@@ -453,7 +453,7 @@ $(function() { });
$('#serverstatusvariables tr:first th') - .append('<img class="sortableIcon" src="' + pmaThemeImage + 'cleardot.gif" alt="">'); + .append('<img class="icon sortableIcon" src="themes/dot.gif" alt="">');
break; } @@ -942,9 +942,9 @@ $(function() { $('a[href="#pauseCharts"]').click(function() { runtime.redrawCharts = ! runtime.redrawCharts; if(! runtime.redrawCharts) - $(this).html('<img src="' + pmaThemeImage + 'play.png" alt="" /> ' + PMA_messages['strResumeMonitor']); + $(this).html('<img src="themes/dot.gif" class="icon ic_play" alt="" /> ' + PMA_messages['strResumeMonitor']); else { - $(this).html('<img src="' + pmaThemeImage + 'pause.png" alt="" /> ' + PMA_messages['strPauseMonitor']); + $(this).html('<img src="themes/dot.gif" class="icon ic_pause" alt="" /> ' + PMA_messages['strPauseMonitor']); if(runtime.charts == null) { initGrid(); $('a[href="#settingsPopup"]').show(); @@ -968,7 +968,7 @@ $(function() { $.get('server_status.php?' + url_query, vars, function(data) { var logVars = $.parseJSON(data), - icon = 's_success.png', msg='', str=''; + icon = 'ic_s_success', msg='', str='';
if(logVars['general_log'] == 'ON') { if(logVars['slow_query_log'] == 'ON') @@ -982,26 +982,26 @@ $(function() { }
if(msg.length == 0) { - icon = 's_error.png'; + icon = 'ic_s_error'; msg = PMA_messages['strBothLogOff']; }
str = '<b>' + PMA_messages['strCurrentSettings'] + '</b><br><div class="smallIndent">'; - str += '<img src="' + pmaThemeImage + icon + '" alt=""/> ' + msg + '<br />'; + str += '<img src="themes/dot.gif" class="icon ' + icon + '" alt=""/> ' + msg + '<br />';
if(logVars['log_output'] != 'TABLE') - str += '<img src="' + pmaThemeImage + 's_error.png" alt=""/> ' + PMA_messages['strLogOutNotTable'] + '<br />'; + str += '<img src="themes/dot.gif" class="icon ic_s_error" alt=""/> ' + PMA_messages['strLogOutNotTable'] + '<br />'; else - str += '<img src="' + pmaThemeImage + 's_success.png" alt=""/> ' + PMA_messages['strLogOutIsTable'] + '<br />'; + str += '<img src="themes/dot.gif" class="icon ic_s_success" alt=""/> ' + PMA_messages['strLogOutIsTable'] + '<br />';
if(logVars['slow_query_log'] == 'ON') { if(logVars['long_query_time'] > 2) - str += '<img src="' + pmaThemeImage + 's_attention.png" alt=""/> ' + str += '<img src="themes/dot.gif" class="icon ic_s_attention" alt=""/> ' + $.sprintf(PMA_messages['strSmallerLongQueryTimeAdvice'], logVars['long_query_time']) + '<br />';
if(logVars['long_query_time'] < 2) - str += '<img src="' + pmaThemeImage + 's_success.png" alt=""/> ' + str += '<img src="themes/dot.gif" class="icon ic_s_success" alt=""/> ' + $.sprintf(PMA_messages['strLongQueryTimeSet'], logVars['long_query_time']) + '<br />'; } @@ -1261,27 +1261,47 @@ $(function() {
$('#logAnalyseDialog').html( '<p>' + PMA_messages['strSelectedTimeRange'] - + Highcharts.dateFormat('%H:%M:%S',new Date(min)) + ' - ' - + Highcharts.dateFormat('%H:%M:%S',new Date(max)) + '</p>' + + '<input type="text" name="dateStart" class="datetimefield" value="' + Highcharts.dateFormat('%Y-%m-%d %H:%M:%S',new Date(min)) + '" /> - ' + + '<input type="text" name="dateEnd" class="datetimefield" value="' + Highcharts.dateFormat('%Y-%m-%d %H:%M:%S',new Date(max)) + '" /></p>' + '<input type="checkbox" id="groupInserts" value="1" checked="checked" />' + '<label for="groupData">' + PMA_messages['strGroupInserts'] + '</label>' + PMA_messages['strLogAnalyseInfo'] );
+ PMA_addDatepicker($('#logAnalyseDialog').find('input[name="dateStart"],input[name="dateEnd"]'), { + showOn: 'focus', + beforeShow: function() { + // Fix wrong timepicker z-index, doesn't work without timeout + setTimeout(function() { + $('#ui-timepicker-div').css('z-index',$('#ui-datepicker-div').css('z-index')) + },0); + } + }); + var dlgBtns = { };
dlgBtns[PMA_messages['strFromSlowLog']] = function() { + var dateStart = Date.parse($('#logAnalyseDialog input[name="dateStart"]').attr('value')) || min; + var dateEnd = Date.parse($('#logAnalyseDialog input[name="dateEnd"]').attr('value')) || max; + loadLogStatistics( - { src: 'slow', start: min, end: max, groupInserts: $('input#groupInserts').attr('checked') } + { src: 'slow', start: dateStart, end: dateEnd, groupInserts: $('input#groupInserts').attr('checked') } ); + + $('#logAnalyseDialog').find('dateStart,dateEnd').datepicker('destroy');
$(this).dialog("close"); }
dlgBtns[PMA_messages['strFromGeneralLog']] = function() { + var dateStart = Date.parse($('#logAnalyseDialog input[name="dateStart"]').attr('value')) || min; + var dateEnd = Date.parse($('#logAnalyseDialog input[name="dateEnd"]').attr('value')) || max; + loadLogStatistics( - { src: 'general', start: min, end: max, groupInserts: $('input#groupInserts').attr('checked') } + { src: 'general', start: dateStart, end: dateEnd, groupInserts: $('input#groupInserts').attr('checked') } ); + + $('#logAnalyseDialog').find('dateStart,dateEnd').datepicker('destroy');
$(this).dialog("close"); } @@ -1508,14 +1528,16 @@ $(function() { tableStr += '<td>' + formatValue(cols[j], rows[i][cols[j]]) + '</td>'; tableStr += '</tr>'; } - - tableStr+='</tbody></table>'; - + + tableStr += '</tbody><tfoot>'; + tableStr += '<tr><th colspan="' + (cols.length - 1) + '">Sum of grouped rows: '+ data.numRows +'<span style="float:right">Total:</span></th><th align="right">' + data.sum.TOTAL + '</th></tr>'; + tableStr += '</tfoot></table>'; + $('#logTable').html(tableStr);
// Append a tooltip to the count column, if there exist one if($('#logTable th:last').html() == '#') { - $('#logTable th:last').append(' <img class="qroupedQueryInfoIcon" src="' + pmaThemeImage + 'b_docs.png" alt="" />'); + $('#logTable th:last').append(' <img class="qroupedQueryInfoIcon icon ic_b_docs" src="themes/dot.gif" alt="" />');
var qtipContent = PMA_messages['strCountColumnExplanation']; if(groupInserts) qtipContent += '<p>' + PMA_messages['strMoreCountColumnExplanation'] + '</p>'; @@ -1533,13 +1555,15 @@ $(function() { }) }
+ + $('div#logTable table').tablesorter({ sortList: [[0,1]], widgets: ['zebra'] });
$('div#logTable table thead th') - .append('<img class="sortableIcon" src="' + pmaThemeImage + 'cleardot.gif" alt="">'); + .append('<img class="icon sortableIcon" src="themes/dot.gif" alt="">');
$('#loadingLogsDialog').html('<p>' + PMA_messages['strLogDataLoaded'] + '</p>'); @@ -1549,6 +1573,64 @@ $(function() { $('#loadingLogsDialog').append(key + ': ' + value + '<br/>'); });
+ if(data.numRows > 12) { + $('div#logTable').prepend( + '<fieldset id="logDataFilter">' + + ' <legend>Filters</legend>' + + ' <div class="formelement">' + + ' <label for="filterQueryText">Filter queries by word/regexp:</label>' + + ' <input name="filterQueryText" type="text" id="filterQueryText" style="vertical-align: baseline;" />' + + ((data.numRows > 250) ? ' <button name="startFilterQueryText" id="startFilterQueryText">Filter</button>' : '') + + ' </div>' + + '</fieldset>' + ); + + if(data.numRows > 250) { + $('div#logTable button#startFilterQueryText').click(filterQueries); + } else { + $('div#logTable input#filterQueryText').keyup(filterQueries); + } + + function filterQueries() { + var odd_row=false, cell, textFilter; + var val = $('div#logTable input#filterQueryText').val(); + + if(val.length == 0) textFilter = null; + else textFilter = new RegExp(val, 'i'); + + var rowSum = 0, totalSum = 0; + + $('div#logTable table tbody tr').each(function() { + // We just assume the sql text is always in the second last column + cell = $(this).children(':nth-child(' + (cols.length - 1) + ')'); + + if(textFilter==null || textFilter.exec(cell.text())) { + // And that total count is right of the sql text + totalSum += parseInt(cell.next().text()); + rowSum ++; + + odd_row = !odd_row; + $(this).css('display',''); + if(odd_row) { + $(this).addClass('odd'); + $(this).removeClass('even'); + } else { + $(this).addClass('even'); + $(this).removeClass('odd'); + } + } else { + $(this).css('display','none'); + } + }); + + + $('div#logTable table tfoot tr') + .html('<th colspan="' + (cols.length - 1) + + '">Sum of grouped rows: '+ rowSum +'<span style="float:right">Total:</span></th><th align="right">' + + totalSum + '</th>'); + }; + } + var dlgBtns = {}; dlgBtns[PMA_messages['strJumpToTable']] = function() { $(this).dialog("close"); diff --git a/js/server_synchronize.js b/js/server_synchronize.js index e1645ae..1dfd3d2 100644 --- a/js/server_synchronize.js +++ b/js/server_synchronize.js @@ -96,7 +96,8 @@ function showDetails(i, update_size, insert_size, remove_size, insert_index, rem insert_rows.align = "center";
var tick_image = document.createElement("img"); - tick_image.src = pmaThemeImage + "s_success.png"; + tick_image.src = 'themes/dot.gif'; + tick_image.className = "icon ic_s_success";
if (update_size == '' && insert_size == '' && remove_size == '') { /** diff --git a/js/server_variables.js b/js/server_variables.js index e7e469c..e9bc1cf 100644 --- a/js/server_variables.js +++ b/js/server_variables.js @@ -54,9 +54,9 @@ $(function() { var charWidth;
// Global vars - editLink = '<a href="#" class="editLink" onclick="return editVariable(this);"><img src="'+pmaThemeImage+'b_edit.png" alt="" width="16" height="16"> '+PMA_messages['strEdit']+'</a>'; - saveLink = '<a href="#" class="saveLink"><img src="'+pmaThemeImage+'b_save.png" alt="" width="16" height="16"> '+PMA_messages['strSave']+'</a> '; - cancelLink = '<a href="#" class="cancelLink"><img src="'+pmaThemeImage+'b_close.png" alt="" width="16" height="16"> '+PMA_messages['strCancel']+'</a> '; + editLink = '<a href="#" class="editLink" onclick="return editVariable(this);"><img class="icon ic_b_edit" src="themes/dot.gif" alt=""> '+PMA_messages['strEdit']+'</a>'; + saveLink = '<a href="#" class="saveLink"><img class="icon ic_b_save" src="themes/dot.gif" alt=""> '+PMA_messages['strSave']+'</a> '; + cancelLink = '<a href="#" class="cancelLink"><img class="icon ic_b_close" src="themes/dot.gif" alt=""> '+PMA_messages['strCancel']+'</a> ';
$.ajaxSetup({ diff --git a/js/sql.js b/js/sql.js index 90f843d..0476795 100644 --- a/js/sql.js +++ b/js/sql.js @@ -65,8 +65,8 @@ function appendInlineAnchor() {
var $img_object = $cloned_anchor.find('img').attr('title', PMA_messages['strInlineEdit']); if ($img_object.length != 0) { - var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit'); - $img_object.attr('src', img_src); + var img_class = $img_object.attr('class').replace(/b_edit/,'b_inline_edit'); + $img_object.attr('class', img_class); $cloned_anchor.find('a').attr('href', '#'); var $edit_span = $cloned_anchor.find('span:contains("' + PMA_messages['strEdit'] + '")'); var $span = $cloned_anchor.find('a').find('span'); @@ -85,8 +85,8 @@ function appendInlineAnchor() { // the link was too big so <input type="image"> is there $img_object = $cloned_anchor.find('input:image').attr('title', PMA_messages['strInlineEdit']); if ($img_object.length > 0) { - var img_src = $img_object.attr('src').replace(/b_edit/,'b_inline_edit'); - $img_object.attr('src', img_src); + var img_class = $img_object.attr('class').replace(/b_edit/,'b_inline_edit'); + $img_object.attr('class', img_class); } $cloned_anchor .find('.clickprevimage') @@ -444,8 +444,8 @@ $(document).ready(function() { // If icons are displayed. See $cfg['PropertiesIconic'] if ($img_object.length > 0) { $img_object.attr('title', PMA_messages['strSave']); - var img_src = $img_object.attr('src').replace(/b_inline_edit/,'b_save'); - $img_object.attr('src', img_src); + var img_class = $img_object.attr('class').replace(/b_inline_edit/,'b_save'); + $img_object.attr('class', img_class); $this_children.prepend($img_object); }
@@ -464,8 +464,8 @@ $(document).ready(function() { // If icons are displayed. See $cfg['PropertiesIconic'] if ($img_object.length > 0) { $img_object.attr('title', PMA_messages['strHide']); - var img_src = $img_object.attr('src').replace(/b_save/,'b_close'); - $img_object.attr('src', img_src); + var img_class = $img_object.attr('class').replace(/b_save/,'b_close'); + $img_object.attr('class', img_class); $hide_span.prepend($img_object); }
diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 2f3323e..9360b9a 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -131,7 +131,7 @@ function PMA_auth() // Defines the charset to be used header('Content-Type: text/html; charset=utf-8'); // Defines the "item" image depending on text direction - $item_img = $GLOBALS['pmaThemeImage'] . 'item_' . $GLOBALS['text_dir'] . '.png'; + $item_img = 'ic_item_' . $GLOBALS['text_dir'];
/* HTML header; do not show here the PMA version to improve security */ $page_title = 'phpMyAdmin '; @@ -198,7 +198,7 @@ if (top != self) { echo '<a href="./Documentation.html" target="documentation" ' . 'title="' . __('phpMyAdmin documentation') . '">'; if ($GLOBALS['cfg']['ReplaceHelpImg']) { - echo '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png" width="11" height="11" alt="' . __('phpMyAdmin documentation') . '" />'; + echo '<img class="icon ic_b_help_s" src="themes/dot.gif" alt="' . __('phpMyAdmin documentation') . '" />'; } else { echo '(*)'; } diff --git a/libraries/common.lib.php b/libraries/common.lib.php index b7df61a..f710b80 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -97,9 +97,9 @@ function PMA_getIcon($icon, $alternate = '', $container = false, $force_text = f $button .= '<span class="nowrap">';
if ($include_icon) { - $button .= '<img src="' . $GLOBALS['pmaThemeImage'] . $icon . '"' + $button .= '<img src="themes/dot.gif"' . ' title="' . $alternate . '" alt="' . $alternate . '"' - . ' class="icon" width="16" height="16" />'; + . ' class="icon ic_' . str_replace('.png','',$icon) . '" />'; }
if ($include_icon && $include_text) { @@ -393,9 +393,9 @@ function PMA_showMySQLDocu($chapter, $link, $big_icon = false, $anchor = '', $ju if ($just_open) { return '<a href="' . PMA_linkURL($url) . '" target="mysql_doc">'; } elseif ($big_icon) { - return '<a href="' . PMA_linkURL($url) . '" target="mysql_doc"><img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_sqlhelp.png" width="16" height="16" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; + return '<a href="' . PMA_linkURL($url) . '" target="mysql_doc"><img class="icon ic_b_sqlhelp" src="themes/dot.gif" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; } elseif ($GLOBALS['cfg']['ReplaceHelpImg']) { - return '<a href="' . PMA_linkURL($url) . '" target="mysql_doc"><img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png" width="11" height="11" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; + return '<a href="' . PMA_linkURL($url) . '" target="mysql_doc"><img class="icon ic_b_help_s" src="themes/dot.gif" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; } else { return '[<a href="' . PMA_linkURL($url) . '" target="mysql_doc">' . __('Documentation') . '</a>]'; } @@ -412,7 +412,7 @@ function PMA_showMySQLDocu($chapter, $link, $big_icon = false, $anchor = '', $ju */ function PMA_showDocu($anchor) { if ($GLOBALS['cfg']['ReplaceHelpImg']) { - return '<a href="Documentation.html#' . $anchor . '" target="documentation"><img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png" width="11" height="11" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; + return '<a href="Documentation.html#' . $anchor . '" target="documentation"><img class="icon ic_b_help_s" src="themes/dot.gif" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; } else { return '[<a href="Documentation.html#' . $anchor . '" target="documentation">' . __('Documentation') . '</a>]'; } @@ -430,7 +430,7 @@ function PMA_showPHPDocu($target) { $url = PMA_getPHPDocLink($target);
if ($GLOBALS['cfg']['ReplaceHelpImg']) { - return '<a href="' . $url . '" target="documentation"><img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png" width="11" height="11" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; + return '<a href="' . $url . '" target="documentation"><img class="icon ic_b_help_s" src="themes/dot.gif" alt="' . __('Documentation') . '" title="' . __('Documentation') . '" /></a>'; } else { return '[<a href="' . $url . '" target="documentation">' . __('Documentation') . '</a>]'; } @@ -474,8 +474,7 @@ function PMA_showHint($message, $bbcode = false, $type = 'notice')
// footnotemarker used in js/tooltip.js return '<sup class="footnotemarker">' . $nr . '</sup>' . - '<img class="footnotemarker footnote_' . $nr . '" src="' . - $GLOBALS['pmaThemeImage'] . 'b_help.png" alt="" />'; + '<img class="footnotemarker ic_b_help footnote_' . $nr . '" src="themes/dot.gif" alt="" />'; }
/** @@ -1506,7 +1505,7 @@ function PMA_localisedDate($timestamp = -1, $format = '') * @return string html code for one tab, a link if valid otherwise a span * @access public */ -function PMA_generate_html_tab($tab, $url_params = array()) +function PMA_generate_html_tab($tab, $url_params = array(), $base_dir='') { // default values $defaults = array( @@ -1568,8 +1567,8 @@ function PMA_generate_html_tab($tab, $url_params = array()) // avoid generating an alt tag, because it only illustrates // the text that follows and if browser does not display // images, the text is duplicated - $image = '<img class="icon" src="' . htmlentities($GLOBALS['pmaThemeImage']) - .'%1$s" width="16" height="16" alt="" />%2$s'; + $image = '<img class="icon %1$s" src="' . $base_dir . 'themes/dot.gif"' + .' width="16" height="16" alt="" />%2$s'; $tab['text'] = sprintf($image, htmlentities($tab['icon']), $tab['text']); } // check to not display an empty link-text @@ -1604,7 +1603,7 @@ function PMA_generate_html_tab($tab, $url_params = array()) * @param string $url_params * @return string html-code for tab-navigation */ -function PMA_generate_html_tabs($tabs, $url_params) +function PMA_generate_html_tabs($tabs, $url_params, $base_dir='') { $tag_id = 'topmenu'; $tab_navigation = @@ -1612,7 +1611,7 @@ function PMA_generate_html_tabs($tabs, $url_params) .'<ul id="' . htmlentities($tag_id) . '">' . "\n";
foreach ($tabs as $tab) { - $tab_navigation .= PMA_generate_html_tab($tab, $url_params); + $tab_navigation .= PMA_generate_html_tab($tab, $url_params, $base_dir); }
$tab_navigation .= diff --git a/libraries/config/FormDisplay.tpl.php b/libraries/config/FormDisplay.tpl.php index c893654..be680d3 100644 --- a/libraries/config/FormDisplay.tpl.php +++ b/libraries/config/FormDisplay.tpl.php @@ -159,8 +159,8 @@ function display_input($path, $name, $description = '', $type, $value, $value_is <label for="<?php echo htmlspecialchars($path) ?>"><?php echo $name ?></label> <?php if (!empty($opts['doc']) || !empty($opts['wiki'])) { ?> <span class="doc"> - <?php if (!empty($opts['doc'])) { ?><a href="<?php echo $base_dir . $opts['doc'] ?>" target="documentation"><img class="icon" src="<?php echo $img_path ?>b_help.png" width="11" height="11" alt="Doc" title="<?php echo __('Documentation') ?>" /></a><?php } ?> - <?php if (!empty($opts['wiki'])){ ?><a href="<?php echo $opts['wiki'] ?>" target="wiki"><img class="icon" src="<?php echo $img_path ?>b_info.png" width="11" height="11" alt="Wiki" title="Wiki" /></a><?php } ?> + <?php if (!empty($opts['doc'])) { ?><a href="<?php echo $base_dir . $opts['doc'] ?>" target="documentation"><img class="icon ic_b_help_s" src="<?php echo $base_dir; ?>themes/dot.gif" alt="Doc" title="<?php echo __('Documentation') ?>" /></a><?php } ?> + <?php if (!empty($opts['wiki'])){ ?><a href="<?php echo $opts['wiki'] ?>" target="wiki"><img class="icon ic_b_info" src="<?php echo $base_dir; ?>themes/dot.gif" alt="Wiki" title="Wiki" /></a><?php } ?> </span> <?php } ?> <?php if ($option_is_disabled) { ?> @@ -234,17 +234,17 @@ function display_input($path, $name, $description = '', $type, $value, $value_is } if ($is_setup_script && isset($opts['userprefs_comment']) && $opts['userprefs_comment']) { ?> - <a class="userprefs-comment" title="<?php echo htmlspecialchars($opts['userprefs_comment']) ?>"><img alt="comment" src="<?php echo $img_path ?>b_tblops.png" width="16" height="16" /></a> + <a class="userprefs-comment" title="<?php echo htmlspecialchars($opts['userprefs_comment']) ?>"><img alt="comment" class="icon ic_b_tblops" src="<?php echo $base_dir; ?>themes/dot.gif" /></a> <?php } if (isset($opts['setvalue']) && $opts['setvalue']) { ?> - <a class="set-value" href="#<?php echo htmlspecialchars("$path={$opts['setvalue']}") ?>" title="<?php echo sprintf(__('Set value: %s'), htmlspecialchars($opts['setvalue'])) ?>" style="display:none"><img alt="set-value" src="<?php echo $img_path ?>b_edit.png" width="16" height="16" /></a> + <a class="set-value" href="#<?php echo htmlspecialchars("$path={$opts['setvalue']}") ?>" title="<?php echo sprintf(__('Set value: %s'), htmlspecialchars($opts['setvalue'])) ?>" style="display:none"><img alt="set-value" class="icon ic_b_edit" src="<?php echo $base_dir; ?>themes/dot.gif" /></a> <?php } if (isset($opts['show_restore_default']) && $opts['show_restore_default']) { ?> - <a class="restore-default" href="#<?php echo $path ?>" title="<?php echo __('Restore default value') ?>" style="display:none"><img alt="restore-default" src="<?php echo $img_path ?>s_reload.png" width="16" height="16" /></a> + <a class="restore-default" href="#<?php echo $path ?>" title="<?php echo __('Restore default value') ?>" style="display:none"><img alt="restore-default" class="icon ic_s_reload" src="<?php echo $base_dir; ?>themes/dot.gif" /></a> <?php } // this must match with displayErrors() in scripts/config.js diff --git a/libraries/db_links.inc.php b/libraries/db_links.inc.php index 604efde..5a95622 100644 --- a/libraries/db_links.inc.php +++ b/libraries/db_links.inc.php @@ -46,64 +46,64 @@ if ($num_tables == 0) {
$tab_structure['link'] = 'db_structure.php'; $tab_structure['text'] = __('Structure'); -$tab_structure['icon'] = 'b_props.png'; +$tab_structure['icon'] = 'ic_b_props';
$tab_sql['link'] = 'db_sql.php'; $tab_sql['args']['db_query_force'] = 1; $tab_sql['text'] = __('SQL'); -$tab_sql['icon'] = 'b_sql.png'; +$tab_sql['icon'] = 'ic_b_sql';
$tab_export['text'] = __('Export'); -$tab_export['icon'] = 'b_export.png'; +$tab_export['icon'] = 'ic_b_export'; $tab_export['link'] = 'db_export.php';
$tab_search['text'] = __('Search'); -$tab_search['icon'] = 'b_search.png'; +$tab_search['icon'] = 'ic_b_search'; $tab_search['link'] = 'db_search.php';
if(PMA_Tracker::isActive()) { $tab_tracking['text'] = __('Tracking'); - $tab_tracking['icon'] = 'eye.png'; + $tab_tracking['icon'] = 'ic_eye'; $tab_tracking['link'] = 'db_tracking.php'; }
$tab_qbe['text'] = __('Query'); -$tab_qbe['icon'] = 's_db.png'; +$tab_qbe['icon'] = 'ic_s_db'; $tab_qbe['link'] = 'db_qbe.php';
if ($cfgRelation['designerwork']) { $tab_designer['text'] = __('Designer'); - $tab_designer['icon'] = 'b_relations.png'; + $tab_designer['icon'] = 'ic_b_relations'; $tab_designer['link'] = 'pmd_general.php'; }
if (! $db_is_information_schema) { $tab_import['link'] = 'db_import.php'; $tab_import['text'] = __('Import'); - $tab_import['icon'] = 'b_import.png'; + $tab_import['icon'] = 'ic_b_import'; $tab_operation['link'] = 'db_operations.php'; $tab_operation['text'] = __('Operations'); - $tab_operation['icon'] = 'b_tblops.png'; + $tab_operation['icon'] = 'ic_b_tblops'; if ($is_superuser) { $tab_privileges['link'] = 'server_privileges.php'; $tab_privileges['args']['checkprivs'] = $db; // stay on database view $tab_privileges['args']['viewing_mode'] = 'db'; $tab_privileges['text'] = __('Privileges'); - $tab_privileges['icon'] = 's_rights.png'; + $tab_privileges['icon'] = 'ic_s_rights'; } $tab_routines['link'] = 'db_routines.php'; $tab_routines['text'] = __('Routines'); - $tab_routines['icon'] = 'b_routines.png'; + $tab_routines['icon'] = 'ic_b_routines';
$tab_events['link'] = 'db_events.php'; $tab_events['text'] = __('Events'); - $tab_events['icon'] = 'b_events.png'; + $tab_events['icon'] = 'ic_b_events';
$tab_triggers['link'] = 'db_triggers.php'; $tab_triggers['text'] = __('Triggers'); - $tab_triggers['icon'] = 'b_triggers.png'; + $tab_triggers['icon'] = 'ic_b_triggers'; }
/** diff --git a/libraries/db_structure.lib.php b/libraries/db_structure.lib.php index afb3ce5..68e4b9d 100644 --- a/libraries/db_structure.lib.php +++ b/libraries/db_structure.lib.php @@ -94,19 +94,19 @@ function PMA_SortableTableHeader($title, $sort, $initial_sort_order = 'ASC') if ($requested_sort_order == 'ASC') { $future_sort_order = 'DESC'; // current sort order is ASC - $order_img = ' <img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 's_asc.png" width="11" height="9" alt="'. __('Ascending') . '" title="'. __('Ascending') . '" id="sort_arrow" />'; + $order_img = ' <img class="icon ic_s_asc" src="themes/dot.gif" alt="'. __('Ascending') . '" title="'. __('Ascending') . '" id="sort_arrow" />'; // but on mouse over, show the reverse order (DESC) - $order_link_params['onmouseover'] = 'if(document.getElementById('sort_arrow')){ document.getElementById('sort_arrow').src='' . $GLOBALS['pmaThemeImage'] . 's_desc.png'; }'; + $order_link_params['onmouseover'] = 'if($('#sort_arrow').length > 0) { $('#sort_arrow').attr('class','icon ic_s_desc'); }'; // on mouse out, show current sort order (ASC) - $order_link_params['onmouseout'] = 'if(document.getElementById('sort_arrow')){ document.getElementById('sort_arrow').src='' . $GLOBALS['pmaThemeImage'] . 's_asc.png'; }'; + $order_link_params['onmouseout'] = 'if($('#sort_arrow').length > 0) { $('#sort_arrow').attr('class','icon ic_s_asc'); }'; } else { $future_sort_order = 'ASC'; // current sort order is DESC - $order_img = ' <img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 's_desc.png" width="11" height="9" alt="'. __('Descending') . '" title="'. __('Descending') . '" id="sort_arrow" />'; + $order_img = ' <img class="icon ic_s_desc" src="themes/dot.gif" alt="'. __('Descending') . '" title="'. __('Descending') . '" id="sort_arrow" />'; // but on mouse over, show the reverse order (ASC) - $order_link_params['onmouseover'] = 'if(document.getElementById('sort_arrow')){ document.getElementById('sort_arrow').src='' . $GLOBALS['pmaThemeImage'] . 's_asc.png'; }'; + $order_link_params['onmouseover'] = 'if($('#sort_arrow').length > 0) { $('#sort_arrow').attr('class','icon ic_s_asc'); }'; // on mouse out, show current sort order (DESC) - $order_link_params['onmouseout'] = 'if(document.getElementById('sort_arrow')){ document.getElementById('sort_arrow').src='' . $GLOBALS['pmaThemeImage'] . 's_desc.png'; }'; + $order_link_params['onmouseout'] = 'if($('#sort_arrow').length > 0) { $('#sort_arrow').attr('class','icon ic_s_desc'); }'; } }
diff --git a/libraries/display_create_database.lib.php b/libraries/display_create_database.lib.php index e0031a4..1ec7931 100644 --- a/libraries/display_create_database.lib.php +++ b/libraries/display_create_database.lib.php @@ -39,7 +39,7 @@ if ($is_create_db_priv) { <strong><?php echo __('Create database') . ': ' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br /> <?php echo '<span class="noPrivileges">' - . ($cfg['ErrorIconic'] ? '<img src="' . $pmaThemeImage . 's_error2.png" alt="" width="11" height="11" hspace="2" border="0" align="middle" />' : '') + . ($cfg['ErrorIconic'] ? '<img class="icon ic_s_error2" src="themes/dot.gif" alt="" hspace="2" border="0" align="middle" />' : '') . '' . __('No Privileges') .'</span>'; } // end create db form or message ?> diff --git a/libraries/display_create_table.lib.php b/libraries/display_create_table.lib.php index 5ec2d9a..8341342 100644 --- a/libraries/display_create_table.lib.php +++ b/libraries/display_create_table.lib.php @@ -41,7 +41,7 @@ $is_create_table_priv = true; <legend> <?php if ($GLOBALS['cfg']['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_newtbl.png" width="16" height="16" alt="" />'; + echo '<img class="icon ic_b_newtbl" src="themes/dot.gif" alt="" />'; } echo sprintf(__('Create table on database %s'), PMA_getDbLink()); ?> diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index dd6c347..28e0bf2 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -74,7 +74,7 @@ if(isset($_GET['sql_query'])) {
<div class="exportoptions" id="header"> <h2> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>b_export.png" alt="export" /> + <img class="icon ic_b_export" src="themes/dot.gif" alt="export" /> <?php if($export_type == 'server') { echo __('Exporting databases from the current server'); diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php index 05df2d0..119ccd1 100644 --- a/libraries/display_import.lib.php +++ b/libraries/display_import.lib.php @@ -123,7 +123,7 @@ if ($_SESSION[$SESSION_KEY]["handler"]!="noplugin") {
<div class="exportoptions" id="header"> <h2> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>b_import.png" alt="import" /> + <img class="icon ic_b_import" src="themes/dot.gif" alt="import" /> <?php if($import_type == 'server') { echo __('Importing into the current server'); diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 0b3ef2f..8bf4f3c 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -889,10 +889,10 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ $order_img = ''; } elseif ('DESC' == $sort_direction) { $sort_order .= ' ASC'; - $order_img = ' <img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 's_desc.png" width="11" height="9" alt="'. __('Descending') . '" title="'. __('Descending') . '" id="soimg' . $i . '" />'; + $order_img = ' <img class="icon ic_s_desc" src="themes/dot.gif" alt="'. __('Descending') . '" title="'. __('Descending') . '" id="soimg' . $i . '" />'; } else { $sort_order .= ' DESC'; - $order_img = ' <img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 's_asc.png" width="11" height="9" alt="'. __('Ascending') . '" title="'. __('Ascending') . '" id="soimg' . $i . '" />'; + $order_img = ' <img class="icon ic_s_asc" src="themes/dot.gif" alt="'. __('Ascending') . '" title="'. __('Ascending') . '" id="soimg' . $i . '" />'; }
if (preg_match('@(.*)([[:space:]](LIMIT (.*)|PROCEDURE (.*)|FOR UPDATE|LOCK IN SHARE MODE))@is', $unsorted_sql_query, $regs3)) { @@ -913,11 +913,11 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $ $order_link_params = array(); if (isset($order_img) && $order_img!='') { if (strstr($order_img, 'asc')) { - $order_link_params['onmouseover'] = 'if(document.getElementById('soimg' . $i . '')){ document.getElementById('soimg' . $i . '').src='' . $GLOBALS['pmaThemeImage'] . 's_desc.png'; }'; - $order_link_params['onmouseout'] = 'if(document.getElementById('soimg' . $i . '')){ document.getElementById('soimg' . $i . '').src='' . $GLOBALS['pmaThemeImage'] . 's_asc.png'; }'; + $order_link_params['onmouseover'] = 'if($('#soimg' . $i . '').length > 0) { $('#soimg' . $i . '').attr('class', 'icon ic_s_desc'); }'; + $order_link_params['onmouseout'] = 'if($('#soimg' . $i . '').length > 0) { $('#soimg' . $i . '').attr('class', 'icon ic_s_asc'); }'; } elseif (strstr($order_img, 'desc')) { - $order_link_params['onmouseover'] = 'if(document.getElementById('soimg' . $i . '')){ document.getElementById('soimg' . $i . '').src='' . $GLOBALS['pmaThemeImage'] . 's_asc.png'; }'; - $order_link_params['onmouseout'] = 'if(document.getElementById('soimg' . $i . '')){ document.getElementById('soimg' . $i . '').src='' . $GLOBALS['pmaThemeImage'] . 's_desc.png'; }'; + $order_link_params['onmouseover'] = 'if($('#soimg' . $i . '').length > 0) { $('#soimg' . $i . '').attr('class', 'icon ic_s_asc'); }'; + $order_link_params['onmouseout'] = 'if($('#soimg' . $i . '').length > 0) { $('#soimg' . $i . '').attr('class', 'icon ic_s_desc'); }'; } } if ($GLOBALS['cfg']['HeaderFlipType'] == 'auto') { diff --git a/libraries/footer.inc.php b/libraries/footer.inc.php index c94c016..bbeb04b 100644 --- a/libraries/footer.inc.php +++ b/libraries/footer.inc.php @@ -162,7 +162,7 @@ setURLHash("<?php echo PMA_generate_common_url($url_params, 'text', ''); ?>"); echo '<a href="index.php' . PMA_generate_common_url($url_params) . '"' . ' title="' . __('Open new phpMyAdmin window') . '" target="_blank">'; if ($GLOBALS['cfg']['NavigationBarIconic']) { - echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 'window-new.png"' + echo '<img class="icon ic_window-new" src="themes/dot.gif"' . ' alt="' . __('Open new phpMyAdmin window') . '" />'; } if ($GLOBALS['cfg']['NavigationBarIconic'] !== true) { diff --git a/libraries/header.inc.php b/libraries/header.inc.php index 270b421..5700047 100644 --- a/libraries/header.inc.php +++ b/libraries/header.inc.php @@ -110,8 +110,8 @@ if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) { ); $item = '<a href="%1$s?%2$s" class="item">'; if ($GLOBALS['cfg']['NavigationBarIconic']) { - $separator = ' <span class="separator"><img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'item_' . $GLOBALS['text_dir'] . '.png" width="5" height="9" alt="-" /></span>' . "\n"; - $item .= ' <img class="icon" src="' . $GLOBALS['pmaThemeImage'] . '%5$s" width="16" height="16" alt="" /> ' . "\n"; + $separator = ' <span class="separator"><img class="icon ic_item_' . $GLOBALS['text_dir'] . '" src="themes/dot.gif" alt="-" /></span>' . "\n"; + $item .= ' <img class="icon %5$s" src="themes/dot.gif" alt="" /> ' . "\n"; } else { $separator = ' <span class="separator"> - </span>' . "\n"; } @@ -127,7 +127,7 @@ if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) { PMA_generate_common_url(), htmlspecialchars($server_info), __('Server'), - 's_host.png'); + 'ic_s_host');
if (strlen($GLOBALS['db'])) {
@@ -137,7 +137,7 @@ if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) { PMA_generate_common_url($GLOBALS['db']), htmlspecialchars($GLOBALS['db']), __('Database'), - 's_db.png'); + 'ic_s_db'); // if the table is being dropped, $_REQUEST['purge'] is set to '1' // so do not display the table name in upper div if (strlen($GLOBALS['table']) && ! (isset($_REQUEST['purge']) && $_REQUEST['purge'] == '1')) { @@ -149,7 +149,7 @@ if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) { PMA_generate_common_url($GLOBALS['db'], $GLOBALS['table']), str_replace(' ', ' ', htmlspecialchars($GLOBALS['table'])), (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] ? __('View') : __('Table')), - (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] ? 'b_views' : 's_tbl') . '.png'); + (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] ? 'ic_b_views' : 'ic_s_tbl'));
/** * Displays table comment diff --git a/libraries/navigation_header.inc.php b/libraries/navigation_header.inc.php index e8db6a2..7f7c530 100644 --- a/libraries/navigation_header.inc.php +++ b/libraries/navigation_header.inc.php @@ -56,8 +56,7 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) { echo '<a href="main.php?' . $query_url . '"' .' title="' . __('Home') . '">' .($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="' . $pmaThemeImage . 'b_home.png" width="16" ' - .' height="16" alt="' . __('Home') . '" />' + ? '<img class="icon ic_b_home" src="themes/dot.gif" alt="' . __('Home') . '" />' : __('Home')) .'</a>' . "\n"; // if we have chosen server @@ -69,8 +68,7 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) { .urlencode($PHP_AUTH_USER) . '" target="_parent"' .' title="' . __('Log out') . '" >' .($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="' . $pmaThemeImage . 's_loggoff.png" ' - .' width="16" height="16" alt="' . __('Log out') . '" />' + ? '<img class="icon ic_s_loggoff" src="themes/dot.gif" alt="' . __('Log out') . '" />' : __('Log out')) .'</a>' . "\n"; } // end if ($GLOBALS['cfg']['Server']['auth_type'] != 'config' @@ -79,8 +77,7 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) {
if ($GLOBALS['cfg']['MainPageIconic']) { $query_frame_link_text = - '<img class="icon" src="' . $pmaThemeImage . 'b_selboard.png"' - .' width="16" height="16" alt="' . __('Query window') . '" />'; + '<img class="icon ic_b_selboard" src="themes/dot.gif" alt="' . __('Query window') . '" />'; } else { echo '<br />' . "\n"; $query_frame_link_text = __('Query window'); @@ -95,7 +92,7 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) { .' title="' . __('phpMyAdmin documentation') . '" >';
if ($GLOBALS['cfg']['MainPageIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_docs.png" width="16" height="16"' + echo '<img class="icon ic_b_docs" src="themes/dot.gif"' .' alt="' . __('phpMyAdmin documentation') . '" />'; } echo '</a>'; @@ -107,7 +104,7 @@ if ($GLOBALS['cfg']['LeftDisplayLogo']) { } echo '<a href="navigation.php?' . PMA_generate_common_url($params) . '" target="frame_navigation">'; if ($GLOBALS['cfg']['MainPageIconic']) { - echo '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_reload.png"' + echo '<img class="icon ic_s_reload" src="themes/dot.gif"' . ' title="' . __('Reload navigation frame') . '"' . ' alt="' . __('Reload navigation frame') . '" />'; } else { diff --git a/libraries/schema/User_Schema.class.php b/libraries/schema/User_Schema.class.php index d610ac0..eb96835 100644 --- a/libraries/schema/User_Schema.class.php +++ b/libraries/schema/User_Schema.class.php @@ -336,8 +336,7 @@ class PMA_User_Schema <?php echo PMA_generate_common_hidden_inputs($db); if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_view.png"' - .' alt="" width="16" height="16" />'; + echo '<img class="icon ic_b_views" src="themes/dot.gif" />'; } echo __('Display relational schema'); ?>: diff --git a/libraries/server_links.inc.php b/libraries/server_links.inc.php index e8e2fc9..4b7198e 100644 --- a/libraries/server_links.inc.php +++ b/libraries/server_links.inc.php @@ -38,15 +38,15 @@ if (!$GLOBALS['is_ajax_request']) { */ $tabs = array();
- $tabs['databases']['icon'] = 's_db.png'; + $tabs['databases']['icon'] = 'ic_s_db'; $tabs['databases']['link'] = 'server_databases.php'; $tabs['databases']['text'] = __('Databases');
- $tabs['sql']['icon'] = 'b_sql.png'; + $tabs['sql']['icon'] = 'ic_b_sql'; $tabs['sql']['link'] = 'server_sql.php'; $tabs['sql']['text'] = __('SQL');
- $tabs['status']['icon'] = 's_status.png'; + $tabs['status']['icon'] = 'ic_s_status'; $tabs['status']['link'] = 'server_status.php'; $tabs['status']['text'] = __('Status');
@@ -55,50 +55,50 @@ if (!$GLOBALS['is_ajax_request']) { $tabs['process']['text'] = __('Processes');*/
if ($is_superuser) { - $tabs['rights']['icon'] = 's_rights.png'; + $tabs['rights']['icon'] = 'ic_s_rights'; $tabs['rights']['link'] = 'server_privileges.php'; $tabs['rights']['text'] = __('Privileges'); }
- $tabs['export']['icon'] = 'b_export.png'; + $tabs['export']['icon'] = 'ic_b_export'; $tabs['export']['link'] = 'server_export.php'; $tabs['export']['text'] = __('Export');
- $tabs['import']['icon'] = 'b_import.png'; + $tabs['import']['icon'] = 'ic_b_import'; $tabs['import']['link'] = 'server_import.php'; $tabs['import']['text'] = __('Import');
- $tabs['settings']['icon'] = 'b_tblops.png'; + $tabs['settings']['icon'] = 'ic_b_tblops'; $tabs['settings']['link'] = 'prefs_manage.php'; $tabs['settings']['text'] = __('Settings'); $tabs['settings']['active'] = in_array(basename($GLOBALS['PMA_PHP_SELF']), array('prefs_forms.php', 'prefs_manage.php'));
- $tabs['synchronize']['icon'] = 's_sync.png'; + $tabs['synchronize']['icon'] = 'ic_s_sync'; $tabs['synchronize']['link'] = 'server_synchronize.php'; $tabs['synchronize']['text'] = __('Synchronize');
if (! empty($binary_logs)) { - $tabs['binlog']['icon'] = 's_tbl.png'; + $tabs['binlog']['icon'] = 'ic_s_tbl'; $tabs['binlog']['link'] = 'server_binlog.php'; $tabs['binlog']['text'] = __('Binary log'); }
if ($is_superuser) { - $tabs['replication']['icon'] = 's_replication.png'; + $tabs['replication']['icon'] = 'ic_s_replication'; $tabs['replication']['link'] = 'server_replication.php'; $tabs['replication']['text'] = __('Replication'); }
- $tabs['vars']['icon'] = 's_vars.png'; + $tabs['vars']['icon'] = 'ic_s_vars'; $tabs['vars']['link'] = 'server_variables.php'; $tabs['vars']['text'] = __('Variables');
- $tabs['charset']['icon'] = 's_asci.png'; + $tabs['charset']['icon'] = 'ic_s_asci'; $tabs['charset']['link'] = 'server_collations.php'; $tabs['charset']['text'] = __('Charsets');
- $tabs['engine']['icon'] = 'b_engine.png'; + $tabs['engine']['icon'] = 'ic_b_engine'; $tabs['engine']['link'] = 'server_engines.php'; $tabs['engine']['text'] = __('Engines');
diff --git a/libraries/sql_query_form.lib.php b/libraries/sql_query_form.lib.php index 13d866e..1a3fd92 100644 --- a/libraries/sql_query_form.lib.php +++ b/libraries/sql_query_form.lib.php @@ -383,8 +383,7 @@ function PMA_sqlQueryFormBookmark() if ($GLOBALS['cfg']['ReplaceHelpImg']) { echo ' <a href="./Documentation.html#faqbookmark"' .' target="documentation">' - .'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_help.png"' - .' border="0" width="11" height="11" align="middle"' + .'<img class="icon ic_b_help_s" src="themes/dot.gif"' .' alt="' . __('Documentation') . '" /></a> '; } else { echo ' (<a href="./Documentation.html#faqbookmark"' diff --git a/libraries/tbl_links.inc.php b/libraries/tbl_links.inc.php index 82c9784..ac5bfb3 100644 --- a/libraries/tbl_links.inc.php +++ b/libraries/tbl_links.inc.php @@ -51,30 +51,30 @@ if (! isset($db_is_information_schema)) { */ $tabs = array();
-$tabs['browse']['icon'] = 'b_browse.png'; +$tabs['browse']['icon'] = 'ic_b_browse'; $tabs['browse']['text'] = __('Browse'); $tabs['browse']['link'] = 'sql.php'; $tabs['browse']['args']['pos'] = 0;
-$tabs['structure']['icon'] = 'b_props.png'; +$tabs['structure']['icon'] = 'ic_b_props'; $tabs['structure']['link'] = 'tbl_structure.php'; $tabs['structure']['text'] = __('Structure');
-$tabs['sql']['icon'] = 'b_sql.png'; +$tabs['sql']['icon'] = 'ic_b_sql'; $tabs['sql']['link'] = 'tbl_sql.php'; $tabs['sql']['text'] = __('SQL');
-$tabs['search']['icon'] = 'b_search.png'; +$tabs['search']['icon'] = 'ic_b_search'; $tabs['search']['text'] = __('Search'); $tabs['search']['link'] = 'tbl_select.php';
if (!$db_is_information_schema) { - $tabs['insert']['icon'] = 'b_insrow.png'; + $tabs['insert']['icon'] = 'ic_b_insrow'; $tabs['insert']['link'] = 'tbl_change.php'; $tabs['insert']['text'] = __('Insert'); }
-$tabs['export']['icon'] = 'b_tblexport.png'; +$tabs['export']['icon'] = 'ic_b_tblexport'; $tabs['export']['link'] = 'tbl_export.php'; $tabs['export']['args']['single_table'] = 'true'; $tabs['export']['text'] = __('Export'); @@ -84,16 +84,16 @@ $tabs['export']['text'] = __('Export'); * for views and information_schema */ if (! $tbl_is_view && !$db_is_information_schema) { - $tabs['import']['icon'] = 'b_tblimport.png'; + $tabs['import']['icon'] = 'ic_b_tblimport'; $tabs['import']['link'] = 'tbl_import.php'; $tabs['import']['text'] = __('Import');
- $tabs['operation']['icon'] = 'b_tblops.png'; + $tabs['operation']['icon'] = 'ic_b_tblops'; $tabs['operation']['link'] = 'tbl_operations.php'; $tabs['operation']['text'] = __('Operations'); } if(PMA_Tracker::isActive()) { - $tabs['tracking']['icon'] = 'eye.png'; + $tabs['tracking']['icon'] = 'ic_eye'; $tabs['tracking']['text'] = __('Tracking'); $tabs['tracking']['link'] = 'tbl_tracking.php'; } @@ -109,7 +109,7 @@ if (!$db_is_information_schema && !PMA_DRIZZLE) { * Views support a limited number of operations */ if ($tbl_is_view && !$db_is_information_schema) { - $tabs['operation']['icon'] = 'b_tblops.png'; + $tabs['operation']['icon'] = 'ic_b_tblops'; $tabs['operation']['link'] = 'view_operations.php'; $tabs['operation']['text'] = __('Operations'); } diff --git a/libraries/user_preferences.inc.php b/libraries/user_preferences.inc.php index 7d1a2d7..1b04217 100644 --- a/libraries/user_preferences.inc.php +++ b/libraries/user_preferences.inc.php @@ -20,12 +20,12 @@ if (! isset($forms[$form_param])) { $form_param = array_shift($forms_keys); } $tabs_icons = array( - 'Features' => 'b_tblops.png', - 'Sql_queries' => 'b_sql.png', - 'Left_frame' => 'b_select.png', - 'Main_frame' => 'b_props.png', - 'Import' => 'b_import.png', - 'Export' => 'b_export.png'); + 'Features' => 'ic_b_tblops', + 'Sql_queries' => 'ic_b_sql', + 'Left_frame' => 'ic_b_select', + 'Main_frame' => 'ic_b_props', + 'Import' => 'ic_b_import', + 'Export' => 'ic_b_export'); echo '<ul id="topmenu2">'; echo PMA_generate_html_tab(array( 'link' => 'prefs_manage.php', diff --git a/navigation.php b/navigation.php index 8e42014..27859fe 100644 --- a/navigation.php +++ b/navigation.php @@ -113,9 +113,6 @@ require_once './libraries/header_http.inc.php'; ?> <script type="text/javascript"> // <![CDATA[ - var image_minus = '<?php echo $GLOBALS['pmaThemeImage']; ?>b_minus.png'; - var image_plus = '<?php echo $GLOBALS['pmaThemeImage']; ?>b_plus.png'; - // INIT PMA_setFrameSize var onloadCnt = 0; var onLoadHandler = window.onload; @@ -230,9 +227,9 @@ if (! $GLOBALS['server']) { // or $GLOBALS['cfg']['Servers']['only_db'] is defined and is not an array) // In this case, the database should not be collapsible/expandable
-$img_plus = '<img class="icon" id="el%dImg" src="' . $pmaThemeImage . 'b_plus.png"' +$img_plus = '<img class="icon ic_b_plus" id="el%dImg" src="themes/dot.gif"' .' alt="+" />'; -$img_minus = '<img class="icon" id="el%dImg" src="' . $pmaThemeImage . 'b_minus.png"' +$img_minus = '<img class="icon ic_b_minus" id="el%dImg" src="themes/dot.gif"' .' alt="-" />';
$href_left = '<a onclick="if (toggle('%d')) return false;"' @@ -303,7 +300,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { $class = ''; $GLOBALS['cfg']['AjaxEnable'] ? $class="ajax" : ''; echo '<ul id="newtable"><li><a target="frame_content" href="tbl_create.php' . PMA_generate_common_url(array('db' => $GLOBALS['db'])) . '" class="'.$class .'" >' - .'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_snewtbl.png" id="icon_newtable" alt="' . _pgettext('short form', 'Create table') . '" />' + .'<img class="icon ic_b_snewtbl" src="themes/dot.gif" id="icon_newtable" alt="' . _pgettext('short form', 'Create table') . '" />' . _pgettext('short form', 'Create table') . '</a></li></ul>'; } } elseif ($GLOBALS['cfg']['LeftFrameLight']) { @@ -597,11 +594,11 @@ function PMA_displayTableList($tables, $visible = false, .'&table=' . urlencode($table['Name']) .'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable'] . '" >' - .'<img class="icon"'; + .'<img src="themes/dot.gif"'; if ('VIEW' === strtoupper($table['Comment'])) { - echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"'; + echo ' class="icon ic_s_views"'; } else { - echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"'; + echo ' class="icon ic_b_sbrowse"'; } echo ' id="icon_' . htmlspecialchars($table_db . '.' . $table['Name']) . '"' .' alt="' . htmlspecialchars($link_title) . '" /></a>' . "\n"; diff --git a/pmd/scripts/history.js b/pmd/scripts/history.js index ace5bae..478bd82 100644 --- a/pmd/scripts/history.js +++ b/pmd/scripts/history.js @@ -71,12 +71,12 @@ function display(init,final) { else { str +='<img src="pmd/images/and_icon.png" onclick="and_or('+i+')" title="AND"/></td>'; } - str +='<td style="padding-left: 5px;" align="right"><img src="./themes/original/img/b_sbrowse.png" title="column name"/></td><td width="175" style="padding-left: 5px">' + history_array[i].get_column_name(); + str +='<td style="padding-left: 5px;" align="right"><img class="icon ic_b_sbrowse" src="themes/dot.gif" title="column name"/></td><td width="175" style="padding-left: 5px">' + history_array[i].get_column_name(); if (history_array[i].get_type() == "GroupBy" || history_array[i].get_type() == "OrderBy") { - str += '</td><td align="center"><img src="themes/original/img/b_info.png" title="'+detail(i)+'"/><td title="' + detail(i) +'">' + history_array[i].get_type() + '</td></td><td onmouseover="this.className='history_table';" onmouseout="this.className='history_table2'" onclick=history_delete('+ i +')><img src="themes/original/img/b_drop.png" title="Delete"></td></tr></thead>'; + str += '</td><td align="center"><img class="icon ic_b_info" src="themes/dot.gif" title="'+detail(i)+'"/><td title="' + detail(i) +'">' + history_array[i].get_type() + '</td></td><td onmouseover="this.className='history_table';" onmouseout="this.className='history_table2'" onclick=history_delete('+ i +')><img class="icon ic_b_drop" src="themes/dot.gif" title="Delete"></td></tr></thead>'; } else { - str += '</td><td align="center"><img src="themes/original/img/b_info.png" title="'+detail(i)+'"/></td><td title="' + detail(i) +'">' + history_array[i]. get_type() + '</td><td <td onmouseover="this.className='history_table';" onmouseout="this.className='history_table2'" onclick=history_edit('+ i +')><img src="themes/original/img/b_edit.png" title="Edit"/></td><td onmouseover="this.className='history_table';" onmouseout="this.className='history_table2'" onclick=history_delete('+ i +')><img src="themes/original/img/b_drop.png" title="Delete"></td></tr></thead>'; + str += '</td><td align="center"><img class="icon ic_b_info" src="themes/dot.gif" title="'+detail(i)+'"/></td><td title="' + detail(i) +'">' + history_array[i]. get_type() + '</td><td <td onmouseover="this.className='history_table';" onmouseout="this.className='history_table2'" onclick=history_edit('+ i +')><img class="icon ic_b_edit" src="themes/dot.gif" title="Edit"/></td><td onmouseover="this.className='history_table';" onmouseout="this.className='history_table2'" onclick=history_delete('+ i +')><img src="themes/original/img/b_drop.png" title="Delete"></td></tr></thead>'; } i++; if(i >= history_array.length) { diff --git a/querywindow.php b/querywindow.php index 3e5207c..76e2a3b 100644 --- a/querywindow.php +++ b/querywindow.php @@ -60,17 +60,17 @@ if ($no_js) { $tabs = false; } else { $tabs = array(); - $tabs['sql']['icon'] = 'b_sql.png'; + $tabs['sql']['icon'] = 'ic_b_sql'; $tabs['sql']['text'] = __('SQL'); $tabs['sql']['fragment'] = '#'; $tabs['sql']['attr'] = 'onclick="javascript:PMA_querywindowCommit('sql');return false;"'; $tabs['sql']['active'] = (bool) ($querydisplay_tab == 'sql'); - $tabs['import']['icon'] = 'b_import.png'; + $tabs['import']['icon'] = 'ic_b_import'; $tabs['import']['text'] = __('Import files'); $tabs['import']['fragment'] = '#'; $tabs['import']['attr'] = 'onclick="javascript:PMA_querywindowCommit('files');return false;"'; $tabs['import']['active'] = (bool) ($querydisplay_tab == 'files'); - $tabs['history']['icon'] = 'b_bookmark.png'; + $tabs['history']['icon'] = 'ic_b_bookmark'; $tabs['history']['text'] = __('SQL history'); $tabs['history']['fragment'] = '#'; $tabs['history']['attr'] = 'onclick="javascript:PMA_querywindowCommit('history');return false;"'; @@ -86,8 +86,8 @@ if ($no_js) {
if ($GLOBALS['cfg']['PropertiesIconic']) { $titles['Change'] = - '<img class="icon" width="16" height="16" src="' . $pmaThemeImage - . 'b_edit.png" alt="' . __('Change') . '" title="' . __('Change') + '<img class="icon ic_b_edit" src="themes/dot.gif" alt="' + . __('Change') . '" title="' . __('Change') . '" />';
if ('both' === $GLOBALS['cfg']['PropertiesIconic']) { diff --git a/server_binlog.php b/server_binlog.php index 02b0800..1b55452 100644 --- a/server_binlog.php +++ b/server_binlog.php @@ -73,7 +73,7 @@ if (empty($_REQUEST['dontlimitchars'])) { * Displays the sub-page heading */ echo '<h2>' . "\n" - . ($GLOBALS['cfg']['MainPageIconic'] ? '<img src="' . $pmaThemeImage . 's_tbl.png" width="16" height="16" border="0" hspace="2" align="middle" alt="" />' : '') + . ($GLOBALS['cfg']['MainPageIconic'] ? '<img src="themes/dot.gif" class="icon ic_s_tbl" alt="" />' : '') . ' ' . __('Binary log') . "\n" . '</h2>' . "\n";
diff --git a/server_collations.php b/server_collations.php index 44d5157..ccd41d4 100644 --- a/server_collations.php +++ b/server_collations.php @@ -34,7 +34,7 @@ require './libraries/server_links.inc.php'; */ echo '<h2>' . "\n" . ' ' . ($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="'. $GLOBALS['pmaThemeImage'] . 's_asci.png" alt="" />' + ? '<img class="icon ic_s_asci" src="themes/dot.gif" alt="" />' : '') . '' . __('Character Sets and Collations') . "\n" . '</h2>' . "\n"; diff --git a/server_databases.php b/server_databases.php index 051345d..fb9d1d6 100644 --- a/server_databases.php +++ b/server_databases.php @@ -94,8 +94,7 @@ require './libraries/server_links.inc.php'; */ echo '<h2>' . "\n" . ($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="' . $pmaThemeImage . 's_db.png" width="16"' - .' height="16" alt="" />' + ? '<img class="icon ic_s_db" src="themes/dot.gif" alt="" />' : '') . ($dbstats ? __('Databases statistics') : __('Databases')) . "\n" .'</h2>' . "\n"; @@ -155,7 +154,7 @@ if ($databases_count > 0) { . ($is_superuser || $cfg['AllowUserDropDatabase'] ? ' <th></th>' . "\n" : '') . ' <th><a href="./server_databases.php' . PMA_generate_common_url($_url_params) . '">' . "\n" . ' ' . __('Database') . "\n" - . ($sort_by == 'SCHEMA_NAME' ? ' <img class="icon" src="' . $pmaThemeImage . 's_' . $sort_order . '.png" width="11" height="9" alt="' . ($sort_order == 'asc' ? __('Ascending') : __('Descending')) . '" />' . "\n" : '') + . ($sort_by == 'SCHEMA_NAME' ? ' <img class="icon ic_s_' . $sort_order . '" src="themes/dot.gif" alt="' . ($sort_order == 'asc' ? __('Ascending') : __('Descending')) . '" />' . "\n" : '') . ' </a></th>' . "\n"; $table_columns = 3; foreach ($column_order as $stat_name => $stat) { @@ -172,7 +171,7 @@ if ($databases_count > 0) { echo ' <th' . $colspan . '>' .'<a href="./server_databases.php' . PMA_generate_common_url($_url_params) . '">' . "\n" .' ' . $stat['disp_name'] . "\n" - .($sort_by == $stat_name ? ' <img class="icon" src="' . $pmaThemeImage . 's_' . $sort_order . '.png" width="11" height="9" alt="' . ($sort_order == 'asc' ? __('Ascending') : __('Descending')) . '" />' . "\n" : '') + .($sort_by == $stat_name ? ' <img class="icon ic_s_' . $sort_order . '" src="themes/dot.gif" alt="' . ($sort_order == 'asc' ? __('Ascending') : __('Descending')) . '" />' . "\n" : '') .' </a></th>' . "\n"; } } diff --git a/server_engines.php b/server_engines.php index 4eb5312..c668777 100644 --- a/server_engines.php +++ b/server_engines.php @@ -42,8 +42,7 @@ if (empty($_REQUEST['engine']) */ echo '<h2>' . "\n" . ($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"' - .' width="16" height="16" alt="" />' : '') + ? '<img class="icon ic_b_engine" src="themes/dot.gif" alt="" />' : '') . "\n" . __('Storage Engines') . "\n" . '</h2>' . "\n";
@@ -107,8 +106,7 @@ if (empty($_REQUEST['engine']) $engine_plugin = PMA_StorageEngine::getEngine($_REQUEST['engine']); echo '<h2>' . "\n" . ($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"' - .' width="16" height="16" alt="" />' : '') + ? '<img class="icon ic_b_engine" src="themes/dot.gif" alt="" />' : '') . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n" . ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n" . '</h2>' . "\n\n"; diff --git a/server_replication.php b/server_replication.php index 5576914..c2fa555 100644 --- a/server_replication.php +++ b/server_replication.php @@ -158,7 +158,7 @@ require './libraries/server_links.inc.php';
echo '<div id="replication">'; echo ' <h2>'; -echo ' <img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 's_replication.png" width="16" height="16" alt="" />'; +echo ' <img class="icon ic_s_replication" src="themes/dot.gif" alt="" />'; echo __('Replication'); echo ' </h2>';
diff --git a/server_status.php b/server_status.php index b1dea55..cf02da7 100644 --- a/server_status.php +++ b/server_status.php @@ -220,7 +220,8 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) { preg_match('/^(\w+)\s/',$row['argument'],$match); $type = strtolower($match[1]); // Ignore undefined index warning, just increase counter by one - @$return['sum'][$type]++; + @$return['sum'][$type] += $row['#']; + if($type=='insert' || $type=='update') { // Group inserts if selected if($type=='insert' && isset($_REQUEST['groupInserts']) && $_REQUEST['groupInserts'] && preg_match('/^INSERT INTO (`|'|"|)([^\s\1]+)\1/i',$row['argument'],$matches)) { @@ -229,8 +230,8 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) { $return['rows'][$insertTablesFirst]['#'] = $insertTables[$matches[2]];
// Add a ... to the end of this query to indicate that there's been other queries - $return['rows'][$insertTablesFirst]['argument'][strlen($return['rows'][$insertTablesFirst]['argument'])-1] != '.'; - $return['rows'][$insertTablesFirst]['argument'] .= '<br/>...'; + if($return['rows'][$insertTablesFirst]['argument'][strlen($return['rows'][$insertTablesFirst]['argument'])-1] != '.') + $return['rows'][$insertTablesFirst]['argument'] .= '<br/>...';
// Group this value, thus do not add to the result list continue; @@ -251,6 +252,7 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) { }
$return['sum']['TOTAL'] = array_sum($return['sum']); + $return['numRows'] = count($return['rows']);
PMA_DBI_free_result($result);
@@ -277,6 +279,7 @@ $GLOBALS['js_include'][] = 'jquery/jquery.cookie.js'; // For tab persistence $GLOBALS['js_include'][] = 'jquery/jquery.json-2.2.js'; $GLOBALS['js_include'][] = 'jquery/jquery.sprintf.js'; $GLOBALS['js_include'][] = 'jquery/jquery.sortableTable.js'; +$GLOBALS['js_include'][] = 'jquery/timepicker.js'; // Charting $GLOBALS['js_include'][] = 'highcharts/highcharts.js'; /* Files required for chart exporting */ @@ -575,7 +578,7 @@ server_db_isLocal = <?php echo ($server_db_isLocal)?'true':'false'; ?>; * Displays the sub-page heading */ if ($GLOBALS['cfg']['MainPageIconic']) { - echo '<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 's_status.png" width="16" height="16" alt="" />'; + echo '<img class="icon ic_s_status" src="themes/dot.gif" width="16" height="16" alt="" />'; }
echo __('Runtime Information'); @@ -583,7 +586,7 @@ echo __('Runtime Information'); ?></h2> <div id="serverStatusTabs"> <ul> - <li><a href="#statustabs_traffic"><?php echo __('Server traffic'); ?></a></li> + <li><a href="#statustabs_traffic"><?php echo __('Server'); ?></a></li> <li><a href="#statustabs_queries"><?php echo __('Query statistics'); ?></a></li> <li><a href="#statustabs_allvars"><?php echo __('All status variables'); ?></a></li> <li><a href="#statustabs_charting"><?php echo __('Monitor'); ?></a></li> @@ -817,7 +820,7 @@ function printServerTraffic() { ?> </h3>
- <p class="notice"> + <p> <?php echo sprintf(__('This MySQL server has been running for %1$s. It started up on %2$s.'), PMA_timespanFormat($server_status['Uptime']), @@ -1286,26 +1289,26 @@ function printMonitor() { ?> <div class="monitorLinks"> <a href="#pauseCharts"> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>play.png" alt="" /> + <img src="themes/dot.gif" class="icon ic_play" alt="" /> <?php echo __('Start Monitor'); ?> </a> <a href="#settingsPopup" rel="popupLink" style="display:none;"> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>s_cog.png" alt="" /> + <img src="themes/dot.gif" class="icon ic_s_cog" alt="" /> <?php echo __('Settings'); ?> </a> <a href="#monitorInstructionsDialog"> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>b_help.png" alt="" /> + <img src="themes/dot.gif" class="icon ic_b_help" alt="" /> <?php echo __('Instructions/Setup'); ?> </a> <a href="#endChartEditMode" style="display:none;"> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>s_okay.png" alt="" /> + <img src="themes/dot.gif" class="icon ic_s_okay" alt="" /> <?php echo __('Done rearranging/editing charts'); ?> </a> </div>
<div class="popupContent settingsPopup"> <a href="#addNewChart"> - <img src="<?php echo $GLOBALS['pmaThemeImage'];?>b_chart.png" alt="" /> + <img src="themes/dot.gif" class="icon ic_b_chart" alt="" /> <?php echo __('Add chart'); ?> </a> | <a href="#rearrangeCharts"> <?php echo __('Rearrange/edit charts'); ?></a><br> @@ -1332,7 +1335,8 @@ function printMonitor() {
<div id="monitorInstructionsDialog" title="<?php echo __('Monitor Instructions'); ?>" style="display:none;"> <?php echo __('The phpMyAdmin Monitor can assist you in optimizing the server configuration and track down time intensive - queries. For the latter you will need to set log_output to \'TABLE\' and have either the slow_query_log or general_log enabled.'); ?> + queries. For the latter you will need to set log_output to 'TABLE' and have either the slow_query_log or general_log enabled. Note however, that the + general_log produces a lot of data and increases server load by up to 15%'); ?> <p></p> <img class="ajaxIcon" src="<?php echo $GLOBALS['pmaThemeImage']; ?>ajax_clock_small.gif" alt="Loading"> <div class="ajaxContent"> @@ -1345,11 +1349,15 @@ function printMonitor() { using the cog icon on each respective chart. <p>When you get to see a sudden spike in activity, select the relevant time span on any chart by holding down the left mouse button and panning over the chart. This will load statistics from the logs helping you find what caused the - activity spike.</p> - <p><b>Please note:</b> - Enabling the general_log may increase the server load by up to 5-15%. Also be aware that generating statistics out of the logs is a - very load intensive task, thus it is advisable to select only a small time span. - </p>'); ?> + activity spike.</p>'); + ?> + <p> + <img class="icon ic_s_attention" src="themes/dot.gif" alt=""> + <?php echo __('<b>Please note:</b> + Enabling the general_log may increase the server load by 5-15%. Also be aware that generating statistics from the logs is a + load intensive task, so it is advisable to select only a small time span and to disable the general_log and empty its table once monitoring is not required any more. + '); ?> + </p> </div> </div>
diff --git a/server_synchronize.php b/server_synchronize.php index 9ff9cd4..2cb6898 100644 --- a/server_synchronize.php +++ b/server_synchronize.php @@ -1081,8 +1081,7 @@ if (isset($_REQUEST['synchronize_db'])) { * Displays the sub-page heading */ echo '<h2>' . ($GLOBALS['cfg']['MainPageIconic'] - ? '<img class="icon" src="' . $pmaThemeImage . 's_sync.png" width="18"' - . ' height="18" alt="" />' + ? '<img class="icon ic_s_sync" src="themes/dot.gif" alt="" />' : '') . __('Synchronize') .'</h2>'; diff --git a/server_variables.php b/server_variables.php index 29abc1d..fbe7094 100644 --- a/server_variables.php +++ b/server_variables.php @@ -73,7 +73,7 @@ require './libraries/server_links.inc.php'; * Displays the sub-page heading */ echo '<h2>' . "\n" - . ($cfg['MainPageIconic'] ? '<img class="icon" src="' . $pmaThemeImage . 's_vars.png" width="16" height="16" alt="" />' : '') + . ($cfg['MainPageIconic'] ? '<img class="icon ic_s_vars" src="themes/dot.gif" alt="" />' : '') . '' . __('Server variables and settings') . "\n" . PMA_showMySQLDocu('server_system_variables','server_system_variables') . '</h2>' . "\n"; diff --git a/sql.php b/sql.php index c36ea1f..a954286 100644 --- a/sql.php +++ b/sql.php @@ -1013,7 +1013,7 @@ $(document).ready(createProfilingChart); <input type="hidden" name="fields[query]" value="<?php echo urlencode(isset($complete_query) ? $complete_query : $sql_query); ?>" /> <fieldset> <legend><?php - echo ($cfg['PropertiesIconic'] ? '<img class="icon" src="' . $pmaThemeImage . 'b_bookmark.png" width="16" height="16" alt="' . __('Bookmark this SQL query') . '" />' : '') + echo ($cfg['PropertiesIconic'] ? '<img class="icon ic_b_bookmark" src="themes/dot.gif" alt="' . __('Bookmark this SQL query') . '" />' : '') . __('Bookmark this SQL query'); ?> </legend> diff --git a/tbl_create.php b/tbl_create.php index e3e743b..5259374 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -266,9 +266,9 @@ if (isset($_REQUEST['do_save_data'])) { if (PMA_Tracker::isActive()) { $truename = str_replace(' ', ' ', htmlspecialchars($table)); if (PMA_Tracker::isTracked($db, $truename)) { - $new_table_string .= '<a href="tbl_tracking.php' . PMA_generate_common_url($tbl_url_params) . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye.png" alt="' . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>'; + $new_table_string .= '<a href="tbl_tracking.php' . PMA_generate_common_url($tbl_url_params) . '"><img class="icon ic_eye" src="themes/dot.gif" alt="' . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>'; } elseif (PMA_Tracker::getVersion($db, $truename) > 0) { - $new_table_string .= '<a href="tbl_tracking.php' . PMA_generate_common_url($tbl_url_params) . '"><img class="icon" width="14" height="14" src="' . $pmaThemeImage . 'eye_grey.png" alt="' . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>'; + $new_table_string .= '<a href="tbl_tracking.php' . PMA_generate_common_url($tbl_url_params) . '"><img class="icon ic_eye_grey" src="themes/dot.gif" alt="' . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>'; } unset($truename); } diff --git a/tbl_structure.php b/tbl_structure.php index afca2ea..3cad9d8 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -494,7 +494,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { echo "\n"; ?> <td class="more_opts" id="more_opts<?php echo $rownum; ?>"> - <?php echo __('More'); ?> <img src="<?php echo $pmaThemeImage . 'more.png'; ?>" alt="<?php echo __('Show more actions'); ?>" /> + <?php echo __('More'); ?> <img class="icon ic_more" src="themes/dot.gif" alt="<?php echo __('Show more actions'); ?>" /> <div class="structure_actions_dropdown" id="row_<?php echo $rownum; ?>">
<div class="action_browse"> @@ -625,7 +625,7 @@ if (! $tbl_is_view && ! $db_is_information_schema) { ?> <a href="tbl_printview.php?<?php echo $url_query; ?>"><?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_print.png" width="16" height="16" alt="' . __('Print view') . '"/>'; + echo '<img class="icon ic_b_print" src="themes/dot.gif" alt="' . __('Print view') . '"/>'; } echo __('Print view'); ?></a> @@ -639,7 +639,7 @@ if (! $tbl_is_view && ! $db_is_information_schema) { ?> <a href="tbl_relation.php?<?php echo $url_query; ?>"><?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_relations.png" width="16" height="16" alt="' . __('Relation view') . '"/>'; + echo '<img class="icon ic_b_relations" src="themes/dot.gif" alt="' . __('Relation view') . '"/>'; } echo __('Relation view'); ?></a> @@ -648,7 +648,7 @@ if (! $tbl_is_view && ! $db_is_information_schema) { ?> <a href="sql.php?<?php echo $url_query; ?>&session_max_rows=all&sql_query=<?php echo urlencode('SELECT * FROM ' . PMA_backquote($table) . ' PROCEDURE ANALYSE()'); ?>"><?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_tblanalyse.png" width="16" height="16" alt="' . __('Propose table structure') . '" />'; + echo '<img class="icon ic_b_tblanalyse" src="themes/dot.gif" alt="' . __('Propose table structure') . '" />'; } echo __('Propose table structure'); ?></a><?php @@ -661,7 +661,7 @@ if (! $tbl_is_view && ! $db_is_information_schema) {
if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'eye.png" width="16" height="16" alt="' . __('Track table') . '" /> '; + echo '<img class="icon ic_eye" src="themes/dot.gif" alt="' . __('Track table') . '" /> '; } echo __('Track table') . '</a>'; } @@ -673,7 +673,7 @@ if (! $tbl_is_view && ! $db_is_information_schema) { <?php echo PMA_generate_common_hidden_inputs($db, $table); if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_insrow.png" width="16" height="16" alt="' . __('Add column') . '"/>'; + echo '<img class="icon ic_b_insrow" src="themes/dot.gif" alt="' . __('Add column') . '"/>'; } echo sprintf(__('Add %s column(s)'), '<input type="text" name="num_fields" size="2" maxlength="2" value="1" onfocus="this.select()" />');
@@ -839,7 +839,7 @@ if ($cfg['ShowStats']) { <td colspan="3" align="center"> <a href="sql.php?<?php echo $url_query; ?>&pos=0&sql_query=<?php echo urlencode('OPTIMIZE TABLE ' . PMA_backquote($table)); ?>"><?php if ($cfg['PropertiesIconic']) { - echo '<img class="icon" src="' . $pmaThemeImage . 'b_tbloptimize.png" width="16" height="16" alt="' . __('Optimize table'). '" />'; + echo '<img class="icon ic_b_tbloptimize" src="themes/dot.gif" alt="' . __('Optimize table'). '" />'; } echo __('Optimize table'); ?></a> diff --git a/tbl_tracking.php b/tbl_tracking.php index 29cf83a..edfc237 100644 --- a/tbl_tracking.php +++ b/tbl_tracking.php @@ -429,7 +429,7 @@ if (isset($_REQUEST['report']) || isset($_REQUEST['report_export'])) { // Prepare delete link content here $drop_image_or_text = ''; if (true == $GLOBALS['cfg']['PropertiesIconic']) { - $drop_image_or_text .= '<img class="icon" width="16" height="16" src="' . $pmaThemeImage . 'b_drop.png" alt="' . __('Delete tracking data row from report') . '" title="' . __('Delete tracking data row from report') . '" />'; + $drop_image_or_text .= '<img class="icon ic_b_drop" src="themes/dot.gif" alt="' . __('Delete tracking data row from report') . '" title="' . __('Delete tracking data row from report') . '" />'; } if ('both' === $GLOBALS['cfg']['PropertiesIconic'] || false === $GLOBALS['cfg']['PropertiesIconic']) { $drop_image_or_text .= __('Delete'); diff --git a/test/theme.php b/test/theme.php index 0242e09..1750b33 100644 --- a/test/theme.php +++ b/test/theme.php @@ -39,10 +39,10 @@ header('Content-Type: text/html; charset=utf-8');
$separator = '<span class="separator">' - .'<img class="icon" src=../"' . $GLOBALS['pmaThemeImage'] . 'item_ltr.png"' + .'<img class="icon ic_item_ltr" src="../themes/dot.gif"' .' width="5" height="9" alt="-" /></span>' . "\n"; $item = '<a href="%1$s?%2$s" class="item">' - .' <img class="icon" src="../' . $GLOBALS['pmaThemeImage'] . '%5$s"' + .' <img class="icon %5$s" src="../themes/dot.gif"' .' width="16" height="16" alt="" /> ' . "\n" .'%4$s: %3$s</a>' . "\n";
@@ -52,7 +52,7 @@ printf($item, PMA_generate_common_url(), 'Server', __('Server'), - 's_host.png'); + 'ic_s_host');
echo $separator; printf($item, @@ -60,7 +60,7 @@ printf($item, '', 'Database', __('Database'), - 's_db.png'); + 'ic_s_db');
echo $separator; printf($item, @@ -71,8 +71,8 @@ printf($item, ? __('View') : __('Table')), (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view'] - ? 'b_views' - : 's_tbl') . '.png'); + ? 'ic_b_views' + : 'ic_s_tbl'));
echo '<span class="table_comment" id="span_table_comment">' .'"Table comment"</span>' . "\n"; @@ -85,56 +85,56 @@ echo '</div>'; */ $tabs = array();
-$tabs['databases']['icon'] = '../../../../' . $pmaThemeImage . 's_db.png'; +$tabs['databases']['icon'] = 'ic_s_db'; $tabs['databases']['link'] = 'server_databases.php'; $tabs['databases']['text'] = __('Databases');
-$tabs['sql']['icon'] = '../../../../' . $pmaThemeImage . 'b_sql.png'; +$tabs['sql']['icon'] = 'b_sql.png'; $tabs['sql']['link'] = 'server_sql.php'; $tabs['sql']['text'] = __('SQL');
-$tabs['status']['icon'] = '../../../../' . $pmaThemeImage . 's_status.png'; +$tabs['status']['icon'] = 'ic_s_status'; $tabs['status']['link'] = 'server_status.php'; $tabs['status']['text'] = __('Status');
-$tabs['vars']['icon'] = '../../../../' . $pmaThemeImage . 's_vars.png'; +$tabs['vars']['icon'] = 'ic_s_vars'; $tabs['vars']['link'] = 'server_variables.php'; $tabs['vars']['text'] = __('Variables');
-$tabs['charset']['icon'] = '../../../../' . $pmaThemeImage . 's_asci.png'; +$tabs['charset']['icon'] = 'ic_s_asci'; $tabs['charset']['link'] = 'server_collations.php'; $tabs['charset']['text'] = __('Charsets');
-$tabs['engine']['icon'] = '../../../../' . $pmaThemeImage . 'b_engine.png'; +$tabs['engine']['icon'] = 'ic_b_engine'; $tabs['engine']['link'] = 'server_engines.php'; $tabs['engine']['text'] = __('Engines');
-$tabs['rights']['icon'] = '../../../../' . $pmaThemeImage . 's_rights.png'; +$tabs['rights']['icon'] = 'ic_s_rights'; $tabs['rights']['link'] = 'server_privileges.php'; $tabs['rights']['text'] = __('Privileges');
-$tabs['binlog']['icon'] = '../../../../' . $pmaThemeImage . 's_tbl.png'; +$tabs['binlog']['icon'] = 'ic_s_tbl'; $tabs['binlog']['link'] = 'server_binlog.php'; $tabs['binlog']['text'] = __('Binary log');
-$tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png'; +$tabs['process']['icon'] = 'ic_s_process'; $tabs['process']['link'] = 'server_processlist.php'; $tabs['process']['text'] = 'caution'; $tabs['process']['class'] = 'caution';
-$tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; +$tabs['export']['icon'] = 'ic_b_export'; $tabs['export']['text'] = 'disabled';
-$tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; +$tabs['export2']['icon'] = 'ic_b_export'; $tabs['export2']['text'] = 'disabled caution'; $tabs['export2']['class'] = 'caution';
-$tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png'; +$tabs['import']['icon'] = 'ic_b_import'; $tabs['import']['link'] = 'server_import.php'; $tabs['import']['text'] = 'active'; $tabs['import']['class'] = 'active';
-echo PMA_generate_html_tabs($tabs, array()); +echo PMA_generate_html_tabs($tabs, array(), '../../../../'); unset($tabs);
if (@file_exists($pmaThemeImage . 'logo_right.png')) { @@ -260,12 +260,9 @@ echo sprintf(__('Welcome to %s'), value="1" /></td> <th><label for="checkbox_1">th label</label></th> <td class="value">td.value</td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> <td>table.data tbody tr.odd td</td> </tr> <tr class="even"> @@ -273,12 +270,9 @@ echo sprintf(__('Welcome to %s'), value="1" /></td> <th><label for="checkbox_2">th label</label></th> <td class="value">td.value</td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> <td>table.data tbody tr.even td</td> </tr> <tr class="odd"> @@ -286,12 +280,9 @@ echo sprintf(__('Welcome to %s'), value="1" /></td> <th><label for="checkbox_3">th label</label></th> <td class="value">td.value</td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> <td>table.data tbody tr.odd td</td> </tr> <tr class="even"> @@ -299,12 +290,9 @@ echo sprintf(__('Welcome to %s'), value="1" /></td> <th><label for="checkbox_4">th label</label></th> <td class="value">td.value</td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> - <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png" - width="16" height="16" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> + <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td> <td>table.data tbody tr.even td</td> </tr> </tbody> diff --git a/themes/original/css/theme_left.css.php b/themes/original/css/theme_left.css.php index 9901ed4..7ffbb69 100644 --- a/themes/original/css/theme_left.css.php +++ b/themes/original/css/theme_left.css.php @@ -64,17 +64,33 @@ button { display: inline; }
+/* Icon sprites */
-/******************************************************************************/ -/* classes */ - -/* leave some space between icons and text */ .icon { + /* leave some space between icons and text */ vertical-align: middle; margin-right: 0.3em; margin-left: 0.3em; + width:16px; + height:16px; + background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>iconsprites.png) no-repeat top left; }
+/* 2 px more on the menu icons, for being centered */ +.ic_b_home { background-position: 2px -335px; } +.ic_b_selboard { background-position: 2px -688px; } +.ic_b_docs { background-position: 2px -142px; } +.ic_b_sqlhelp { background-position: 2px -772px; } +.ic_s_reload { background-position: 2px -1671px; } +.ic_s_loggoff { background-position: 2px -1604px; } + +.ic_b_browse { background-position: 0 -18px; } +.ic_b_sbrowse { background-position: 0 -660px; width: 10px; height: 10px; } +.ic_b_view { background-position: 0 -1044px; } + +/******************************************************************************/ +/* classes */ + /******************************************************************************/ /* specific elements */
@@ -141,12 +157,12 @@ div#leftframelinks .icon {
div#leftframelinks a img.icon { margin: 0; - padding: 0.2em; border: 0.1em solid <?php echo $GLOBALS['cfg']['NaviColor']; ?>; + padding: 2px; }
div#leftframelinks a:hover img { - background: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; + background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>; color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>; }
diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index c949262..1e1e2e5 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -147,6 +147,142 @@ button { vertical-align: middle; }
+/* Icon sprites */ + +.icon, .footnotemarker { + vertical-align: -3px; + margin-right: 0.3em; + margin-left: 0.3em; + width:16px; + height:16px; + background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>iconsprites.png) no-repeat top left; +} + +.ic_b_bookmark { background-position: 0 0; } +.ic_b_browse { background-position: 0 -18px; } +.ic_b_calendar { background-position: 0 -36px; } +.ic_b_chart { background-position: 0 -54px; } +.ic_b_close { background-position: 0 -72px; } +.ic_b_comment { background-position: 0 -90px; } +.ic_b_dbstatistics { background-position: 0 -108px; } +.ic_b_deltbl { background-position: 0 -126px; } +.ic_b_docs { background-position: 0 -144px; } +.ic_b_drop { background-position: 0 -162px; } +.ic_b_edit { background-position: 0 -180px; } +.ic_b_empty { background-position: 0 -198px; } +.ic_b_engine { background-position: 0 -216px; } +.ic_b_event_add { background-position: 0 -234px; } +.ic_b_events { background-position: 0 -252px; } +.ic_b_export { background-position: 0 -270px; } +.ic_b_ftext { background-position: 0 -288px; } +.ic_b_globe { background-position: 0 -306px; } +.ic_b_help { background-position: 0 -324px; width: 11px; height: 11px; } +.ic_b_home { background-position: 0 -337px; } +.ic_b_import { background-position: 0 -355px; } +.ic_b_index { background-position: 0 -373px; } +.ic_b_info { background-position: 0 -391px; width: 11px; height: 11px; } +.ic_b_inline_edit { background-position: 0 -404px; } +.ic_b_insrow { background-position: 0 -422px; } +.ic_b_minus { background-position: 0 -440px; width: 9px; height: 9px; } +.ic_b_more { background-position: 0 -451px; } +.ic_b_newdb { background-position: 0 -469px; } +.ic_b_newtbl { background-position: 0 -487px; } +.ic_b_nextpage, .ic_play { background-position: 0 -505px; } +.ic_b_plus { background-position: 0 -523px; width: 9px; height: 9px; } +.ic_b_primary { background-position: 0 -534px; } +.ic_b_print { background-position: 0 -552px; } +.ic_b_props { background-position: 0 -570px; } +.ic_b_relations { background-position: 0 -588px; } +.ic_b_routine_add { background-position: 0 -606px; } +.ic_b_routines { background-position: 0 -624px; } +.ic_b_save { background-position: 0 -642px; } +.ic_b_sbrowse { background-position: 0 -660px; width: 10px; height: 10px; } +.ic_b_search { background-position: 0 -672px; } +.ic_b_selboard { background-position: 0 -690px; } +.ic_b_select { background-position: 0 -708px; } +.ic_b_snewtbl { background-position: 0 -726px; width: 10px; height: 10px; } +.ic_b_spatial { background-position: 0 -738px; } +.ic_b_sql { background-position: 0 -756px; } +.ic_b_sqlhelp { background-position: 0 -774px; } +.ic_b_tblanalyse { background-position: 0 -792px; } +.ic_b_tblexport { background-position: 0 -810px; } +.ic_b_tblimport { background-position: 0 -828px; } +.ic_b_tblops { background-position: 0 -846px; } +.ic_b_tbloptimize { background-position: 0 -864px; } +.ic_b_tipp { background-position: 0 -882px; } +.ic_b_trigger_add { background-position: 0 -900px; } +.ic_b_triggers { background-position: 0 -918px; } +.ic_b_unique { background-position: 0 -936px; } +.ic_b_usradd { background-position: 0 -954px; } +.ic_b_usrcheck { background-position: 0 -972px; } +.ic_b_usrdrop { background-position: 0 -990px; } +.ic_b_usredit { background-position: 0 -1008px; } +.ic_b_usrlist { background-position: 0 -1026px; } +.ic_b_view { background-position: 0 -1044px; } +.ic_b_views { background-position: 0 -1062px; } +.ic_bd_browse { background-position: 0 -1080px; } +.ic_bd_deltbl { background-position: 0 -1098px; } +.ic_bd_drop { background-position: 0 -1116px; } +.ic_bd_edit { background-position: 0 -1134px; } +.ic_bd_empty { background-position: 0 -1152px; } +.ic_bd_export { background-position: 0 -1170px; } +.ic_bd_ftext { background-position: 0 -1188px; } +.ic_bd_index { background-position: 0 -1206px; } +.ic_bd_insrow { background-position: 0 -1224px; } +.ic_bd_nextpage { background-position: 0 -1242px; width: 8px; height: 13px; } +.ic_bd_primary { background-position: 0 -1257px; } +.ic_bd_sbrowse { background-position: 0 -1275px; width: 10px; height: 10px; } +.ic_bd_select { background-position: 0 -1287px; } +.ic_bd_spatial { background-position: 0 -1305px; } +.ic_bd_unique { background-position: 0 -1323px; } +.ic_col_drop { background-position: 0 -1341px; } +.ic_eye { background-position: 0 -1359px; } +.ic_eye_grey { background-position: 0 -1377px; } +.ic_item_ltr { background-position: 0 -1395px; width: 5px; height: 9px; } +.ic_item_rtl { background-position: 0 -1406px; width: 5px; height: 9px; } +.ic_more { background-position: 0 -1417px; width: 13px; height: 8px; } +.ic_pause { background-position: 0 -1427px; } +.ic_s_asc { background-position: 0 -1445px; width: 11px; height: 9px; } +.ic_s_asci { background-position: 0 -1456px; } +.ic_s_cancel { background-position: 0 -1474px; } +.ic_s_cog { background-position: 0 -1492px; } +.ic_s_db { background-position: 0 -1510px; } +.ic_s_desc { background-position: 0 -1528px; width: 11px; height: 9px; } +.ic_s_error { background-position: 0 -1539px; } +.ic_s_error2 { background-position: 0 -1557px; width: 11px; height: 11px; } +.ic_s_host { background-position: 0 -1570px; } +.ic_s_lang { background-position: 0 -1588px; } +.ic_s_loggoff { background-position: 0 -1606px; } +.ic_s_notice { background-position: 0 -1624px; } +.ic_s_passwd { background-position: 0 -1642px; } +.ic_s_really { background-position: 0 -1660px; width: 11px; height: 11px; } +.ic_s_reload { background-position: 0 -1673px; } +.ic_s_replication { background-position: 0 -1691px; } +.ic_s_rights { background-position: 0 -1709px; } +.ic_s_sortable { background-position: 0 -1727px; } +.ic_s_status { background-position: 0 -1745px; } +.ic_s_success { background-position: 0 -1763px; } +.ic_s_sync { background-position: 0 -1781px; } +.ic_s_tbl { background-position: 0 -1799px; } +.ic_s_theme { background-position: 0 -1817px; } +.ic_s_vars { background-position: 0 -1835px; } +.ic_s_views { background-position: 0 -1853px; width: 10px; height: 10px; } +.ic_window-new { background-position: 0 -1865px; } + +/* Same as s_notice */ +.ic_s_attention { background-position: 0 -1624px; } + +/* Same as ic_b_help, but applied to place where width=11, height=11 attributes were used */ +.ic_b_help_s { background-position: -324px 0; width: 11px; height: 11px; } + +/* Same as ic_s_sortable */ +img.sortableIcon { background-position: -1727px 0; } + +/* Same as s_asc */ +th.headerSortUp img.sortableIcon { background-position: 0 -1445px; width: 11px; height: 9px; } + +/* Same as s_desc */ +th.headerSortDown img.sortableIcon { background-position: 0 -1528px; width: 11px; height: 9px; }
/******************************************************************************/ /* classes */ @@ -957,28 +1093,21 @@ div#tablestatistics table {
/* serverstatus */
-img.sortableIcon { - width:16px; - height:16px; - float:right; - background-repeat:no-repeat; -} - h3#serverstatusqueries span { font-size:60%; display:inline; }
-th.headerSortUp img.sortableIcon, th.headerSortUp img.sortableIcon { - background-image:url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_desc.png); -} -th.headerSortDown img.sortableIcon, th.headerSortDown img.sortableIcon { - background-image:url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_asc.png); +img.sortableIcon { + float:right; + background-repeat:no-repeat; + margin:0; }
-.statuslinks { +.buttonlinks { float: <?php echo $right; ?>; white-space: nowrap; + display: none; /* Made visible with js */ }
/* Also used for the variables page */ @@ -1013,37 +1142,30 @@ table#serverstatusconnections { margin-<?php echo $left; ?>: 30px; }
- .clearfloat { clear: both; } -div#serverstatussection table { + +table#serverstatusvariables { width: 100%; margin-bottom: 1em; } -div#serverstatussection table .name { +table#serverstatusvariables .name { width: 18em; + white-space:nowrap; } -div#serverstatussection table .value { +table#serverstatusvariables .value { width: 6em; } +table#serverstatusconnections { + float: <?php echo $left; ?>; + margin-<?php echo $left; ?>: 30px; +}
div#serverstatus table tbody td.descr a, div#serverstatus table .tblFooters a { white-space: nowrap; } -div#serverstatus div#statuslinks a:before, -div#serverstatus div#sectionlinks a:before, -div#serverstatus table tbody td.descr a:before, -div#serverstatus table .tblFooters a:before { - content: '['; -} -div#serverstatus div#statuslinks a:after, -div#serverstatus div#sectionlinks a:after, -div#serverstatus table tbody td.descr a:after, -div#serverstatus table .tblFooters a:after { - content: ']'; -}
div.liveChart { clear:both; @@ -1052,6 +1174,51 @@ div.liveChart { padding-bottom:80px; }
+#addChartDialog input[type="text"] { + margin:0px; + padding:3px; +} + +div#chartVariableSettings { + border:1px solid #ddd; + background-color:#E6E6E6; + margin-left:10px; +} + +table#chartGrid div.monitorChart { + background: #EBEBEB; +} + +div#statustabs_charting div.monitorLinks { + float:<?php echo $left; ?>; +} + +.popupContent { + display: none; + position: absolute; + border: 1px solid #CCC; + margin:0; + padding:3px; + -moz-box-shadow: 1px 1px 6px #ddd; + -webkit-box-shadow: 2px 2px 3px #666; + box-shadow: 2px 2px 3px #666; + background-color:white; + z-index: 2; +} + +div#logTable { + padding-top: 10px; + clear: both; +} + +div#logTable table { + width:100%; +} + +.smallIndent { + padding-left: 7px; +} + /* end serverstatus */
/* server variables */ @@ -1062,23 +1229,23 @@ a.editLink { }
table.serverVariableEditTable { - border:0; - margin:0; - padding:0; - width:100%; + border:0; + margin:0; + padding:0; + width:100%; } table.serverVariableEditTable td { - border:0; - margin:0; - padding:0; + border:0; + margin:0; + padding:0; } table.serverVariableEditTable td:first-child { - white-space:nowrap; - vertical-align:middle; + white-space:nowrap; + vertical-align:middle; }
table.serverVariableEditTable input { - width:95%; + width:95%; }
table#serverVariables td { diff --git a/themes/original/img/iconsprites.png b/themes/original/img/iconsprites.png new file mode 100644 index 0000000..4c324ad Binary files /dev/null and b/themes/original/img/iconsprites.png differ diff --git a/themes/pmahomme/css/theme_left.css.php b/themes/pmahomme/css/theme_left.css.php index e0a6393..cd1eadf 100644 --- a/themes/pmahomme/css/theme_left.css.php +++ b/themes/pmahomme/css/theme_left.css.php @@ -72,17 +72,30 @@ button { display: inline; }
+/* Icon sprites */
-/******************************************************************************/ -/* classes */ - -/* leave some space between icons and text */ .icon { + /* leave some space between icons and text */ vertical-align: middle; margin-right: 0.3em; margin-left: 0.3em; + width:16px; + height:16px; + background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>iconsprites.png) no-repeat top left; }
+.ic_b_home { background-position: -357px 0; } +.ic_b_selboard { background-position: -754px 0; } +.ic_b_docs { background-position: -136px 0; } +.ic_b_sqlhelp { background-position: -856px 0; } +.ic_s_reload { background-position: -1761px 0; } +.ic_s_loggoff { background-position: -1698px 0; } +.ic_b_browse, .ic_b_sbrowse { background-position: -34px 0; } +.ic_b_view { background-position: -1077px 0; } + +/******************************************************************************/ +/* classes */ + .navi_dbName { font-weight: bold; color: <?php echo $GLOBALS['cfg']['NaviDatabaseNameColor']; ?>; @@ -157,9 +170,9 @@ div#leftframelinks .icon {
div#reloadlink a img, div#leftframelinks a img.icon { - margin: 10px 2px 0 0; - padding: 0.2em; - border: 0px; + margin: 0.3em; + margin-top: 0.7em; + border: 0px; }
div#leftframelinks a:hover img { diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 6c685c2..ac4f5d8 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -20,6 +20,7 @@ function PMA_ieFilter($start_color, $end_color) } ?> /******************************************************************************/ + /* general tags */ html { font-size: <?php echo (null !== $GLOBALS['PMA_Config']->get('fontsize') ? $GLOBALS['PMA_Config']->get('fontsize') : ( @@ -58,14 +59,15 @@ h2 { padding: 10px 0 10px 3px; color: #777; } + /* Hiding icons in the page titles */ h2 img{display:none;} h2 a img{display:inline;}
.data{ -margin: 0 0 12px 0; -position: relative; + margin: 0 0 12px 0; + position: relative; }
h3 { @@ -317,6 +319,151 @@ select[multiple] { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff", endColorstr="#f2f2f2"); }
+/* Icon sprites */ + +.icon, .footnotemarker { + vertical-align: -3px; + margin-right: 0.3em; + margin-left: 0.3em; + width:16px; + height:16px; + background: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>iconsprites.png) no-repeat top left; +} + +.ic_asc_order, .ic_s_desc { background-position: 0 0; } +.ic_b_bookmark { background-position: -17px 0; } +.ic_b_browse, .ic_b_sbrowse { background-position: -34px 0; } +.ic_b_calendar { background-position: -51px 0; } +.ic_b_chart, .ic_b_dbstatistics { background-position: -68px 0; } +.ic_b_close { background-position: -85px 0; } +.ic_b_comment { background-position: -102px 0; } +.ic_b_deltbl { background-position: -119px 0; } +.ic_b_docs { background-position: -136px 0; } +.ic_b_docsql { background-position: -153px 0; } +.ic_b_drop { background-position: -170px 0; } +.ic_b_edit { background-position: -187px 0; } +.ic_b_empty { background-position: -204px 0; } +.ic_b_engine { background-position: -221px 0; } +.ic_b_event_add { background-position: -238px 0; } +.ic_b_events { background-position: -255px 0; } +.ic_b_export, .ic_b_tblexport { background-position: -272px 0; } +.ic_b_firstpage { background-position: -289px 0; } +.ic_b_ftext { background-position: -306px 0; } +.ic_b_globe { background-position: -323px 0; } +.ic_b_help { background-position: -340px 0; } +.ic_b_help_s { background-position: -340px 0; } +.ic_b_home { background-position: -357px 0; } +.ic_b_import, .ic_b_tblimport { background-position: -374px 0; } +.ic_b_index { background-position: -391px 0; } +.ic_b_info { background-position: -408px 0; width: 11px; height: 11px; } +.ic_b_inline_edit { background-position: -420px 0; } +.ic_b_insrow { background-position: -437px 0; } +.ic_b_lastpage { background-position: -454px 0; } +.ic_b_minus { background-position: -471px 0; } +.ic_b_more, .ic_col_drop { background-position: -488px 0; } +.ic_b_newdb { background-position: -505px 0; } +.ic_b_newtbl { background-position: -522px 0; } +.ic_b_nextpage, .ic_play { background-position: -539px 0; } +.ic_b_pdfdoc { background-position: -556px 0; } +.ic_b_plus { background-position: -573px 0; } +.ic_b_prevpage { background-position: -590px 0; } +.ic_b_primary { background-position: -607px 0; } +.ic_b_print { background-position: -624px 0; } +.ic_b_props { background-position: -641px 0; } +.ic_b_relations { background-position: -658px 0; } +.ic_b_routine_add { background-position: -675px 0; } +.ic_b_routines { background-position: -692px 0; } +.ic_b_save { background-position: -709px 0; } +.ic_b_sdb { background-position: -726px 0; width: 10px; height: 10px; } +.ic_b_search { background-position: -737px 0; } +.ic_b_selboard { background-position: -754px 0; } +.ic_b_select { background-position: -771px 0; } +.ic_b_snewtbl { background-position: -788px 0; } +.ic_b_spatial { background-position: -805px 0; } +.ic_b_sql { background-position: -822px 0; } +.ic_b_sqldoc { background-position: -839px 0; } +.ic_b_sqlhelp { background-position: -856px 0; } +.ic_b_tblanalyse { background-position: -873px 0; } +.ic_b_tblops { background-position: -890px 0; } +.ic_b_tbloptimize { background-position: -907px 0; } +.ic_b_tipp { background-position: -924px 0; } +.ic_b_trigger_add { background-position: -941px 0; } +.ic_b_triggers { background-position: -958px 0; } +.ic_b_unique { background-position: -975px 0; } +.ic_b_usradd { background-position: -992px 0; } +.ic_b_usrcheck { background-position: -1009px 0; } +.ic_b_usrdrop { background-position: -1026px 0; } +.ic_b_usredit { background-position: -1043px 0; } +.ic_b_usrlist { background-position: -1060px 0; } +.ic_b_view { background-position: -1077px 0; } +.ic_b_views, .ic_s_views { background-position: -1094px 0; } +.ic_bd_browse { background-position: -1111px 0; } +.ic_bd_deltbl { background-position: -1128px 0; } +.ic_bd_drop { background-position: -1145px 0; } +.ic_bd_edit { background-position: -1162px 0; } +.ic_bd_empty { background-position: -1179px 0; } +.ic_bd_export { background-position: -1196px 0; } +.ic_bd_firstpage { background-position: -1213px 0; width: 16px; height: 13px; } +.ic_bd_ftext { background-position: -1230px 0; } +.ic_bd_index { background-position: -1247px 0; } +.ic_bd_insrow { background-position: -1264px 0; } +.ic_bd_lastpage { background-position: -1281px 0; width: 16px; height: 13px; } +.ic_bd_nextpage { background-position: -1298px 0; width: 8px; height: 13px; } +.ic_bd_prevpage { background-position: -1307px 0; width: 8px; height: 13px; } +.ic_bd_primary { background-position: -1316px 0; } +.ic_bd_sbrowse { background-position: -1333px 0; width: 10px; height: 10px; } +.ic_bd_select { background-position: -1344px 0; } +.ic_bd_spatial { background-position: -1361px 0; } +.ic_bd_unique { background-position: -1378px 0; } +.ic_database, .ic_s_db { background-position: -1395px 0; } +.ic_eye { background-position: -1412px 0; } +.ic_eye_grey { background-position: -1429px 0; } +.ic_item { background-position: -1446px 0; width: 9px; height: 9px; } +.ic_item_ltr { background-position: -1456px 0; width: 5px; height: 9px; } +.ic_item_rtl { background-position: -1462px 0; width: 5px; height: 9px; } +.ic_more { background-position: -1468px 0; width: 13px; height: 8px; } +.ic_pause { background-position: -1482px 0; } +.ic_php_sym { background-position: -1499px 0; } +.ic_s_asc { background-position: -1516px 0; } +.ic_s_asci { background-position: -1533px 0; } +.ic_s_attention, .ic_s_notice { background-position: -1550px 0; } +.ic_s_cancel { background-position: -1567px 0; } +.ic_s_cancel2 { background-position: -1584px 0; } +.ic_s_cog { background-position: -1601px 0; } +.ic_s_error { background-position: -1618px 0; } +.ic_s_error2 { background-position: -1635px 0; width: 11px; height: 11px; } +.ic_s_host { background-position: -1647px 0; } +.ic_s_info { background-position: -1664px 0; } +.ic_s_lang { background-position: -1681px 0; } +.ic_s_loggoff { background-position: -1698px 0; } +.ic_s_okay { background-position: -1715px 0; } +.ic_s_passwd { background-position: -1732px 0; } +.ic_s_really { background-position: -1749px 0; width: 11px; height: 11px; } +.ic_s_reload { background-position: -1761px 0; } +.ic_s_replication { background-position: -1778px 0; } +.ic_s_rights { background-position: -1795px 0; } +.ic_s_sortable { background-position: -1812px 0; } +.ic_s_status { background-position: -1829px 0; } +.ic_s_success { background-position: -1846px 0; } +.ic_s_sync { background-position: -1863px 0; } +.ic_s_tbl { background-position: -1880px 0; } +.ic_s_theme { background-position: -1897px 0; } +.ic_s_vars { background-position: -1914px 0; } +.ic_window-new { background-position: -1931px 0; } + +/* Same as ic_b_help, but applied to place where width=11, height=11 attributes were used */ +.ic_b_help_s { background-position: -340px 0; } + +/* Same as ic_s_sortable */ +img.sortableIcon { background-position: -1812px 0; } + +/* Same as s_asc */ +th.headerSortUp img.sortableIcon { background-position: -1516px 0; } + +/* Same as s_desc */ +th.headerSortDown img.sortableIcon { background-position: 0 0; } + + /******************************************************************************/ /* classes */ div.tools { @@ -555,12 +702,6 @@ img.lightbulb { }
/* leave some space between icons and text */ -.icon, img.footnotemarker { - vertical-align: -3px; - margin-right: 0.3em; - margin-left: 0.3em; -} - img.footnotemarker { display: none; } @@ -622,8 +763,8 @@ div.footnotes { color: #000000; background-color: #ebf8a4; } -h1.success, -div.success { + +h1.success, div.success { border-color: #a2d246; <?php if ($GLOBALS['cfg']['ErrorIconic']) { ?> background-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_success.png); @@ -643,6 +784,7 @@ div.success { color: #000; background-color: #e8eef1; } + h1.notice, div.notice, div.footnotes { @@ -657,6 +799,7 @@ div.footnotes { <?php } ?> <?php } ?> } + .notice h1 { border-color: #ffb10a; } @@ -680,24 +823,23 @@ div.error { <?php } ?> <?php } ?> } + div.error h1 { border-color: #ff0000; }
- - .confirmation { color: #000000; background-color: pink; } -fieldset.confirmation {
+fieldset.confirmation { } -fieldset.confirmation legend {
+fieldset.confirmation legend { } -/* end messageboxes */
+/* end messageboxes */
.tblcomment { font-size: 70%; @@ -802,9 +944,13 @@ form.login label { /* specific elements */
/* topmenu */ -#topmenu a {text-shadow:0px 1px 0px #fff;} +#topmenu a { + text-shadow:0px 1px 0px #fff; +}
-#topmenu .error{background:#eee;border:0px !important;color:#aaa;} +#topmenu .error { + background:#eee;border:0px !important;color:#aaa; +}
ul#topmenu, ul#topmenu2, ul.tabs { font-weight: bold; @@ -831,7 +977,10 @@ ul#topmenu li, ul#topmenu2 li { vertical-align:-3px; }
-#topmenucontainer{background:url(./themes/pmahomme/img/tab_bg.png) repeat-x; border-top:1px solid #aaa;} +#topmenucontainer{ + background:url(./themes/pmahomme/img/tab_bg.png) repeat-x; + border-top:1px solid #aaa; +}
/* default tab styles */ .tabactive { @@ -851,8 +1000,8 @@ ul#topmenu ul a { }
ul#topmenu .submenu { - display: none; - position: relative; + display: none; + position: relative; }
ul#topmenu .shown { @@ -878,7 +1027,6 @@ ul#topmenu li:hover ul, ul#topmenu .submenuhover ul { display: block; font-weight:3em; background:#fff; - }
ul#topmenu ul li { @@ -947,12 +1095,10 @@ ul#topmenu ul a { -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; - }
ul#topmenu ul li:first-child a { border-width: 0; - }
/* enabled hover/active tabs */ @@ -1048,16 +1194,15 @@ div#tablestatistics table { /* END server privileges */
- /* Heading */ #serverinfo { -border-bottom:1px solid #fff; --moz-border-radius: 4px 4px 0 0; --webkit-border-radius: 4px 4px 0 0; -border-radius:4px 4px 0 0; -background:#888; -padding:10px; -text-shadow:0 1px 0 #000000; + border-bottom:1px solid #fff; + -moz-border-radius: 4px 4px 0 0; + -webkit-border-radius: 4px 4px 0 0; + border-radius:4px 4px 0 0; + background:#888; + padding:10px; + text-shadow:0 1px 0 #000000; }
#serverinfo .item { @@ -1163,26 +1308,15 @@ text-shadow:0 1px 0 #000000;
/* serverstatus */
-img.sortableIcon { - width:16px; - height:16px; - float:right; - background-repeat:no-repeat; -} - h3#serverstatusqueries span { font-size:60%; display:inline; }
-th img.sortableIcon, th img.sortableIcon { - background-image:url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_sortable.png); -} -th.headerSortUp img.sortableIcon, th.headerSortUp img.sortableIcon { - background-image:url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_desc.png); -} -th.headerSortDown img.sortableIcon, th.headerSortDown img.sortableIcon { - background-image:url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_asc.png); +img.sortableIcon { + float:right; + background-repeat:no-repeat; + margin:0; }
.buttonlinks { @@ -1288,7 +1422,7 @@ div#logTable { }
div#logTable table { - width:100%; + width:100%; }
.smallIndent { diff --git a/themes/pmahomme/img/iconsprites.png b/themes/pmahomme/img/iconsprites.png new file mode 100644 index 0000000..339dd81 Binary files /dev/null and b/themes/pmahomme/img/iconsprites.png differ diff --git a/themes/pmahomme/img/pause.png b/themes/pmahomme/img/pause.png deleted file mode 100644 index a131617..0000000 Binary files a/themes/pmahomme/img/pause.png and /dev/null differ diff --git a/themes/pmahomme/img/play.png b/themes/pmahomme/img/play.png deleted file mode 100644 index e252606..0000000 Binary files a/themes/pmahomme/img/play.png and /dev/null differ
hooks/post-receive