2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays form for creating database (if user has privileges for that)
8 if (! defined('PHPMYADMIN')) {
15 require_once './libraries/check_user_privileges.lib.php';
17 if ($is_create_db_priv) {
18 // The user is allowed to create a db
20 <form method
="post" action
="db_create.php" id
="create_database_form" ><strong
>
21 <?php
echo '<label for="text_create_db">' . __('Create new database') . '</label> ' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?
></strong
><br
/>
22 <?php
echo PMA_generate_common_hidden_inputs('', '', 5); ?
>
23 <input type
="hidden" name
="reload" value
="1" />
24 <input type
="text" name
="new_db" value
="<?php echo $db_to_create; ?>" maxlength
="64" class="textfield" id
="text_create_db"/>
26 require_once './libraries/mysql_charsets.lib.php';
27 echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION
, 'db_collation', null, null, TRUE, 5);
29 <input type
="submit" value
="<?php echo __('Create'); ?>" id
="buttonGo" />
34 <!-- db creation no privileges message
-->
35 <strong
><?php
echo __('Create new database') . ': ' . PMA_showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?
></strong
><br
/>
37 echo '<span class="noPrivileges">'
38 . ($cfg['ErrorIconic'] ?
'<img src="' . $pmaThemeImage . 's_error2.png" alt="" width="11" height="11" hspace="2" border="0" align="middle" />' : '')
39 . '' . __('No Privileges') .'</span>';
40 } // end create db form or message