Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / phpmyadmin / libraries / display_create_database.lib.php
blob228477c1fabec76dfe12cf0ff05383fe80e834d2
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 * @package PhpMyAdmin
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
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" class="ajax"><strong>
21 <?php echo '<label for="text_create_db">'
22 . PMA_Util::getImage('b_newdb.png')
23 . " " . __('Create database')
24 . '</label>&nbsp;'
25 . PMA_Util::showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
26 <?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
27 <input type="hidden" name="reload" value="1" />
28 <input type="text" name="new_db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" id="text_create_db"/>
29 <?php
30 include_once './libraries/mysql_charsets.lib.php';
31 echo PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'db_collation', null, null, true, 5);
33 if (! empty($dbstats)) {
34 echo '<input type="hidden" name="dbstats" value="1" />';
37 <input type="submit" value="<?php echo __('Create'); ?>" id="buttonGo" />
38 </form>
39 <?php
40 } else {
42 <!-- db creation no privileges message -->
43 <strong><?php echo __('Create database') . ':&nbsp;' . PMA_Util::showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
44 <?php
45 echo '<span class="noPrivileges">'
46 . PMA_Util::getImage('s_error2.png', '', array('hspace' => 2, 'border' => 0, 'align' => 'middle'))
47 . '' . __('No Privileges') .'</span>';
48 } // end create db form or message