replaced hardcoded engines dropdown

This commit is contained in:
Alexander M. Turek
2005-01-18 23:21:26 +00:00
parent 542883b8b0
commit 60c531ce04
2 changed files with 6 additions and 13 deletions

View File

@@ -19,8 +19,9 @@ $Source$
* server_engines.php, server_links.php libraries/storage_engines.lib.php:
- Emulation for < MySQL 4.1.2;
- BerkeleyDB version information.
* tbl_properties_operations.php, libraries/storage_engines.lib.php:
Auto-generated engine selection dropdown.
* tbl_properties.inc.php, tbl_properties_operations.php,
libraries/storage_engines.lib.php: Auto-generated engine selection
dropdown.
* header.inc.php, libraries/common.lib.php: Finger pointer for lightbulbs.
2005-01-17 Michael Keck <mkkeck@users.sourceforge.net>

View File

@@ -7,8 +7,9 @@ require_once('./libraries/common.lib.php');
PMA_checkParameters(array('db','table','action','num_fields'));
// Get available character sets
// Get available character sets and storage engines
require_once('./libraries/mysql_charsets.lib.php');
require_once('./libraries/storage_engines.lib.php');
?>
<?php if ($cfg['CtrlArrowsMoving']) { ?>
@@ -597,16 +598,7 @@ if ($action == 'tbl_create.php') {
?>
<td width="25">&nbsp;</td>
<td>
<select name="tbl_type">
<option <?php echo (isset($tbl_type) && $tbl_type == 'Default' ? 'selected="checked"' : ''); ?> value="Default"><?php echo $strDefault; ?></option>
<option <?php echo (isset($tbl_type) && $tbl_type == 'MYISAM' ? 'selected="checked"' : ''); ?> value="MYISAM">MyISAM</option>
<option <?php echo (isset($tbl_type) && $tbl_type == 'HEAP' ? 'selected="checked"' : ''); ?> value="HEAP">Heap</option>
<option <?php echo (isset($tbl_type) && $tbl_type == 'MERGE' ? 'selected="checked"' : ''); ?> value="MERGE">Merge</option>
<?php if (isset($tbl_bdb)) { ?><option <?php echo (isset($tbl_type) && $tbl_type == 'BDB' ? 'selected="checked"' : ''); ?> value="BDB">Berkeley DB</option><?php } ?>
<?php if (isset($tbl_gemini)) { ?><option <?php echo (isset($tbl_type) && $tbl_type == 'GEMINI' ? 'selected="checked"' : ''); ?> value="GEMINI">Gemini</option><?php } ?>
<?php if (isset($tbl_innodb)) { ?><option <?php echo (isset($tbl_type) && $tbl_type == 'INNO DB' ? 'selected="checked"' : ''); ?> value="InnoDB">INNO DB</option><?php } ?>
<?php if (isset($tbl_isam)) { ?><option <?php echo (isset($tbl_type) && $tbl_type == 'ISAM' ? 'selected="checked"' : ''); ?> value="ISAM">ISAM</option><?php } ?>
</select>
<?php echo PMA_generateEnginesDropdown('tbl_type', NULL, (isset($tbl_type) ? $tbl_type : NULL), FALSE, 3); ?>
</td>
<?php
if (PMA_MYSQL_INT_VERSION >= 40100) {