diff --git a/tbl_properties_structure.php3 b/tbl_properties_structure.php3 new file mode 100755 index 000000000..5bb5bfdb7 --- /dev/null +++ b/tbl_properties_structure.php3 @@ -0,0 +1,512 @@ + + + + +
+ + + + + + + + + + + + + + + + + +NULL'; + } + } else { + $row['Default'] = htmlspecialchars($row['Default']); + } + + $field_encoded = urlencode($row['Field']); + $field_name = htmlspecialchars($row['Field']); + if (isset($pk_array[$row['Field']])) { + $field_name = '' . $field_name . ''; + } + echo "\n"; + + ?> + + + + + + + + + + + + + + = 32323) { + if ((!empty($tbl_type) && $tbl_type == 'MYISAM') + && ($type == 'text' || strpos(' ' . $type, 'varchar'))) { + echo "\n"; + ?> + + + + + + + + + + +
  
+ +   >    + + + + 1) { + echo "\n"; + ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ <?php echo $strWithChecked; ?> +    + + 1) { + ?> +    + + +
+ +
+ + + 20) { + ?> + + 20) +echo "\n\n"; + + +/** + * Displays indexes + */ +?> + +
+ + + + + to get valid +// statistics whatever is the table type +if ($cfg['ShowStats']) { + $nonisam = FALSE; + $is_innodb = ($showtable['Type'] == 'InnoDB'); + if (isset($showtable['Type']) && !eregi('ISAM|HEAP', $showtable['Type'])) { + $nonisam = TRUE; + } + if (PMA_MYSQL_INT_VERSION >= 32303 && ($nonisam == FALSE || $is_innodb)) { + // Gets some sizes + $mergetable = FALSE; + if (isset($showtable['Type']) && $showtable['Type'] == 'MRG_MyISAM') { + $mergetable = TRUE; + } + list($data_size, $data_unit) = PMA_formatByteDown($showtable['Data_length']); + if ($mergetable == FALSE) { + list($index_size, $index_unit) = PMA_formatByteDown($showtable['Index_length']); + } + if (isset($showtable['Data_free']) && $showtable['Data_free'] > 0) { + list($free_size, $free_unit) = PMA_formatByteDown($showtable['Data_free']); + list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free']); + } else { + list($effect_size, $effect_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length']); + } + list($tot_size, $tot_unit) = PMA_formatByteDown($showtable['Data_length'] + $showtable['Index_length']); + if ($num_rows > 0) { + list($avg_size, $avg_unit) = PMA_formatByteDown(($showtable['Data_length'] + $showtable['Index_length']) / $showtable['Rows'], 6, 1); + } + + // Displays them + ?> + + + + + + + + + + +
+ +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [] +
+
  + + + + + + + + + + + + + + + + + 0) { + $bgcolor = ((++$i%2) ? $cfg['BgcolorTwo'] : $cfg['BgcolorOne']); + echo "\n"; + ?> + + + + + 0 && $mergetable == FALSE) { + $bgcolor = ((++$i%2) ? $cfg['BgcolorTwo'] : $cfg['BgcolorOne']); + echo "\n"; + ?> + + + + + + + + + + +
+ +
+ +
 ø + +
 ø + +
 Autoindex + +
+
+
+ + + + + + + +