' . PMA_showMySQLDocu('Reference', 'Column_types') . ''; $header_cells[] = $strLengthSet; $header_cells[] = $strAttr; $header_cells[] = $strNull; $header_cells[] = $strDefault . '**'; $header_cells[] = $strExtra; require('./libraries/relation.lib.php3'); require('./libraries/transformations.lib.php3'); $cfgRelation = PMA_getRelationsParam(); $comments_map = array(); $mime_map = array(); $available_mime = array(); if ($cfgRelation['commwork']) { $comments_map = PMA_getComments($db, $table); $header_cells[] = $strComments; if ($cfgRelation['mimework'] && $cfg['BrowseMIME']) { $mime_map = PMA_getMIME($db, $table); $available_mime = PMA_getAvailableMIMEtypes(); $header_cells[] = $strMIME_MIMEtype; $header_cells[] = $strMIME_transformation; $header_cells[] = $strMIME_transformation_options . '***'; } } // lem9: We could remove this 'if' and let the key information be shown and // editable. However, for this to work, tbl_alter must be modified to use the // key fields, as tbl_addfield does. if (!$is_backup) { $header_cells[] = $strPrimary; $header_cells[] = $strIndex; $header_cells[] = $strUnique; $header_cells[] = '---'; $header_cells[] = $strIdxFulltext; } for ($i = 0 ; $i < $num_fields; $i++) { if (isset($fields_meta)) { $row = $fields_meta[$i]; } $bgcolor = ($i % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; // Cell index: If certain fields get left out, the counter shouldn't chage. $ci = 0; if ($is_backup) { $content_cells[$i][$ci] = "\n" . '' . "\n"; } else { $content_cells[$i][$ci] = ''; } $content_cells[$i][$ci] .= "\n" . ''; $ci++; $content_cells[$i][$ci] = ''; $ci++; if ($is_backup) { $content_cells[$i][$ci] = "\n" . ''; } else { $content_cells[$i][$ci] = ''; } $content_cells[$i][$ci] .= "\n" . '' . "\n"; $ci++; $content_cells[$i][$ci] = ''; $ci++; $content_cells[$i][$ci] = ''; $ci++; if (isset($row) && !isset($row['Default']) && !empty($row['Null'])) { $row['Default'] = 'NULL'; } if ($is_backup) { $content_cells[$i][5] = "\n" . ''; } else { $content_cells[$i][5] = "\n"; } $content_cells[$i][$ci] .= ''; $ci++; $content_cells[$i][$ci] = ''; $ci++; // garvin: comments if ($cfgRelation['commwork']) { $content_cells[$i][$ci] = ''; $ci++; } // garvin: MIME-types if ($cfgRelation['mimework'] && $cfg['BrowseMIME'] && $cfgRelation['commwork']) { $content_cells[$i][$ci] = ''; $ci++; $content_cells[$i][$ci] = ''; $ci++; $content_cells[$i][$ci] = ''; $ci++; } // lem9: See my other comment about removing this 'if'. if (!$is_backup) { if (isset($row) && isset($row['Key']) && $row['Key'] == 'PRI') { $checked_primary = ' checked="checked"'; } else { $checked_primary = ''; } if (isset($row) && isset($row['Key']) && $row['Key'] == 'MUL') { $checked_index = ' checked="checked"'; } else { $checked_index = ''; } if (isset($row) && isset($row['Key']) && $row['Key'] == 'UNI') { $checked_unique = ' checked="checked"'; } else { $checked_unique = ''; } if (empty($checked_primary) && empty($checked_index) && empty($checked_unique)) { $checked_none = ' checked="checked"'; } if (PMA_MYSQL_INT_VERSION >= 32323 &&(isset($row) && isset($row['Comment']) && $row['Comment'] == 'FULLTEXT')) { $checked_fulltext = ' checked="checked"'; } else { $checked_fulltext = ''; } $content_cells[$i][$ci] = "\n" . ''; $ci++; $content_cells[$i][$ci] = "\n" . ''; $ci++; $content_cells[$i][$ci] = "\n" . ''; $ci++; $content_cells[$i][$ci] = "\n" . ''; $ci++; if (PMA_MYSQL_INT_VERSION >= 32323) { $content_cells[$i][$ci] = ''; } // end if (PMA_MYSQL_INT_VERSION >= 32323) } // end if ($action ==...) } // end for if ($cfg['DefaultPropDisplay'] == 'horizontal') { ?> ' . "\n"; $bgcolor = ($i % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; while(list($content_row_nr, $content_row_val) = @each($content_row)) { ?> ' . "\n"; } ?>

' . "\n"; ?> ' . "\n"; $i++; } ?>

= 32300) { echo "\n"; ?> 0) { while ($tmp = PMA_mysql_fetch_array($result)) { if (isset($tmp['Variable_name'])) { switch ($tmp['Variable_name']) { case 'have_bdb': if (isset($tmp['Variable_name']) && $tmp['Value'] == 'YES') { $tbl_bdb = TRUE; } break; case 'have_gemini': if (isset($tmp['Variable_name']) && $tmp['Value'] == 'YES') { $tbl_gemini = TRUE; } break; case 'have_innodb': if (isset($tmp['Variable_name']) && $tmp['Value'] == 'YES') { $tbl_innodb = TRUE; } break; case 'have_isam': if (isset($tmp['Variable_name']) && $tmp['Value'] == 'YES') { $tbl_isam = TRUE; } break; } // end switch } // end if } // end while } // end if mysql_free_result($result); echo "\n"; ?>
 :    :
 

** 
*** 
', '') . "\n"; ?>