diff --git a/db_operations.php b/db_operations.php index e4834ca14e..970b24b2ef 100644 --- a/db_operations.php +++ b/db_operations.php @@ -18,6 +18,11 @@ require_once 'libraries/common.inc.php'; require_once 'libraries/mysql_charsets.lib.php'; +/** + * functions implementation for this script + */ +require_once 'libraries/db_operations.lib.php'; + // add a javascript file for jQuery functions to handle Ajax actions $response = PMA_Response::getInstance(); $header = $response->getHeader(); @@ -421,38 +426,9 @@ if (!$is_information_schema) { /** * rename database */ -if ($db != 'mysql') { - ?> -
-
method="post" action="db_operations.php" - onsubmit="return emptyFormElements(this, 'newname')"> - ' . "\n"; + if ($db != 'mysql') { + echo PMA_getHtmlForRenameDatabase(); } - ?> - - - -
- - getImage('b_edit.png'); - } - echo __('Rename database to') . ':'; - ?> - - -
-
- -
-
-
-' + . '
'; + if (isset($_REQUEST['db_collation'])) { + $html_output .= '' . "\n"; + } + $html_output .= '' + . '' + . PMA_generate_common_hidden_inputs($GLOBALS['db']) + . '
' + . ''; + + if ($GLOBALS['cfg']['PropertiesIconic']) { + $html_output .= PMA_CommonFunctions::getInstance()->getImage('b_edit.png'); + } + $html_output .= __('Rename database to') . ':' + . ''; + + $html_output .= '' + . '
' + . '
' + . '' + . '
' + . '
' + . ''; + + return $html_output; +} ?>