Documentation TYPO3 par Ameos

tbl_properties_table_info.php

00001 <?php
00002 /* $Id: tbl_properties_table_info.php,v 2.3 2003/12/29 17:15:14 rabus Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00005 // this should be recoded as functions, to avoid messing with global
00006 // variables
00007 
00008 // Check parameters
00009 
00010 require_once('./libraries/common.lib.php');
00011 
00012 PMA_checkParameters(array('db', 'table'));
00013 
00017 // The 'show table' statement works correct since 3.23.03
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 } // end for
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 } // end if
00057 
00058 echo "\n\n";
00059 ?>


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6