Show box for creating database here (RFE #869814).

This commit is contained in:
Michal Čihař
2004-10-21 16:49:34 +00:00
parent e08ffcaaaf
commit 8ca90511d6
2 changed files with 21 additions and 0 deletions

View File

@@ -391,6 +391,26 @@ if (count($statistics) > 0) {
echo $strNoDatabases . "\n";
}
/**
* Create new database.
*/
?>
<form method="post" action="db_create.php"><b>
<?php echo $strCreateNewDatabase . '&nbsp;' . PMA_showMySQLDocu('Reference', 'CREATE_DATABASE'); ?></b><br />
<?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
<input type="hidden" name="reload" value="1" />
<input type="text" name="db" value="" maxlength="64" class="textfield" />
<?php
if (PMA_MYSQL_INT_VERSION >= 40101) {
require_once('./libraries/mysql_charsets.lib.php');
echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', NULL, NULL, TRUE, 5);
}
?>
<input type="submit" value="<?php echo $strCreate; ?>" id="buttonGo" />
</form>
<?php
/**
* Sends the footer