From c64b77abe142b8d1cf369ca2c02721af272ce0de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Mon, 16 Nov 2020 16:36:16 -0300 Subject: [PATCH] Move HTML's table CSS to the pma-table class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- js/src/designer/history.js | 2 +- js/src/functions.js | 6 +- js/src/server/status/monitor.js | 6 +- libraries/classes/BrowseForeigners.php | 2 +- libraries/classes/Database/Routines.php | 10 +-- libraries/classes/Database/Triggers.php | 2 +- libraries/classes/Engines/Innodb.php | 4 +- libraries/classes/InsertEdit.php | 4 +- .../Plugins/Auth/AuthenticationConfig.php | 2 +- .../classes/Plugins/Export/ExportHtmlword.php | 8 +- libraries/classes/Relation.php | 2 +- libraries/classes/StorageEngine.php | 2 +- .../column_definitions_form.twig | 4 +- templates/columns_definitions/partitions.twig | 4 +- .../table_fields_definitions.twig | 2 +- .../config/form_display/fieldset_top.twig | 2 +- templates/database/central_columns/edit.twig | 2 +- templates/database/central_columns/main.twig | 8 +- templates/database/data_dictionary/index.twig | 4 +- .../database/designer/database_tables.twig | 2 +- templates/database/designer/main.twig | 30 +++---- templates/database/designer/page_save_as.twig | 2 +- templates/database/events/editor_form.twig | 2 +- templates/database/events/index.twig | 4 +- templates/database/export/index.twig | 2 +- .../database/multi_table_query/form.twig | 2 +- templates/database/privileges/index.twig | 2 +- .../database/qbe/ins_del_and_or_cell.twig | 2 +- templates/database/qbe/selection_form.twig | 2 +- templates/database/routines/index.twig | 2 +- templates/database/search/results.twig | 2 +- templates/database/structure/add_prefix.twig | 2 +- .../structure/change_prefix_form.twig | 2 +- templates/database/structure/show_create.twig | 4 +- .../database/structure/table_header.twig | 2 +- templates/database/tracking/tables.twig | 6 +- templates/database/triggers/list.twig | 2 +- templates/display/results/table.twig | 4 +- templates/export.twig | 4 +- templates/indexes.twig | 2 +- templates/navigation/item_unhide_dialog.twig | 2 +- templates/server/binlog/index.twig | 2 +- templates/server/collations/index.twig | 2 +- templates/server/databases/index.twig | 2 +- templates/server/engines/index.twig | 2 +- templates/server/plugins/index.twig | 2 +- .../server/privileges/change_password.twig | 2 +- templates/server/privileges/initials_row.twig | 2 +- .../server/privileges/privileges_summary.twig | 2 +- .../server/privileges/users_overview.twig | 2 +- .../replication/master_replication.twig | 2 +- .../server/replication/status_table.twig | 2 +- templates/server/status/monitor/index.twig | 2 +- templates/server/status/processes/list.twig | 2 +- templates/server/status/queries/index.twig | 2 +- templates/server/status/status/index.twig | 4 +- templates/server/status/variables/index.twig | 2 +- templates/server/user_groups/user_groups.twig | 2 +- .../server/user_groups/user_listings.twig | 2 +- templates/server/variables/index.twig | 2 +- templates/setup/home/index.twig | 8 +- templates/sql/profiling_chart.twig | 4 +- .../table/find_replace/replace_preview.twig | 2 +- templates/table/index_form.twig | 2 +- templates/table/maintenance/checksum.twig | 2 +- templates/table/privileges/index.twig | 2 +- templates/table/relation/common_form.twig | 4 +- templates/table/search/index.twig | 2 +- .../table/structure/display_partitions.twig | 2 +- .../table/structure/display_structure.twig | 4 +- .../table/structure/display_table_stats.twig | 4 +- templates/table/tracking/main.twig | 2 +- templates/table/tracking/report_table.twig | 2 +- .../tracking/structure_snapshot_columns.twig | 2 +- .../tracking/structure_snapshot_indexes.twig | 2 +- templates/table/zoom_search/index.twig | 4 +- templates/table/zoom_search/result_form.twig | 2 +- templates/transformation_overview.twig | 4 +- templates/view_create.twig | 2 +- themes/bootstrap/scss/_common.scss | 74 ++++++++-------- themes/metro/scss/_common.scss | 60 ++++++------- themes/original/scss/_common.scss | 62 +++++++------- themes/pmahomme/scss/_common.scss | 84 +++++++++---------- 83 files changed, 268 insertions(+), 268 deletions(-) diff --git a/js/src/designer/history.js b/js/src/designer/history.js index 30f80dc7be..2b9d320152 100644 --- a/js/src/designer/history.js +++ b/js/src/designer/history.js @@ -94,7 +94,7 @@ DesignerHistory.display = function (init, finit) { str += '

