table options
This commit is contained in:
@@ -10,6 +10,8 @@ $Source$
|
|||||||
|
|
||||||
2002-04-30 Marc Delisle <lem9@users.sourceforge.net>
|
2002-04-30 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_qbe.php3, try to make it work again
|
* tbl_qbe.php3, try to make it work again
|
||||||
|
* tbl_properties.php3, tbl_properties_table_info.php3,
|
||||||
|
tbl_properties_options.php3: support for 3 MyISAM table options
|
||||||
|
|
||||||
2002-04-30 Alexander M. Turek <rabus@users.sourceforge.net>
|
2002-04-30 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* lang/german.inc.php3: Clarification ($strFlushTable).
|
* lang/german.inc.php3: Clarification ($strFlushTable).
|
||||||
|
@@ -55,6 +55,18 @@ if (isset($submitorderby) && !empty($order_field)) {
|
|||||||
$local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field;
|
$local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field;
|
||||||
$result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
$result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Update table options
|
||||||
|
*/
|
||||||
|
if (isset($submitoptions)) {
|
||||||
|
$local_query = 'ALTER TABLE ' . PMA_backquote($table)
|
||||||
|
. (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0')
|
||||||
|
. (isset($checksum) ? ' checksum=1': ' checksum=0')
|
||||||
|
. (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0');
|
||||||
|
$result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 1. Get table information
|
// 1. Get table information
|
||||||
require('./tbl_properties_table_info.php3');
|
require('./tbl_properties_table_info.php3');
|
||||||
|
@@ -5,9 +5,9 @@
|
|||||||
require('./tbl_properties_common.php3');
|
require('./tbl_properties_common.php3');
|
||||||
require('./tbl_properties_table_info.php3');
|
require('./tbl_properties_table_info.php3');
|
||||||
|
|
||||||
|
echo "<ul>\n";
|
||||||
if (PMA_MYSQL_INT_VERSION >= 32322) {
|
if (PMA_MYSQL_INT_VERSION >= 32322) {
|
||||||
?>
|
?>
|
||||||
<ul>
|
|
||||||
<!-- Table comments -->
|
<!-- Table comments -->
|
||||||
<li>
|
<li>
|
||||||
<form method="post" action="tbl_properties.php3">
|
<form method="post" action="tbl_properties.php3">
|
||||||
@@ -83,6 +83,32 @@ if (PMA_MYSQL_INT_VERSION >= 32322) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
} // end MySQL >= 3.23.22
|
} // end MySQL >= 3.23.22
|
||||||
|
|
||||||
|
if (PMA_MYSQL_INT_VERSION >= 32322) {
|
||||||
|
?>
|
||||||
|
<!-- Table options -->
|
||||||
|
<li>
|
||||||
|
<form method="post" action="tbl_properties.php3">
|
||||||
|
<input type="hidden" name="server" value="<?php echo $server; ?>" />
|
||||||
|
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
|
||||||
|
<input type="hidden" name="db" value="<?php echo $db; ?>" />
|
||||||
|
<input type="hidden" name="table" value="<?php echo $table; ?>" />
|
||||||
|
|
||||||
|
<input type="checkbox" name="pack_keys"
|
||||||
|
<?php echo (isset($pack_keys) && $pack_keys==1) ? ' checked="checked"': ''; ?> />pack_keys <br />
|
||||||
|
|
||||||
|
<input type="checkbox" name="checksum"
|
||||||
|
<?php echo (isset($checksum) && $checksum==1) ? ' checked="checked"': ''; ?> />checksum <br />
|
||||||
|
|
||||||
|
<input type="checkbox" name="delay_key_write"
|
||||||
|
<?php echo (isset($delay_key_write) && $delay_key_write==1) ? ' checked="checked"': ''; ?> />delay_key_write
|
||||||
|
<input type="submit" name="submitoptions" value="<?php echo $strGo; ?>" style="vertical-align: middle" />
|
||||||
|
</form>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</ul>\n";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays the footer
|
* Displays the footer
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user