home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / tbl_properties_operations.php < prev    next >
Encoding:
PHP Script  |  2004-01-04  |  21.5 KB  |  513 lines

  1. <?php
  2. /* $Id: tbl_properties_operations.php,v 2.6 2004/01/05 13:29:09 rabus Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5.  
  6. /**
  7.  * Runs common work
  8.  */
  9. require('./tbl_properties_common.php');
  10. //$err_url   = 'tbl_properties_operations.php' . $err_url;
  11. $url_query .= '&goto=tbl_properties_operations.php&back=tbl_properties_operations.php';
  12.  
  13.  
  14. /**
  15.  * Gets relation settings
  16.  */
  17. require_once('./libraries/relation.lib.php');
  18. $cfgRelation = PMA_getRelationsParam();
  19.  
  20. /**
  21.  * Gets available MySQL charsets
  22.  */
  23. require_once('./libraries/mysql_charsets.lib.php');
  24.  
  25. /**
  26.  * Updates table comment, type and options if required
  27.  */
  28. if (isset($submitcomment)) {
  29.     if (empty($prev_comment) || urldecode($prev_comment) != $comment) {
  30.         $sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' COMMENT = \'' . PMA_sqlAddslashes($comment) . '\'';
  31.         $result    = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $err_url);
  32.         $message   = $strSuccess;
  33.     }
  34. }
  35. if (isset($submittype)) {
  36.     $sql_query     = 'ALTER TABLE ' . PMA_backquote($table) . ' TYPE = ' . $tbl_type;
  37.     $result        = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $err_url);
  38.     $message       = $strSuccess;
  39. }
  40. if (isset($submitcharset)) {
  41.     $sql_query     = 'ALTER TABLE ' . PMA_backquote($table) . ' DEFAULT CHARACTER SET = ' . $tbl_charset;
  42.     $result        = PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query, '', $err_url);
  43.     $message       = $strSuccess;
  44. }
  45. if (isset($submitoptions)) {
  46.     $sql_query     = 'ALTER TABLE ' . PMA_backquote($table)
  47.                    . (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0')
  48.                    . (isset($checksum) ? ' checksum=1': ' checksum=0')
  49.                    . (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0')
  50.                    . (isset($auto_increment) ? ' auto_increment=' . PMA_sqlAddslashes($auto_increment) : '');
  51.     $result        = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $err_url);
  52.     $message       = $strSuccess;
  53. }
  54.  
  55. // Displays a message if a query had been submitted
  56. if (isset($message)) {
  57.     PMA_showMessage($message);
  58. }
  59.  
  60.  
  61.  
  62. /**
  63.  * Reordering the table has been requested by the user
  64.  */
  65. if (isset($submitorderby) && !empty($order_field)) {
  66.     $sql_query   = 'ALTER TABLE ' . PMA_backquote($table)
  67.                  . ' ORDER BY ' . PMA_backquote(urldecode($order_field));
  68.     $result      = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $err_url);
  69.     PMA_showMessage($strSuccess);
  70. } // end if
  71.  
  72.  
  73. /**
  74.  * Gets tables informations and displays top links
  75.  */
  76. require('./tbl_properties_table_info.php');
  77.  
  78.  
  79. /**
  80.  * Get columns names
  81.  */
  82. $local_query = 'SHOW COLUMNS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db);
  83. $result      = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url);
  84. for ($i = 0; $row = PMA_mysql_fetch_array($result); $i++) {
  85.         $columns[$i] = $row['Field'];
  86. }
  87. mysql_free_result($result);
  88.  
  89.  
  90. /**
  91.  * Displays the page
  92.  */
  93. ?>
  94. <ul>
  95.  
  96. <?php
  97. if (PMA_MYSQL_INT_VERSION >= 32334) {
  98.     ?>
  99.     <!-- Order the table -->
  100.     <li>
  101.         <form method="post" action="tbl_properties_operations.php">
  102.             <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  103.             <?php echo $strAlterOrderBy; ?> :
  104.             <select name="order_field" style="vertical-align: middle">
  105.     <?php
  106.     echo "\n";
  107.     foreach($columns AS $junk => $fieldname) {
  108.         echo '                <option value="' . htmlspecialchars($fieldname) . '">' . htmlspecialchars($fieldname) . '</option>' . "\n";
  109.     }
  110.     unset($columns);
  111.     ?>
  112.             </select>
  113.             <input type="submit" name="submitorderby" value="<?php echo $strGo; ?>" style="vertical-align: middle" />
  114.              <?php echo $strSingly . "\n"; ?>
  115.         </form>
  116.     </li>
  117.     <?php
  118. }
  119. echo "\n";
  120. ?>
  121.  
  122.     <!-- Change table name -->
  123.     <li>
  124.         <form method="post" action="tbl_rename.php"
  125.             onsubmit="return emptyFormElements(this, 'new_name')">
  126.             <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  127.             <input type="hidden" name="reload" value="1" />
  128.             <?php echo $strRenameTable; ?> :
  129.             <input type="text" size="20" name="new_name" value="<?php echo htmlspecialchars($table); ?>" class="textfield" onfocus="this.select()" /> 
  130.             <input type="submit" value="<?php echo $strGo; ?>" />
  131.         </form>
  132.     </li>
  133.  
  134.     <!-- Move table -->
  135.     <li>
  136.         <?php echo $strMoveTable . "\n"; ?>
  137.         <form method="post" action="tbl_move_copy.php"
  138.             onsubmit="return emptyFormElements(this, 'new_name')">
  139.             <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  140.             <input type="hidden" name="reload" value="1" />
  141.             <input type="hidden" name="what" value="data" />
  142.             <table border="0" cellspacing="0" cellpadding="0">
  143.             <tr>
  144.                 <td>
  145.                     <select name="target_db">
  146. <?php
  147. // The function used below is defined in "common.lib.php"
  148. PMA_availableDatabases('main.php?' . PMA_generate_common_url());
  149. for ($i = 0; $i < $num_dbs; $i++) {
  150.     echo '                            ';
  151.     echo '<option value="' . htmlspecialchars($dblist[$i]) . '">' . htmlspecialchars($dblist[$i]) . '</option>';
  152.     echo "\n";
  153. } // end for
  154. ?>
  155.                     </select>
  156.                      <b>.</b> 
  157.                     <input type="text" size="20" name="new_name" value="<?php echo htmlspecialchars($table); ?>" class="textfield" onfocus="this.select()" />
  158.                 </td>
  159.             </tr>
  160.             <tr>
  161.                 <td align="<?php echo $cell_align_right; ?>" valign="top">
  162.                     <input type="submit" name="submit_move" value="<?php echo $strGo; ?>" />
  163.                 </td>
  164.             </tr>
  165.             </table>
  166.         </form>
  167.     </li>
  168.  
  169.     <!-- Copy table -->
  170.     <li>
  171.         <?php echo $strCopyTable . "\n"; ?>
  172.         <form method="post" action="tbl_move_copy.php"
  173.             onsubmit="return emptyFormElements(this, 'new_name')">
  174.             <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  175.             <input type="hidden" name="reload" value="1" />
  176.             <table border="0" cellspacing="0" cellpadding="0">
  177.             <tr>
  178.                 <td colspan="2">
  179.                     <select name="target_db">
  180. <?php
  181. for ($i = 0; $i < $num_dbs; $i++) {
  182.     echo '                            ';
  183.     echo '<option value="' . htmlspecialchars($dblist[$i]) . '"';
  184.     if ($dblist[$i] == $db) {
  185.         echo ' selected="selected"';
  186.     }
  187.     echo '>' . htmlspecialchars($dblist[$i]) . '</option>';
  188.     echo "\n";
  189. } // end for
  190. ?>
  191.                     </select>
  192.                      <b>.</b> 
  193.                     <input type="text" size="20" name="new_name" class="textfield" onfocus="this.select()" />
  194.                 </td>
  195.             </tr>
  196.             <tr>
  197.                 <td nowrap="nowrap">
  198.                     <input type="radio" name="what" value="structure" id="radio_copy_structure" checked="checked" />
  199.                     <label for="radio_copy_structure"><?php echo $strStrucOnly; ?></label>  <br />
  200.                     <input type="radio" name="what" value="data" id="radio_copy_data" />
  201.                     <label for="radio_copy_data"><?php echo $strStrucData; ?></label>  <br />
  202.                     <input type="radio" name="what" value="dataonly" id="radio_copy_dataonly" />
  203.                     <label for="radio_copy_dataonly"><?php echo $strDataOnly; ?></label>  <br />
  204.                     <input type="checkbox" name="drop_if_exists" value="true" id="checkbox_drop" />
  205.                     <label for="checkbox_drop"><?php echo $strStrucDrop; ?></label>  <br />
  206.                     <input type="checkbox" name="auto_increment" value="1" id="checkbox_auto_increment" />
  207.                     <label for="checkbox_auto_increment"><?php echo $strAddAutoIncrement; ?></label><br />
  208.                     <?php
  209.                     // display "Add constraints" choice only if there are
  210.                     // foreign keys
  211.                     if (PMA_getForeigners($db, $table, '', 'innodb')) {
  212.                     ?>
  213.                     <input type="checkbox" name="constraints" value="1" id="checkbox_constraints" />
  214.                     <label for="checkbox_constraints"><?php echo $strAddConstraints; ?></label><br />
  215.                     <?php
  216.                     } // endif
  217.                     if (isset($_COOKIE) && isset($_COOKIE['pma_switch_to_new']) && $_COOKIE['pma_switch_to_new'] == 'true') {
  218.                         $pma_switch_to_new = 'true';
  219.                     }
  220.                     ?>
  221.                     <input type="checkbox" name="switch_to_new" value="true" id="checkbox_switch" <?php echo ((isset($pma_switch_to_new) && $pma_switch_to_new == 'true') ? 'checked="checked"' : ''); ?>/>
  222.                     <label for="checkbox_switch"><?php echo $strSwitchToTable; ?></label>  
  223.                 </td>
  224.                 <td align="<?php echo $cell_align_right; ?>" valign="top">
  225.                     <input type="submit" name="submit_copy" value="<?php echo $strGo; ?>" />
  226.                 </td>
  227.             </tr>
  228.             </table>
  229.         </form>
  230.     </li>
  231.  
  232.     <!-- Table maintenance -->
  233.     <li>
  234.         <?php echo $strTableMaintenance; ?>
  235.         <ul>
  236. <?php
  237. if ($tbl_type == 'MYISAM' || $tbl_type == 'BERKELEYDB' || $tbl_type == 'INNODB') {
  238.     echo "\n";
  239.     if ($tbl_type == 'MYISAM' || $tbl_type == 'INNODB') {
  240.         ?>
  241.         <li>
  242.             <a href="sql.php?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('CHECK TABLE ' . PMA_backquote($table)); ?>">
  243.                 <?php echo $strCheckTable; ?></a> 
  244.             <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'CHECK_TABLE') . "\n"; ?>
  245.         </li>
  246.         <?php
  247.     }
  248.     echo "\n";
  249.     if ($tbl_type == 'MYISAM' || $tbl_type == 'BERKELEYDB') {
  250.         ?>
  251.         <li>
  252.             <a href="sql.php?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('ANALYZE TABLE ' . PMA_backquote($table)); ?>">
  253.                 <?php echo $strAnalyzeTable; ?></a> 
  254.             <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'ANALYZE_TABLE') . "\n";?>
  255.         </li>
  256.         <?php
  257.     }
  258.     echo "\n";
  259.     if ($tbl_type == 'MYISAM') {
  260.         ?>
  261.         <li>
  262.             <a href="sql.php?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('REPAIR TABLE ' . PMA_backquote($table)); ?>">
  263.                 <?php echo $strRepairTable; ?></a> 
  264.             <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'REPAIR_TABLE') . "\n"; ?>
  265.         </li>
  266.         <?php
  267.     }
  268.     echo "\n";
  269.     if ($tbl_type == 'MYISAM' || $tbl_type == 'BERKELEYDB') {
  270.         ?>
  271.         <li>
  272.             <a href="sql.php?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('OPTIMIZE TABLE ' . PMA_backquote($table)); ?>">
  273.                 <?php echo $strOptimizeTable; ?></a> 
  274.             <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'OPTIMIZE_TABLE') . "\n"; ?>
  275.         </li>
  276.         <?php
  277.     }
  278.     echo "\n";
  279.     ?>
  280.     <?php
  281. } // end MYISAM or BERKELEYDB case
  282. echo "\n";
  283. ?>
  284.             <li>
  285.                 <a href="sql.php?<?php echo $url_query; ?>&sql_query=<?php echo urlencode('FLUSH TABLE ' . PMA_backquote($table)); ?>&zero_rows=<?php echo urlencode(sprintf($strTableHasBeenFlushed, htmlspecialchars($table))); if ($cfg['ShowTooltip']) echo '&reload=1'; ?>">
  286.                     <?php echo $strFlushTable; ?></a> 
  287.                     <?php echo PMA_showMySQLDocu('MySQL_Database_Administration', 'FLUSH') . "\n"; ?>
  288.             </li>
  289.  
  290. <?php
  291. // Referential integrity check
  292. // The Referential integrity check was intended for the non-InnoDB
  293. // tables for which the relations are defined in pmadb
  294. // so I assume that if the current table is InnoDB, I don't display
  295. // this choice (InnoDB maintains integrity by itself)
  296.  
  297. if ($cfgRelation['relwork'] && $tbl_type != "INNODB") {
  298.  
  299.     // we need this PMA_mysql_select_db if the user has access to more than one db
  300.     // and $db is not the last of the list, because PMA_availableDatabases()
  301.     // has made a PMA_mysql_select_db() on the last one
  302.     PMA_mysql_select_db($db);
  303.     $foreign = PMA_getForeigners($db, $table);
  304.  
  305.     if ($foreign) {
  306.         ?>
  307.     <!-- Referential integrity check -->
  308.             <li>
  309.                 <?php echo $strReferentialIntegrity; ?><br />
  310.                 <?php
  311.                 echo "\n";
  312.                 foreach($foreign AS $master => $arr) {
  313.                     $join_query  = 'SELECT ' . PMA_backquote($table) . '.* FROM '
  314.                                  . PMA_backquote($table) . ' LEFT JOIN '
  315.                                  . PMA_backquote($arr['foreign_table']);
  316.                     if ($arr['foreign_table'] == $table) {
  317.                         $foreign_table = $table . '1';
  318.                         $join_query .= ' AS ' . PMA_backquote($foreign_table);
  319.                     } else {
  320.                         $foreign_table = $arr['foreign_table'];
  321.                     }
  322.                     $join_query .= ' ON '
  323.                                  . PMA_backquote($table) . '.' . PMA_backquote($master)
  324.                                  . ' = ' . PMA_backquote($foreign_table) . '.' . PMA_backquote($arr['foreign_field'])
  325.                                  . ' WHERE '
  326.                                  . PMA_backquote($foreign_table) . '.' . PMA_backquote($arr['foreign_field'])
  327.                                  . ' IS NULL AND '
  328.                                  . PMA_backquote($table) . '.' . PMA_backquote($master)
  329.                                  . ' IS NOT NULL';
  330.                     echo '        '
  331.                          . '<a href="sql.php?' . $url_query
  332.                          . '&sql_query='
  333.                          . urlencode($join_query)
  334.                          . '">' . $master . ' -> ' . $arr['foreign_table'] . '.' . $arr['foreign_field']
  335.                          . '</a><br />' . "\n";
  336.                     unset($foreign_table);
  337.                     unset($join_query);
  338.                 } //  end while
  339.                 ?>
  340.             </li>
  341.         <?php
  342.     } // end if ($result)
  343.     echo "\n";
  344.  
  345. } // end  if (!empty($cfg['Server']['relation']))
  346. ?>
  347.             <br />
  348.         </ul>
  349.     </li>
  350.  
  351. <?php
  352.  
  353. /**
  354.  * Displays form controls
  355.  */
  356. ?>
  357.     <!-- Table comments -->
  358.     <li>
  359.         <form method="post" action="tbl_properties_operations.php">
  360.             <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  361.             <?php echo $strTableComments; ?> : 
  362.             <?php $comment = ereg_replace('; InnoDB free:.*$' , '', ereg_replace('^InnoDB free:.*$', '', $show_comment)); ?>
  363.             <input type="hidden" name="prev_comment" value="<?php echo urlencode($comment); ?>" /> 
  364.             <input type="text" name="comment" maxlength="60" size="30" value="<?php echo htmlspecialchars($comment); ?>" class="textfield" style="vertical-align: middle" onfocus="this.select()" /> 
  365.             <input type="submit" name="submitcomment" value="<?php echo $strGo; ?>" style="vertical-align: middle" />
  366.         </form>
  367.     </li>
  368.  
  369.     <!-- Table type -->
  370.     <?php
  371.     // modify robbat2 code - staybyte - 11. June 2001
  372.     $query  = 'SHOW VARIABLES LIKE \'have_%\'';
  373.     $result = PMA_mysql_query($query);
  374.     if ($result != FALSE && mysql_num_rows($result) > 0) {
  375.         while ($tmp = PMA_mysql_fetch_array($result)) {
  376.             if (isset($tmp['Variable_name'])) {
  377.                 switch ($tmp['Variable_name']) {
  378.                     case 'have_bdb':
  379.                         if ($tmp['Value'] == 'YES') {
  380.                             $tbl_bdb    = TRUE;
  381.                         }
  382.                         break;
  383.                     case 'have_gemini':
  384.                         if ($tmp['Value'] == 'YES') {
  385.                             $tbl_gemini = TRUE;
  386.                         }
  387.                         break;
  388.                     case 'have_innodb':
  389.                         if ($tmp['Value'] == 'YES') {
  390.                             $tbl_innodb = TRUE;
  391.                         }
  392.                         break;
  393.                     case 'have_isam':
  394.                         if ($tmp['Value'] == 'YES') {
  395.                             $tbl_isam   = TRUE;
  396.                         }
  397.                         break;
  398.                 } // end switch
  399.             } // end if isset($tmp['Variable_name'])
  400.         } // end while
  401.     } // end if $result
  402.  
  403.     mysql_free_result($result);
  404.     echo "\n";
  405.     ?>
  406.     <li>
  407.         <form method="post" action="tbl_properties_operations.php">
  408.             <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  409.             <?php echo $strTableType; ?> : 
  410.             <select name="tbl_type" style="vertical-align: middle">
  411.                 <option value="MYISAM"<?php if ($tbl_type == 'MYISAM') echo ' selected="selected"'; ?>>MyISAM</option>
  412.                 <option value="HEAP"<?php if ($tbl_type == 'HEAP') echo ' selected="selected"'; ?>>Heap</option>
  413.     <?php
  414.     $tbl_types     = "\n";
  415.     if (isset($tbl_bdb)) {
  416.         $tbl_types .= '                <option value="BERKELEYDB"'
  417.                    .  (($tbl_type == 'BERKELEYDB') ? ' selected="selected"' : '')
  418.                    .  '>Berkeley DB</option>' . "\n";
  419.     }
  420.     if (isset($tbl_gemini)) {
  421.         $tbl_types .= '                <option value="GEMINI"'
  422.                    .  (($tbl_type == 'GEMINI') ? ' selected="selected"' : '')
  423.                    .  '>Gemini</option>' . "\n";
  424.     }
  425.     if (isset($tbl_innodb)) {
  426.         $tbl_types .= '                <option value="INNODB"'
  427.                    .  (($tbl_type == 'INNODB') ? ' selected="selected"' : '')
  428.                    .  '>INNO DB</option>' . "\n";
  429.     }
  430.     if (isset($tbl_isam)) {
  431.         $tbl_types .= '                <option value="ISAM"'
  432.                    .  (($tbl_type == 'ISAM') ? ' selected="selected"' : '')
  433.                    .  '>ISAM</option>' . "\n";
  434.     }
  435.  
  436.     echo $tbl_types;
  437.     ?>
  438.                 <option value="MERGE"<?php if ($tbl_type == 'MRG_MYISAM') echo ' selected="selected"'; ?>>Merge</option>
  439.             </select> 
  440.             <input type="submit" name="submittype" value="<?php echo $strGo; ?>" style="vertical-align: middle" /> 
  441.             <?php echo PMA_showMySQLDocu('Table_types', 'Table_types') . "\n"; ?>
  442.         </form>
  443.     </li>
  444.     <?php
  445.  
  446.     if (PMA_MYSQL_INT_VERSION >= 40100) {
  447.         echo "\n"
  448.            . '<!-- Table character set -->' . "\n"
  449.            . '    <li>' . "\n"
  450.            . '        <form method="post" action="tbl_properties_operations.php">' . "\n"
  451.            . PMA_generate_common_hidden_inputs($db, $table, 3)
  452.            . '            ' . $strCharset . ' : ' . "\n"
  453.            . '            <select name="tbl_charset" style="vertical-align: middle">' . "\n";
  454.            $real_charset = strpos($tbl_charset, '_') ? substr($tbl_charset, 0, strpos($tbl_charset, '_')) : $tbl_charset;
  455.         for ($i = 1; isset($mysql_charsets[$i]); $i++) {
  456.             echo '                <option value="' . $mysql_charsets[$i] . '"' . ($mysql_charsets[$i] == $real_charset ? ' selected="selected"' : '') . '>' . $mysql_charsets[$i] . '</option>' . "\n";
  457.         }
  458.         unset($i);
  459.         unset($real_charset);
  460.         echo '            </select> ' . "\n"
  461.            . '            <input type="submit" name="submitcharset" value="' . $strGo . '" style="vertical-align: middle" /> ' . "\n"
  462.            . '        </form>' . "\n"
  463.            . '    </li>' . "\n";
  464.     }
  465.  
  466.     ?>
  467.  
  468.     <!-- Table options -->
  469.     <li>
  470.         <?php echo $strTableOptions; ?>:<br />
  471.         <table border="0" cellspacing="0" cellpadding="0">
  472.         <tr>
  473.             <td valign="top">
  474.                 <form method="post" action="tbl_properties_operations.php">
  475.                     <?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
  476.  
  477.                     <table border="0" cellspacing="1" cellpadding="1">
  478.                     <tr>
  479.                         <td align="right"><input type="checkbox" name="pack_keys" id="pack_keys_opt"
  480.                                 <?php echo (isset($pack_keys) && $pack_keys == 1) ? ' checked="checked"' : ''; ?> /></td>
  481.                         <td><label for="pack_keys_opt">pack_keys</label>  </td>
  482.                     </tr>
  483.                     <tr>
  484.                         <td align="right"><input type="checkbox" name="checksum" id="checksum_opt"
  485.                                 <?php echo (isset($checksum) && $checksum == 1) ? ' checked="checked"' : ''; ?> /></td>
  486.                          <td><label for="checksum_opt">checksum</label>  </td>
  487.                     </tr>
  488.                     <tr>
  489.                          <td align="right"><input type="checkbox" name="delay_key_write" id="delay_key_write_opt"
  490.                                 <?php echo (isset($delay_key_write) && $delay_key_write == 1) ? ' checked="checked"' : ''; ?> /></td>
  491.                          <td><label for="delay_key_write_opt">delay_key_write</label>  </td>
  492.                     </tr>
  493.                     <tr>
  494.                          <td><input type="text" name="auto_increment" id="auto_increment_opt" class="textfield" style="width: 30px"
  495.                                 <?php echo (isset($auto_increment) && !empty($auto_increment) ? ' value="' . $auto_increment . '"' : ''); ?> /></td>
  496.                          <td valign="top"><label for="auto_increment_opt">auto_increment</label>  <input type="submit" name="submitoptions" value="<?php echo $strGo; ?>" /></td>
  497.                     </tr>
  498.                     </table>
  499.                 </form>
  500.             </td>
  501.         </tr>
  502.         </table>
  503.     </li>
  504. </ul>
  505. <?php
  506.  
  507. /**
  508.  * Displays the footer
  509.  */
  510. echo "\n";
  511. require_once('./footer.inc.php');
  512. ?>
  513.