From 0a3c8dc40b2991a90509e233d5d1b89985fda66e Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 20 Oct 2005 14:35:10 +0000 Subject: [PATCH] - XHTML compliance, styling outsourced, row marker outsourced - do not too much if there is no table --- ChangeLog | 3 + db_details_db_info.php | 12 +- db_details_structure.php | 916 +++++++++++++++++---------------------- 3 files changed, 409 insertions(+), 522 deletions(-) diff --git a/ChangeLog b/ChangeLog index cbfd42922..7755a113f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,9 @@ $Source$ every table with class data now has mark and hover effect * css/phpmyadmin.css.php: nowrap for IE and pre for the rest * css/phpmyadmin.css.php, server_status.php: css cleanup + * db_details_structure.php, db_details_db_info.php: + - XHTML compliance, styling outsourced, row marker outsourced + - do not too much if there is no table 2005-10-19 Alexander M. Turek * lang/*.inc.php, libraries/mysql_charsets.lib.php: Correct description diff --git a/db_details_db_info.php b/db_details_db_info.php index d9218158f..dcf03a70d 100644 --- a/db_details_db_info.php +++ b/db_details_db_info.php @@ -36,7 +36,7 @@ $tables = array(); // When used in Nested table group mode, only show tables matching the given groupname if (!empty($tbl_group) && !$cfg['ShowTooltipAliasTB']) { - $tbl_group_sql = ' LIKE \'' . $tbl_group . '%\''; + $tbl_group_sql = ' LIKE "' . PMA_escape_mysql_wildcards( $tbl_group ) . '%"'; } else { $tbl_group_sql = ''; } @@ -86,9 +86,9 @@ if ($cfg['SkipLockedTables'] == TRUE) { fillTooltip($tooltip_truename, $tooltip_aliasname, $sts_tmp); } - $tables[] = $sts_tmp; + $tables[$sts_tmp['Name']] = $sts_tmp; } else { // table in use - $tables[] = array('Name' => $tmp[0]); + $tables[$tmp[0]] = array('Name' => $tmp[0]); } } PMA_DBI_free_result($db_info_result); @@ -120,7 +120,7 @@ if (!isset($sot_ready)) { fillTooltip($tooltip_truename, $tooltip_aliasname, $sts_tmp); } - $tables[] = $sts_tmp; + $tables[$sts_tmp['Name']] = $sts_tmp; } } @PMA_DBI_free_result($db_info_result); @@ -128,6 +128,10 @@ if (!isset($sot_ready)) { } $num_tables = (isset($tables) ? count($tables) : 0); +if ( $GLOBALS['cfg']['NaturalOrder'] ) { + uksort( $tables, 'strnatcasecmp' ); +} + /** * Displays top menu links */ diff --git a/db_details_structure.php b/db_details_structure.php index b44d061b4..1a51dccd8 100644 --- a/db_details_structure.php +++ b/db_details_structure.php @@ -4,13 +4,12 @@ require_once('./libraries/grab_globals.lib.php'); require_once('./libraries/common.lib.php'); -require_once('./libraries/mysql_charsets.lib.php'); /** * Prepares the tables list if the user where not redirected to this script * because there is no table in the database ($is_info is TRUE) */ -if (empty($is_info)) { +if ( empty( $is_info ) ) { // Drops/deletes/etc. multiple tables if required if ((!empty($submit_mult) && isset($selected_tbl)) || isset($mult_btn)) { @@ -25,108 +24,106 @@ if (empty($is_info)) { // Gets the database structure $sub_part = '_structure'; require('./db_details_db_info.php'); - echo "\n"; } -if (PMA_MYSQL_INT_VERSION >= 40101) { - $db_collation = PMA_getDbCollation($db); +// 1. No tables +if ( $num_tables == 0 ) { + echo '

' . $strNoTablesFound . '

' . "\n"; + + if ( empty( $table_is_schema ) ) { + require('./libraries/display_create_table.lib.php'); + } // end if (Create Table dialog) + + /** + * Displays the footer + */ + require_once('./footer.inc.php'); + exit; } +// else +// 2. Shows table informations - staybyte - 11 June 2001 + +require_once('./libraries/bookmark.lib.php'); + +// rabus: disable statistics for information_schema. +if ( PMA_MYSQL_INT_VERSION >= 50002 && $db == 'information_schema' ) { + $cfg['ShowStats'] = false; + $table_is_schema = true; +} else { + $table_is_schema = false; +} + +if ( PMA_MYSQL_INT_VERSION >= 40101 ) { + require_once('./libraries/mysql_charsets.lib.php'); + $db_collation = PMA_getDbCollation( $db ); +} // Display function -function pma_TableHeader( $is_schema = false ) { +function PMA_TableHeader( $table_is_schema = false ) { $cnt = 0; // Let's count the columns... - if ( $is_schema ) { + if ( $table_is_schema ) { $action_colspan = 3; } else { $action_colspan = 6; } - echo ' ' . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . "\n"; - $cnt += 2 + $action_colspan; - echo ' ' . "\n"; - $cnt++; + echo '
' . "\n" - . '  ' . $GLOBALS['strTable'] . ' ' . "\n" - . ' ' . "\n" - . '  ' . $GLOBALS['strAction'] . ' ' . "\n" - . ' ' . "\n" - . '  ' . $GLOBALS['strRecords'] . PMA_showHint($GLOBALS['strApproximateCount']) . ' ' . "\n" - . '
' . "\n" + .'' . "\n" + .'' . "\n" + .' ' . "\n" + .' ' + .' ' . "\n"; if (!($GLOBALS['cfg']['PropertiesNumColumns'] > 1)) { - echo ' ' . "\n"; + echo ' ' . "\n"; $cnt++; if (PMA_MYSQL_INT_VERSION >= 40100) { - echo ' ' . "\n"; + echo ' ' . "\n"; $cnt++; } } if ($GLOBALS['cfg']['ShowStats']) { - echo ' ' . "\n" - . ' ' . "\n"; + echo ' ' . "\n" + . ' ' . "\n"; $cnt += 2; } - echo "\n"; - echo ' ' . "\n"; - $GLOBALS['structure_tbl_col_cnt'] = $cnt; + echo '' . "\n"; + echo '' . "\n"; + echo '' . "\n"; + $GLOBALS['structure_tbl_col_cnt'] = $cnt + $action_colspan + 3; } - -/** - * Displays the tables list - */ -?> - - - -'; + $titles['NoBrowse'] = '' . $strBrowse . ''; + $titles['Search'] = '' . $strSearch . ''; + $titles['NoSearch'] = '' . $strSearch . ''; + $titles['Insert'] = '' . $strInsert . ''; + $titles['NoInsert'] = '' . $strInsert . ''; + $titles['Structure'] = '' . $strStructure . ''; + $titles['Drop'] = '' . $strDrop . ''; + $titles['NoDrop'] = '' . $strDrop . ''; + $titles['Empty'] = '' . $strEmpty . ''; + $titles['NoEmpty'] = '' . $strEmpty . ''; - if ($propicon == 'both') { - $iconic_spacer = '
'; - } else { - $iconic_spacer = ''; - } - - $titles['Browse'] = $iconic_spacer . '' . $strBrowse . ''; - $titles['NoBrowse'] = $iconic_spacer . '' . $strBrowse . ''; - $titles['Search'] = $iconic_spacer . '' . $strSearch . ''; - $titles['NoSearch'] = $iconic_spacer . '' . $strSearch . ''; - $titles['Insert'] = $iconic_spacer . '' . $strInsert . ''; - $titles['NoInsert'] = $iconic_spacer . '' . $strInsert . ''; - $titles['Structure'] = $iconic_spacer . '' . $strStructure . ''; - $titles['Drop'] = $iconic_spacer . '' . $strDrop . ''; - $titles['NoDrop'] = $iconic_spacer . '' . $strDrop . ''; - $titles['Empty'] = $iconic_spacer . '' . $strEmpty . ''; - $titles['NoEmpty'] = $iconic_spacer . '' . $strEmpty . ''; - - if ($propicon == 'both') { - $titles['Browse'] .= ' ' . $strBrowse . '
'; - $titles['Search'] .= ' ' . $strSearch . ''; - $titles['NoBrowse'] .= ' ' . $strBrowse . ''; - $titles['NoSearch'] .= ' ' . $strSearch . ''; - $titles['Insert'] .= ' ' . $strInsert . ''; - $titles['NoInsert'] .= ' ' . $strInsert . ''; - $titles['Structure'] .= ' ' . $strStructure . ''; - $titles['Drop'] .= ' ' . $strDrop . ''; - $titles['NoDrop'] .= ' ' . $strDrop . ''; - $titles['Empty'] .= ' ' . $strEmpty . ''; - $titles['NoEmpty'] .= ' ' . $strEmpty . ''; + if ( 'both' === $cfg['PropertiesIconic'] ) { + $titles['Browse'] .= $strBrowse; + $titles['Search'] .= $strSearch; + $titles['NoBrowse'] .= $strBrowse; + $titles['NoSearch'] .= $strSearch; + $titles['Insert'] .= $strInsert; + $titles['NoInsert'] .= $strInsert; + $titles['Structure'] .= $strStructure; + $titles['Drop'] .= $strDrop; + $titles['NoDrop'] .= $strDrop; + $titles['Empty'] .= $strEmpty; + $titles['NoEmpty'] .= $strEmpty; } } else { $titles['Browse'] = $strBrowse; @@ -142,478 +139,362 @@ if ($cfg['PropertiesIconic'] == true) { $titles['NoEmpty'] = $strEmpty; } -// 1. No tables -if ($num_tables == 0) { - echo $strNoTablesFound . "\n"; -} -// 2. Shows table informations - staybyte - 11 June 2001 -else { - ?> - - - - 1) { +/** + * Displays the tables list + */ ?> -
' . $GLOBALS['strTable'] . '' . "\n" + .' ' . $GLOBALS['strAction'] . "\n" + .' ' . $GLOBALS['strRecords'] + .PMA_showHint( $GLOBALS['strApproximateCount'] ) . "\n" + .' ' . "\n" - . '  ' . $GLOBALS['strType'] . ' ' . "\n" - . ' ' . $GLOBALS['strType'] . '' . "\n" - . '  ' . $GLOBALS['strCollation'] . ' ' . "\n" - . ' ' . $GLOBALS['strCollation'] . '' . "\n" - . '  ' . $GLOBALS['strSize'] . ' ' . "\n" - . ' ' . "\n" - . '  ' . $GLOBALS['strOverhead'] . ' ' . "\n" - . ' ' . $GLOBALS['strSize'] . '' . $GLOBALS['strOverhead'] . '
- - -
- += 50002 && $db == 'information_schema') { - $cfg['ShowStats'] = false; - $table_is_schema = true; +PMA_TableHeader( $table_is_schema ); + +$i = $sum_entries = 0; +$sum_size = (double) 0; +$overhead_size = (double) 0; +$overhead_check = ''; +$checked = !empty($checkall) ? ' checked="checked"' : ''; +$num_columns = $cfg['PropertiesNumColumns'] > 1 ? ceil($num_tables / $cfg['PropertiesNumColumns']) + 1 : 0; +$row_count = 0; + + +$hidden_fields = array(); +$odd_row = true; +foreach ( $tables as $keyname => $sts_data ) { + $sts_data['Type'] = isset( $sts_data['Type'] ) ? $sts_data['Type'] : ''; + + $table_encoded = urlencode($sts_data['Name']); + // MySQL < 5.0.13 returns "view", >= 5.0.13 returns "VIEW" + $table_is_view = (PMA_MYSQL_INT_VERSION >= 50000 + && empty($sts_data['Type']) + && strtoupper($sts_data['Comment']) == 'VIEW'); + + $alias = (!empty($tooltip_aliasname) && isset($tooltip_aliasname[$sts_data['Name']])) + ? htmlspecialchars($tooltip_aliasname[$sts_data['Name']]) + : htmlspecialchars($sts_data['Name']); + $truename = (!empty($tooltip_truename) && isset($tooltip_truename[$sts_data['Name']])) + ? htmlspecialchars($tooltip_truename[$sts_data['Name']]) + : htmlspecialchars($sts_data['Name']); + + // Sets parameters for links + $tbl_url_query = $url_query . '&table=' . $table_encoded; + $i++; + + $row_count++; + + if ( $table_is_view ) { + $hidden_fields[] = ''; + } + + + if ( ! empty( $sts_data['Rows'] ) || $table_is_view ) { + $book_sql_query = PMA_queryBookmarks($db, $cfg['Bookmark'], '\'' . PMA_sqlAddslashes($sts_data['Name']) . '\'', 'label'); + $browse_table = '' . $titles['Browse'] . ''; } else { - $table_is_schema = false; + $browse_table = $titles['NoBrowse']; } - pma_TableHeader( $table_is_schema ); - - $i = $sum_entries = 0; - (double) $sum_size = 0; - (double) $overhead_size = 0; - $overhead_check = ''; - $checked = (!empty($checkall) ? ' checked="checked"' : ''); - $num_columns = ($cfg['PropertiesNumColumns'] > 1 ? (ceil($num_tables / $cfg['PropertiesNumColumns']) + 1) : 0); - $row_count = 0; - - if ($cfg['NaturalOrder']) { - $tables_temp = $tables; - foreach (array_keys($tables_temp) as $each) { - $tables_sort[$each] = $tables_temp[$each]['Name']; - } - natsort($tables_sort); - $sort_i = 0; - foreach (array_keys($tables_sort) as $each) { - $tables_temp[$sort_i] = $tables[$each]; - $sort_i++; - } - $tables = $tables_temp; + + if ( ! empty($sts_data['Rows'] ) || $table_is_view ) { + $search_table = '' + . $titles['Search'] . ''; + } else { + $search_table = $titles['NoSearch']; } - - foreach ($tables AS $keyname => $sts_data) { - $table = $sts_data['Name']; - $table_encoded = urlencode($table); - $table_name = htmlspecialchars($table); - // MySQL < 5.0.13 returns "view", >= 5.0.13 returns "VIEW" - $is_view = (PMA_MYSQL_INT_VERSION >= 50000 - && !isset($sts_data['Type']) - && strtoupper($sts_data['Comment']) == 'VIEW'); - - $alias = (!empty($tooltip_aliasname) && isset($tooltip_aliasname[$table])) - ? htmlspecialchars($tooltip_aliasname[$table]) - : htmlspecialchars($sts_data['Name']); - $truename = (!empty($tooltip_truename) && isset($tooltip_truename[$table])) - ? htmlspecialchars($tooltip_truename[$table]) - : htmlspecialchars($sts_data['Name']); - - // Sets parameters for links - $tbl_url_query = $url_query . '&table=' . $table_encoded; - $bgcolor = ($i++ % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']; - echo "\n"; - - if ($GLOBALS['cfg']['BrowsePointerEnable'] == TRUE) { - $on_mouse = ' onmouseover="setPointer(this, ' . $i . ', \'over\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"' - . ' onmouseout="setPointer(this, ' . $i . ', \'out\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"'; - } else { - $on_mouse = ''; - } - if ($GLOBALS['cfg']['BrowseMarkerEnable'] == TRUE) { - $on_mouse .= ' onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $bgcolor . '\', \'' . $GLOBALS['cfg']['BrowsePointerColor'] . '\', \'' . $GLOBALS['cfg']['BrowseMarkerColor'] . '\');"'; - } - - $click_mouse = ' onmousedown="document.getElementById(\'checkbox_tbl_' . $i . '\').checked = (document.getElementById(\'checkbox_tbl_' . $i . '\').checked ? false : true);" '; - - $row_count++; - if ($num_columns > 0 && $num_tables > $num_columns && (($row_count % ($num_columns)) == 0)) { - $bgcolor = $cfg['BgcolorTwo']; - $row_count = 1; - ?> -
- - - - - > - - /> - - - - - > -     - - - ' . $titles['Browse'] . ''; - } else { - echo $titles['NoBrowse']; - } - ?> - - - - - - - ' - . $titles['Search'] . ''; - } else { - echo $titles['NoSearch']; - } - ?> - - - - - - - - = 40000) { - echo urlencode('TRUNCATE ' . PMA_backquote($table)) - . '&zero_rows=' - . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) - . '" onclick="return confirmLink(this, \'TRUNCATE '; - } else { - echo urlencode('DELETE FROM ' . PMA_backquote($table)) - . '&zero_rows=' - . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) - . '" onclick="return confirmLink(this, \'DELETE FROM '; - } - echo PMA_jsFormat($table) . '\')">' . $titles['Empty'] . ''; + + if ( ! $table_is_schema ) { + if ( ! empty($sts_data['Rows']) ) { + $empty_table = ' - - - - ' . $titles['Empty'] . ''; + } else { + $empty_table = $titles['NoEmpty']; } - ?> - - - to get valid - // statistics whatever is the table type - if ( isset( $sts_data['Rows'] ) ) { - // MyISAM, ISAM or Heap table: Row count, data size and index size - // is accurate. - if (isset($sts_data['Type']) && preg_match('@^(MyISAM|ISAM|HEAP|MEMORY)$@', $sts_data['Type'])) { - if ($cfg['ShowStats']) { - $tblsize = doubleval($sts_data['Data_length']) + doubleval($sts_data['Index_length']); - $sum_size += $tblsize; - list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0); - if (isset($sts_data['Data_free']) && $sts_data['Data_free'] > 0) { - list($formated_overhead, $overhead_unit) = PMA_formatByteDown($sts_data['Data_free']); - $overhead_size += $sts_data['Data_free']; - } + $drop_query = 'DROP ' + . ( $table_is_view ? 'VIEW' : 'TABLE' ) + . ' ' . PMA_backquote($sts_data['Name']); + $drop_message = sprintf( + $table_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped, + htmlspecialchars( $sts_data['Name'] ) ); + } + + // loic1: Patch from Joshua Nye to get valid + // statistics whatever is the table type + if ( isset( $sts_data['Rows'] ) ) { + // MyISAM, ISAM or Heap table: Row count, data size and index size + // is accurate. + if ( preg_match('@^(MyISAM|ISAM|HEAP|MEMORY)$@', $sts_data['Type']) ) { + if ($cfg['ShowStats']) { + $tblsize = doubleval($sts_data['Data_length']) + doubleval($sts_data['Index_length']); + $sum_size += $tblsize; + list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0); + if (isset($sts_data['Data_free']) && $sts_data['Data_free'] > 0) { + list($formated_overhead, $overhead_unit) = PMA_formatByteDown($sts_data['Data_free']); + $overhead_size += $sts_data['Data_free']; } - $sum_entries += $sts_data['Rows']; - $display_rows = number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator); } - + $sum_entries += $sts_data['Rows']; + $display_rows = $sts_data['Rows']; + } elseif ( $sts_data['Type'] == 'InnoDB' ) { // InnoDB table: Row count is not accurate but data and index // sizes are. - else if (isset($sts_data['Type']) && $sts_data['Type'] == 'InnoDB') { - if ($cfg['ShowStats']) { - $tblsize = $sts_data['Data_length'] + $sts_data['Index_length']; - $sum_size += $tblsize; - list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0); - } - //$display_rows = ' - '; - // get row count with another method - if ($sts_data['Rows'] < $cfg['MaxExactCount']) { - $local_query = 'SELECT COUNT(*) AS count FROM ' - . PMA_backquote($db) . '.' - . PMA_backquote($table); - $table_info_result = PMA_DBI_query($local_query); - list($row_count) = PMA_DBI_fetch_row($table_info_result); - PMA_DBI_free_result($table_info_result); - unset($table_info_result); - $sum_entries += $row_count; - } else { - $row_count = $sts_data['Rows']; - $sum_entries += $sts_data['Rows']; - } - $display_rows = number_format($row_count, 0, $number_decimal_separator, $number_thousands_separator); + if ($cfg['ShowStats']) { + $tblsize = $sts_data['Data_length'] + $sts_data['Index_length']; + $sum_size += $tblsize; + list($formated_size, $unit) = PMA_formatByteDown($tblsize, 3, ($tblsize > 0) ? 1 : 0); } - + //$display_rows = ' - '; + // get row count with another method + if ($sts_data['Rows'] < $cfg['MaxExactCount']) { + $local_query = 'SELECT COUNT(*) AS count FROM ' + . PMA_backquote($db) . '.' + . PMA_backquote($sts_data['Name']); + $sum_entries += PMA_DBI_fetch_value( $local_query ); + unset( $local_query ); + } else { + $row_count = $sts_data['Rows']; + $sum_entries += $sts_data['Rows']; + } + $display_rows = $row_count; + } elseif ( preg_match('@^(MRG_MyISAM|BerkeleyDB)$@', $sts_data['Type']) ) { // Merge or BerkleyDB table: Only row count is accurate. - else if (isset($sts_data['Type']) && preg_match('@^(MRG_MyISAM|BerkeleyDB)$@', $sts_data['Type'])) { - if ($cfg['ShowStats']) { - $formated_size = ' - '; - $unit = ''; - } - $sum_entries += $sts_data['Rows']; - $display_rows = number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator); - } - - // Unknown table type. - else { - if ($cfg['ShowStats']) { - $formated_size = 'unknown'; - $unit = ''; - } - $display_rows = 'unknown'; - } - ?> - > - - - 1)) { - echo ' ' . "\n" - . '  ' . (isset($sts_data['Type']) ? $sts_data['Type'] : ' ') . ' ' . "\n" - . ' ' . "\n"; - if (PMA_MYSQL_INT_VERSION >= 40100) { - echo ' ' . "\n" - . '  ' . (isset($sts_data['Collation']) ? '' . $sts_data['Collation'] . '' : '---') . ' ' . "\n" - . ' ' . "\n"; - } - } - - if ( $cfg['ShowStats']) { - echo "\n"; - ?> - > -    - - - > -    - ' . $formated_overhead . ' ' . $overhead_unit . '' . "\n"; - unset($formated_overhead); - $overhead_check .= "document.getElementById('checkbox_tbl_$i').checked = true;"; - } else { - echo " - \n"; - } - ?> - - = 5.0.13 returns "VIEW" - } else if (PMA_MYSQL_INT_VERSION >= 50000 && strtoupper($sts_data['Comment']) == 'VIEW') { - // rabus: We've found a view - ?> - -  -  - - -    - - -  ---  - - - -  -  - - -  -  - - - > - - - - - - - - -    - - - - - - - - 1)) { - echo ' ' . "\n" - . ' --' . "\n" - . ' ' . "\n"; - if (PMA_MYSQL_INT_VERSION >= 40101) { - echo ' ' . "\n" - . '  ' . $db_collation . ' ' . "\n" - . ' ' . "\n"; + + if (PMA_MYSQL_INT_VERSION >= 40100) { + if ( isset( $sts_data['Collation'] ) ) { + $collation = '' + . $sts_data['Collation'] . ''; + } else { + $collation = '---'; + } } + + if ( $cfg['ShowStats']) { + if (isset($formated_overhead)) { + $overhead = '' . $formated_overhead + . ' ' . $overhead_unit . '' . "\n"; + unset($formated_overhead); + $overhead_check .= + "document.getElementById('checkbox_tbl_$i').checked = true;"; + } else { + $overhead = '-'; + } + } // end if } - - if ($cfg['ShowStats']) { - echo "\n"; - ?> - -   - - - -   - - - 0 && $num_tables > $num_columns + && ( ($row_count % $num_columns) == 0 )) { + $row_count = 1; + $odd_row = true; ?> - - - - - - <?php echo $strWithChecked; ?> - - -  /  - - - -  /  - - - -     - - - - - - - - 1) { -?> - + - + + + /> + + + + + + + + + + + + + + + + + + + 1)) { ?> + + + + + + + + + + + + - + + --- + + - + - + + + + + + + - - + + + + + + + + + + 1)) { + echo ' --' . "\n"; + if ( ! empty( $db_collation ) ) { + echo ' ' . "\n" + . ' ' . $db_collation + . '' . "\n" + . ' ' . "\n"; + } +} -echo "\n"; +if ($cfg['ShowStats']) { + ?> + + + + + + +
 
+ +<?php echo $strWithChecked; ?> + + +/ + + + +/ + + + + + + + + + +
- +/* DATABASE WORK */ +/* Printable view of a table */ +echo '

'; +echo ''; +if ( $cfg['PropertiesIconic'] ) { + echo ''; +} +echo $strPrintView . ' '; - 0) { - ?> - - - -
'; - if ($cfg['PropertiesIconic']) { - echo ''; - } - echo $strPrintView . ''; - ?>       - '; - if($cfg['PropertiesIconic']){ - echo ''; - } - echo $strDataDict . ''; -?>
- '; +if($cfg['PropertiesIconic']){ + echo ''; +} +echo $strDataDict . ''; +echo '

'; if ( empty( $table_is_schema ) ) { require('./libraries/display_create_table.lib.php'); @@ -622,6 +503,5 @@ if ( empty( $table_is_schema ) ) { /** * Displays the footer */ -echo "\n"; require_once('./footer.inc.php'); ?> \ No newline at end of file