From be14efaa75e99b821f862110a92e56c6b71d0c99 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 24 Apr 2011 16:33:24 +0530 Subject: [PATCH] Database operations tab made more compact. Table operations altered to use classes for styling. --- db_operations.php | 25 +++++++++++++++++-------- tbl_operations.php | 18 +++++++++--------- themes/original/css/theme_right.css.php | 21 +++------------------ themes/pmahomme/css/theme_right.css.php | 25 +++++-------------------- 4 files changed, 34 insertions(+), 55 deletions(-) diff --git a/db_operations.php b/db_operations.php index 46591bc31700..e49ddcb0d9fc 100644 --- a/db_operations.php +++ b/db_operations.php @@ -349,14 +349,17 @@ } if (!$is_information_schema) { - - require './libraries/display_create_table.lib.php'; - + ?> +
+ +
+ +
@@ -371,6 +374,7 @@
+
+
method="post" action="db_operations.php" onsubmit="return emptyFormElements(this, 'newname')"> " />
+
+
+
+
method="post" action="db_operations.php" onsubmit="return emptyFormElements(this, 'newname')"> " />
- +
' . "\n" . '' . "\n" - . '
' . "\n"; + . '' . "\n"; if ($num_tables > 0 && !$cfgRelation['allworks'] && $cfg['PmaNoRelation_DisableWarning'] == false) { @@ -581,12 +590,12 @@ /* * Export Relational Schema View */ - echo '
'; + echo '
'; } // end if /** diff --git a/tbl_operations.php b/tbl_operations.php index 3c8b5dd45bce..04f1165fd18d 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -253,7 +253,7 @@ */ ?> -
+
@@ -279,7 +279,7 @@
-
+
@@ -339,7 +339,7 @@ ?> -
+
@@ -518,7 +518,7 @@
-
+
@@ -581,7 +581,7 @@
-
+
@@ -668,7 +668,7 @@
-
+
@@ -699,7 +699,7 @@ 'reload' => '1', 'purge' => '1', 'message_to_show' => sprintf(($tbl_is_view ? __('View %s has been dropped') : __('Table %s has been dropped')), htmlspecialchars($table)), - // table name is needed to avoid running + // table name is needed to avoid running // PMA_relationsCleanupDatabase() on the whole db later 'table' => $GLOBALS['table'], )); @@ -722,7 +722,7 @@ // show the Partition maintenance section only if we detect a partition if (! is_null($partition_names[0])) { ?> -
+
@@ -777,7 +777,7 @@ if ($foreign) { ?> -
+
    diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 9f944e84c4c9..27d931bb67c8 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -1251,29 +1251,14 @@ function PMA_ieFilter($start_color, $end_color) float: ; } -#div_table_order { +.operations_half_width { min-width: 48%; float: ; } -#div_table_rename { - min-width: 48%; - float: ; -} - -#div_table_copy, -#div_partition_maintenance, -#div_referential_integrity, -#div_table_removal, -#div_table_maintenance { - min-width: 48%; - float: ; -} - -#div_table_options { +.operations_full_width { + width: 100%; clear: both; - min-width: 48%; - float: ; } #qbe_div_table_list { diff --git a/themes/pmahomme/css/theme_right.css.php b/themes/pmahomme/css/theme_right.css.php index 2107354a044c..4d18832f6543 100644 --- a/themes/pmahomme/css/theme_right.css.php +++ b/themes/pmahomme/css/theme_right.css.php @@ -599,11 +599,11 @@ function PMA_ieFilter($start_color, $end_color) padding: 0.3em; - + -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; - + -moz-box-shadow: 0 1px 1px #fff inset; -webkit-box-shadow: 0 1px 1px #fff inset; box-shadow: 0 1px 1px #fff inset; @@ -1546,29 +1546,14 @@ function PMA_ieFilter($start_color, $end_color) float: ; } -#div_table_order { +.operations_half_width { min-width: 48%; float: ; } -#div_table_rename { - min-width: 48%; - float: ; -} - -#div_table_copy, -#div_partition_maintenance, -#div_referential_integrity, -#div_table_removal, -#div_table_maintenance { - min-width: 48%; - float: ; -} - -#div_table_options { +.operations_full_width { + width: 100%; clear: both; - min-width: 48%; - float: ; } #qbe_div_table_list {