' + temp + '

'; str += '
\n'; while ((historyArray[i].getTab()) === temp) { // + '.' + historyArray[i].getObjNo()) === temp) { - str += '
'; + str += '
'; str += ''; diff --git a/js/src/functions.js b/js/src/functions.js index 6f412e8ff0..2f207f5fb3 100644 --- a/js/src/functions.js +++ b/js/src/functions.js @@ -3503,9 +3503,9 @@ AJAX.registerOnload('functions.js', function () { '' + title + '' + '

' + Functions.getImage('s_notice') + Messages.enum_hint + '

' + - '
'; if (historyArray[i].getAndOr()) { str += '
' + fields + '
' + + '' + fields + '
' + '
' + - '
' + + '
' + '
' + '
' + '
' + '
' + searchIn + - '' + fields + '
' + + '' + fields + '
' + '
' + seeMore + '
'; diff --git a/js/src/server/status/monitor.js b/js/src/server/status/monitor.js index 2d94db414d..3f8ebb2ce7 100644 --- a/js/src/server/status/monitor.js +++ b/js/src/server/status/monitor.js @@ -1939,7 +1939,7 @@ AJAX.registerOnload('server/status/monitor.js', function () { function buildLogTable (data, groupInserts) { var rows = data.rows; var cols = []; - var $table = $('
'); + var $table = $('
'); var $tBody; var $tRow; var $tCell; @@ -2092,7 +2092,7 @@ AJAX.registerOnload('server/status/monitor.js', function () { var totalTime = 0; // Float sux, I'll use table :( $('#queryAnalyzerDialog').find('div.placeHolder') - .html('
'); + .html('
'); var explain = '' + Messages.strExplainOutput + ' ' + $('#explain_docu').html(); if (data.explain.length > 1) { @@ -2137,7 +2137,7 @@ AJAX.registerOnload('server/status/monitor.js', function () { if (data.profiling) { var chartData = []; - var numberTable = ''; + var numberTable = '
' + Messages.strStatus + '' + Messages.strTime + '
'; var duration; var otherTime = 0; diff --git a/libraries/classes/BrowseForeigners.php b/libraries/classes/BrowseForeigners.php index 8ccbeb140b..c865588d30 100644 --- a/libraries/classes/BrowseForeigners.php +++ b/libraries/classes/BrowseForeigners.php @@ -208,7 +208,7 @@ class BrowseForeigners . '' . ''; - $output .= '
' + Messages.strStatus + '' + Messages.strTime + '
'; + $output .= '
'; if (! is_array($foreignData['disp_row'])) { return $output . '' diff --git a/libraries/classes/Database/Routines.php b/libraries/classes/Database/Routines.php index 2dfeb5e7f0..6e212ef335 100644 --- a/libraries/classes/Database/Routines.php +++ b/libraries/classes/Database/Routines.php @@ -839,7 +839,7 @@ class Routines $retval .= Url::getHiddenInputs($db) . "\n"; $retval .= "
\n"; $retval .= '' . __('Details') . "\n"; - $retval .= "
\n"; + $retval .= "
\n"; $retval .= "\n"; $retval .= ' \n"; $retval .= "
' . __('Routine name') . "\n"; $retval .= " \n"; // parameter handling start - $retval .= " \n"; + $retval .= "
\n"; $retval .= " \n"; $retval .= " \n"; $retval .= " \n"; @@ -1446,7 +1446,7 @@ class Routines $num_rows = $this->dbi->numRows($result); if (($result !== false) && ($num_rows > 0)) { - $output .= '
'; + $output .= '
'; foreach ($this->dbi->getFieldsMeta($result) as $field) { $output .= '
'; $output .= htmlspecialchars($field->name); @@ -1642,13 +1642,13 @@ class Routines $retval .= "
\n"; if (! $this->response->isAjax()) { $retval .= '' . $routine['item_name'] . "\n"; - $retval .= "\n"; + $retval .= "
\n"; $retval .= "\n"; } else { $retval .= '' . __('Routine parameters') . "\n"; - $retval .= "
\n"; $retval .= __('Routine parameters'); $retval .= "
\n"; + $retval .= "
\n"; } $retval .= "\n"; $retval .= '\n"; diff --git a/libraries/classes/Database/Triggers.php b/libraries/classes/Database/Triggers.php index 168da52a94..9f4564e57a 100644 --- a/libraries/classes/Database/Triggers.php +++ b/libraries/classes/Database/Triggers.php @@ -387,7 +387,7 @@ class Triggers $retval .= Url::getHiddenInputs($db, $table) . "\n"; $retval .= "
\n"; $retval .= '' . __('Details') . "\n"; - $retval .= "
' . __('Name') . "
\n"; + $retval .= "
\n"; $retval .= "\n"; $retval .= ' \n"; $retval .= "
' . __('Trigger name') . "fetchResult($sql, 0, 1); - $output = '' . "\n" + $output = '
' . "\n" . ' ' . "\n" @@ -218,7 +218,7 @@ class Innodb extends StorageEngine $output .= ' ' . "\n" . '
' . "\n" . ' ' . __('Buffer Pool Usage') . "\n" . '
' . "\n\n" - . '' . "\n" + . '
' . "\n" . ' ' . "\n" diff --git a/libraries/classes/InsertEdit.php b/libraries/classes/InsertEdit.php index b183067b83..cd0cb62c62 100644 --- a/libraries/classes/InsertEdit.php +++ b/libraries/classes/InsertEdit.php @@ -1839,7 +1839,7 @@ class InsertEdit $found_unique_key ) { $html_output = '
' - . '
' . "\n" . ' ' . __('Buffer Pool Activity') . "\n" . '
' + . '
' . '' . '
' . $this->getSubmitTypeDropDown($where_clause, $tabindex, $tabindex_for_value) @@ -1990,7 +1990,7 @@ class InsertEdit private function getHeadAndFootOfInsertRowTable(array $url_params) { $html_output = '
' - . '' + . '
' . '' . '' . ''; diff --git a/libraries/classes/Plugins/Auth/AuthenticationConfig.php b/libraries/classes/Plugins/Auth/AuthenticationConfig.php index 8a65c4ede4..92bf7c089e 100644 --- a/libraries/classes/Plugins/Auth/AuthenticationConfig.php +++ b/libraries/classes/Plugins/Auth/AuthenticationConfig.php @@ -95,7 +95,7 @@ class AuthenticationConfig extends AuthenticationPlugin echo '
-
' . __('Column') . '
+
'; if (isset($GLOBALS['allowDeny_forbidden']) diff --git a/libraries/classes/Plugins/Export/ExportHtmlword.php b/libraries/classes/Plugins/Export/ExportHtmlword.php index c8963e835e..8c4de40aa9 100644 --- a/libraries/classes/Plugins/Export/ExportHtmlword.php +++ b/libraries/classes/Plugins/Export/ExportHtmlword.php @@ -211,7 +211,7 @@ class ExportHtmlword extends ExportPlugin return false; } if (! $this->export->outputHandler( - '' + '
' ) ) { return false; @@ -283,7 +283,7 @@ class ExportHtmlword extends ExportPlugin { global $dbi; - $schema_insert = '
' + $schema_insert = '
' . '' . '