00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010 require_once('./libraries/common.lib.php');
00011
00012 PMA_checkParameters(array('db', 'table'));
00013
00017
00018 $local_query = 'SHOW TABLE STATUS LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\'';
00019 $table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
00020 $showtable = PMA_mysql_fetch_array($table_info_result);
00021 $tbl_type = strtoupper($showtable['Type']);
00022 $tbl_charset = empty($showtable['Collation']) ? '' : $showtable['Collation'];
00023 $table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
00024 $show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
00025 $auto_increment = (isset($showtable['Auto_increment']) ? $showtable['Auto_increment'] : '');
00026
00027 $tmp = explode(' ', $showtable['Create_options']);
00028 $tmp_cnt = count($tmp);
00029 for ($i = 0; $i < $tmp_cnt; $i++) {
00030 $tmp1 = explode('=', $tmp[$i]);
00031 if (isset($tmp1[1])) {
00032 $$tmp1[0] = $tmp1[1];
00033 }
00034 }
00035 unset($tmp1, $tmp);
00036 mysql_free_result($table_info_result);
00037
00038
00042 echo '<!-- top menu -->' . "\n";
00043 require('./tbl_properties_links.php');
00044
00045
00049 if (!empty($show_comment) && !isset($avoid_show_comment)) {
00050 ?>
00051 <!-- Table comment -->
00052 <p><i>
00053 <?php echo htmlspecialchars($show_comment) . "\n"; ?>
00054 </i></p>
00055 <?php
00056 }
00057
00058 echo "\n\n";
00059 ?>