From 8317bab79e5e351139948bbe36f6228903e1d6ff Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 11 Jan 2005 22:07:51 +0000 Subject: [PATCH] Small design glitch with "in use" tables. --- ChangeLog | 1 + db_details_structure.php | 21 ++++++++------------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 771f06a91..8b7842ae4 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ $Source$ - Removed redundant code; - Fixed some comments. * tbl_properties_structure.php: Corrected TH numbering. + * db_details_structure.php: Small design glitch with "in use" tables. 2005-01-11 Marc Delisle * libraries/dbi/mysqli.dbi.lib.php: bug #1076213, headers sent diff --git a/db_details_structure.php b/db_details_structure.php index 267b49d53..eeb648567 100644 --- a/db_details_structure.php +++ b/db_details_structure.php @@ -35,6 +35,7 @@ if (PMA_MYSQL_INT_VERSION >= 40101) { // Display function function pma_TableHeader($alternate = FALSE) { + $cnt = 0; // Let's count the columns... echo ' ' . "\n" . ' ' . "\n" . ' ' . "\n" @@ -47,15 +48,18 @@ function pma_TableHeader($alternate = FALSE) { . ' ' . "\n"; + $cnt += 4; if (!$alternate) { if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)) { echo ' ' . "\n"; + $cnt++; if (PMA_MYSQL_INT_VERSION >= 40100) { echo ' ' . "\n"; + $cnt++; } } if ($GLOBALS['cfg']['ShowStats']) { @@ -65,10 +69,12 @@ function pma_TableHeader($alternate = FALSE) { . ' ' . "\n"; + $cnt += 2; } echo "\n"; } echo ' ' . "\n"; + $GLOBALS['structure_tbl_col_cnt'] = $cnt; } @@ -406,7 +412,7 @@ else { } // end if } else { ?> - 1)) { - $basecolspan++; - if (PMA_MYSQL_INT_VERSION >= 40100) { - $basecolspan++; - } - } - - if ($cfg['ShowStats']) { - $basecolspan += 2; - } ?> -
' . "\n" . '  ' . $GLOBALS['strRecords'] . PMA_showHint($GLOBALS['strApproximateCount']) . ' ' . "\n" . ' ' . "\n" . '  ' . $GLOBALS['strType'] . ' ' . "\n" . ' ' . "\n" . '  ' . $GLOBALS['strCollation'] . ' ' . "\n" . ' ' . "\n" . '  ' . $GLOBALS['strOverhead'] . ' ' . "\n" . '
> + >
+ <?php echo $strWithChecked; ?>