Translation update done using Pootle.
[phpmyadmin/dkf.git] / libraries / display_create_database.lib.php
blob1f0f1f5de9ced7c5a2f26467943fa850192fdfe3
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays form for creating database (if user has privileges for that)
6 * @version $Id$
7 * @package phpMyAdmin
8 */
9 if (! defined('PHPMYADMIN')) {
10 exit;
13 /**
16 require_once './libraries/check_user_privileges.lib.php';
18 if ($is_create_db_priv) {
19 // The user is allowed to create a db
21 <form method="post" action="db_create.php"><strong>
22 <?php echo '<label for="text_create_db">' . __('Create new database') . '</label>&nbsp;' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
23 <?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
24 <input type="hidden" name="reload" value="1" />
25 <input type="text" name="new_db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" id="text_create_db"/>
26 <?php
27 require_once './libraries/mysql_charsets.lib.php';
28 echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, TRUE, 5);
30 <input type="submit" value="<?php echo __('Create'); ?>" id="buttonGo" />
31 </form>
32 <?php
33 } else {
35 <!-- db creation no privileges message -->
36 <strong><?php echo __('Create new database') . ':&nbsp;' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
37 <?php
38 echo '<span class="noPrivileges">'
39 . ($cfg['ErrorIconic'] ? '<img src="' . $pmaThemeImage . 's_error2.png" alt="" width="11" height="11" hspace="2" border="0" align="middle" />' : '')
40 . '' . __('No Privileges') .'</span>';
41 } // end create db form or message