The branch, master has been updated
via 3db0cb1a18466e9daa766b5f1dfa4a1f23abe57d (commit)
via ef2e103adb48b20dce0422de02b7dd2aa0fae22e (commit)
via b8d454f851b4b594e2ae7488ff36a8e0f5263c80 (commit)
via 2b5a70cd4881ecd3e36c0c9bd3662338465d4223 (commit)
via 2a24125ecc3778dde653a62748ae42fca3f28ac9 (commit)
via 5d5f4ac9086f600c859c35adf7f837088031eca5 (commit)
via ec54aacbd13ceff4d00aaebc5681fab6c1c7f614 (commit)
via 19e69ed770a8e77ae7670376cf78de7bee9d0a31 (commit)
via d17814f463678cec54e6d9f469eb8f273668264e (commit)
via b1c60c7d19d88c16b6ea591b2219a0793c2d961f (commit)
via 1431d02c8f2b3b45f2b4640bb1ef887ae2e47a0f (commit)
from 20f6ee84d699e000367a9a0c7f975eb4373f708b (commit)
- Log -----------------------------------------------------------------
commit 3db0cb1a18466e9daa766b5f1dfa4a1f23abe57d
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Fri Sep 30 19:52:25 2011 +0100
Deleted old sprites
commit ef2e103adb48b20dce0422de02b7dd2aa0fae22e
Merge: 20f6ee8 b8d454f
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Fri Sep 30 19:51:05 2011 +0100
Merge branch 'sprites'
commit b8d454f851b4b594e2ae7488ff36a8e0f5263c80
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Fri Sep 30 16:44:06 2011 +0100
Fixed unit tests
commit 2b5a70cd4881ecd3e36c0c9bd3662338465d4223
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Tue Sep 27 16:32:51 2011 +0100
More readable generation of CSS code for sprites
commit 2a24125ecc3778dde653a62748ae42fca3f28ac9
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Tue Sep 27 16:29:18 2011 +0100
Prevent the CSS background attribute from being overridden for the 'icon' class
commit 5d5f4ac9086f600c859c35adf7f837088031eca5
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Tue Sep 27 16:11:02 2011 +0100
JS syntax error
commit ec54aacbd13ceff4d00aaebc5681fab6c1c7f614
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Mon Sep 26 21:19:09 2011 +0100
Fix some closure-compiler errors
commit 19e69ed770a8e77ae7670376cf78de7bee9d0a31
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Mon Sep 26 21:10:11 2011 +0100
Changed the way the attributes are fetched from the object returned by PMA_getImage() in JS
Stops the 'closure-compiler' from erroring out
commit d17814f463678cec54e6d9f469eb8f273668264e
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Mon Sep 26 20:54:59 2011 +0100
Replaced use of hard coded images with the sprite-aware PMA_getImage() functions (both PHP and JS).
commit b1c60c7d19d88c16b6ea591b2219a0793c2d961f
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Mon Sep 26 20:47:22 2011 +0100
Regenerated the sprites
commit 1431d02c8f2b3b45f2b4640bb1ef887ae2e47a0f
Author: Rouslan Placella <rouslan(a)placella.com>
Date: Mon Sep 26 20:46:28 2011 +0100
Made PMA aware of the presence of sprites + added a script for generating sprites from icons
-----------------------------------------------------------------------
Summary of changes:
db_operations.php | 10 +-
db_structure.php | 14 +-
db_tracking.php | 2 +-
js/db_search.js | 2 +-
js/db_structure.js | 2 +-
js/functions.js | 2 +-
js/get_image.js.php | 130 +++++++++++++++++
js/navigation.js | 8 +-
js/pmd/history.js | 6 +-
js/server_status.js | 2 +-
js/server_status_monitor.js | 22 ++--
js/server_synchronize.js | 4 +-
js/server_variables.js | 8 +-
js/tbl_select.js | 2 +-
libraries/Theme.class.php | 12 ++
libraries/auth/cookie.auth.lib.php | 6 +-
libraries/common.lib.php | 114 +++++++++++----
libraries/config/FormDisplay.tpl.php | 12 +-
libraries/db_links.inc.php | 26 ++--
libraries/db_structure.lib.php | 14 +-
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 | 14 +-
libraries/footer.inc.php | 3 +-
libraries/header.inc.php | 26 ++--
libraries/header_scripts.inc.php | 2 +
libraries/navigation_header.inc.php | 14 +--
libraries/schema/User_Schema.class.php | 2 +-
libraries/server_links.inc.php | 28 ++--
libraries/sql_query_form.lib.php | 3 +-
libraries/tbl_links.inc.php | 22 ++--
libraries/user_preferences.inc.php | 12 +-
navigation.php | 20 ++--
querywindow.php | 6 +-
scripts/create-release.sh | 5 +
scripts/generate-sprites | 140 ++++++++++++++++++
server_binlog.php | 2 +-
server_collations.php | 2 +-
server_databases.php | 6 +-
server_engines.php | 6 +-
server_replication.php | 2 +-
server_status.php | 22 ++--
server_synchronize.php | 2 +-
server_variables.php | 2 +-
tbl_create.php | 6 +-
tbl_structure.php | 4 +-
tbl_tracking.php | 2 +-
.../common/PMA_buildActionTitles_test.php | 2 +
test/libraries/common/PMA_getIcon_test.php | 5 +
test/libraries/common/PMA_showDocu_test.php | 14 ++-
test/libraries/common/PMA_showPHPDocu_test.php | 12 ++-
themes/original/css/theme_left.css.php | 31 +----
themes/original/css/theme_right.css.php | 140 ------------------
themes/original/img/iconsprites.png | Bin 16363 -> 0 bytes
themes/original/img/more.png | Bin 119 -> 117 bytes
themes/original/img/sprites.png | Bin 0 -> 23875 bytes
themes/original/sprites.lib.php | 126 ++++++++++++++++
themes/pmahomme/css/theme_left.css.php | 26 ----
themes/pmahomme/css/theme_right.css.php | 152 +-------------------
themes/pmahomme/img/iconsprites.png | Bin 35190 -> 0 bytes
themes/pmahomme/img/more.png | Bin 119 -> 117 bytes
themes/pmahomme/img/sprites.png | Bin 0 -> 57711 bytes
themes/pmahomme/sprites.lib.php | 147 +++++++++++++++++++
themes/sprites.css.php | 81 +++++++++++
66 files changed, 939 insertions(+), 556 deletions(-)
create mode 100644 js/get_image.js.php
create mode 100755 scripts/generate-sprites
delete mode 100644 themes/original/img/iconsprites.png
create mode 100644 themes/original/img/sprites.png
create mode 100644 themes/original/sprites.lib.php
delete mode 100644 themes/pmahomme/img/iconsprites.png
create mode 100644 themes/pmahomme/img/sprites.png
create mode 100644 themes/pmahomme/sprites.lib.php
create mode 100644 themes/sprites.css.php
diff --git a/db_operations.php b/db_operations.php
index 0bfedb0..fa0f108 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -401,7 +401,7 @@ if ($db != 'mysql') {
<legend>
<?php
if ($cfg['PropertiesIconic']) {
- echo '<img class="icon ic_b_edit" src="themes/dot.gif" alt="" />';
+ echo PMA_getImage('b_edit.png');
}
echo __('Rename database to') . ':';
?>
@@ -427,7 +427,7 @@ if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase'])
<fieldset class="caution">
<legend><?php
if ($cfg['PropertiesIconic']) {
- echo '<img class="icon ic_b_deltbl" src="themes/dot.gif" alt="" />';
+ echo PMA_getImage('b_deltbl.png');
}
echo __('Remove database');
?></legend>
@@ -473,7 +473,7 @@ echo __('Remove database');
<legend>
<?php
if ($cfg['PropertiesIconic']) {
- echo '<img class="icon ic_b_edit" src="themes/dot.gif" alt="" />';
+ echo PMA_getImage('b_edit.png');
}
echo __('Copy database to') . ':';
$drop_clause = 'DROP TABLE / DROP VIEW';
@@ -537,7 +537,7 @@ echo __('Remove database');
. '<fieldset>' . "\n"
. ' <legend>';
if ($cfg['PropertiesIconic']) {
- echo '<img class="icon ic_s_asci" src="themes/dot.gif" alt="" />';
+ echo PMA_getImage('s_asci.png');
}
echo ' <label for="select_db_collation">' . __('Collation') . ':</label>' . "\n"
. ' </legend>' . "\n"
@@ -584,7 +584,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 ic_b_edit" src="themes/dot.gif" alt="" />';
+ echo PMA_getImage('b_edit.png');
}
echo __('Edit or export relational schema') . '</a></fieldset></div>';
} // end if
diff --git a/db_structure.php b/db_structure.php
index 3926eae..faa5e02 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -307,12 +307,14 @@ foreach ($tables as $keyname => $each_table) {
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 ic_eye" src="themes/dot.gif" alt="'
- . __('Tracking is active.') . '" title="' . __('Tracking is active.') . '" /></a>';
+ . '&table=' . $truename . '">'
+ . PMA_getImage('eye.png', __('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 ic_eye" src="themes/dot.gif" alt="'
- . __('Tracking is not active.') . '" title="' . __('Tracking is not active.') . '" /></a>';
+ . '&table=' . $truename . '">'
+ . PMA_getImage('eye.png', __('Tracking is not active.'))
+ . '</a>';
}
}
@@ -377,10 +379,10 @@ foreach ($tables as $keyname => $each_table) {
</th>
<?php if ($server_slave_status) { ?><td align="center"><?php
echo $ignored
- ? ' <img class="icon ic_s_cancel" src="themes/dot.gif" alt ) ng is not active.') . '" /></a>'; r�Wcd+ @�{O� ��{O� uWcd+ �:Xcd+ 5xcd+ �(tdd+ ��{O� �@�dd+ ��{O� p�{O� k0Wcd+ 6 � �! �! @�{O� ��{O� x�sdd+ ��{O� �Wcd+ �0Wcd+ @�{O� `Wcd+ �{O� ���dd+ uWcd+ ��dd+ ���dd+ ���dd+ �:Xcd+ x�sdd+ ��{O� p�{O� k0Wcd+ �! �! @�{O� ��{O� H�Sdd+ ��{O� �Wcd+ �0Wcd+ @�{O� `Wcd+ �{O� p�{O� h�{O� 8;xcd+ �p� ��{O� uWcd+ �:Xcd+ ��{O� P�{O� k0Wcd+ G H I J K M N O P @�{O� ��{O� He*dd+ �{O� �Wcd+ �0Wcd+ @�{O� 0��dd+ uWcd+ �sdd+ ��dd+ ��dd+ ���dd+ ���dd+ �:Xcd+ He*dd+ �{O� `�{O� k0Wcd+ 8e*dd+ �{O� ��{O� k0Wcd+ (e*dd+ �{O� ��{O� k0Wcd+ e*dd+ �{O� ��{O� k0Wcd+ ���dd+ uWcd+ ���dd+ p�{O� ��dd+ eWcd+ ���dd+ ��{O� y�dd+ eWcd+ ��dd+ ��{O� Z�dd+ eWcd+ ؔdd+ �sdd+ ��dd+ ��dd+ ��sdd+ ���dd+ ���dd+ �:Xcd+ 8;xcd+ ]�cd+ ��{O� p+dd+ p�{O� @�{O� k0Wcd+ 5 6 7 8 : <