This commit is contained in:
Loïc Chapeaux
2002-05-01 08:14:43 +00:00
parent 02138201cc
commit 4aa84923a5
3 changed files with 23 additions and 10 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-05-01 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_properties.php3; , tbl_properties_table_info.php3: comments.
2002-04-30 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-04-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lang/italian.inc.php3: updated thanks to Pietro Danesi. * lang/italian.inc.php3: updated thanks to Pietro Danesi.

View File

@@ -34,6 +34,7 @@ if (isset($show_query) && $show_query == 'y') {
} }
unset($sql_query); unset($sql_query);
/** /**
* Updates table type, comment and order if required * Updates table type, comment and order if required
*/ */
@@ -55,6 +56,7 @@ if (isset($submitorderby) && !empty($order_field)) {
$local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field; $local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field;
$result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
} }
/** /**
* Update table options * Update table options
*/ */
@@ -67,7 +69,9 @@ if (isset($submitoptions)) {
} }
/**
* Prepares the table structure display
*/
// 1. Get table information // 1. Get table information
require('./tbl_properties_table_info.php3'); require('./tbl_properties_table_info.php3');
@@ -87,7 +91,6 @@ while ($row = mysql_fetch_array($result)) {
} // end while } // end while
mysql_free_result($result); mysql_free_result($result);
// 3. Get fields // 3. Get fields
$local_query = 'SHOW FIELDS FROM ' . PMA_backquote($table); $local_query = 'SHOW FIELDS FROM ' . PMA_backquote($table);
$fields_rs = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $fields_rs = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);

View File

@@ -1,9 +1,9 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/** /**
* Gets table informations and displays these informations and also top * Gets table informations
* browse/select/insert/empty links
*/ */
// The 'show table' statement works correct since 3.23.03 // The 'show table' statement works correct since 3.23.03
if (PMA_MYSQL_INT_VERSION >= 32303) { if (PMA_MYSQL_INT_VERSION >= 32303) {
@@ -15,17 +15,16 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : ''); $show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
// better logic, thanks to Loic: // better logic, thanks to Loic:
$tmp = explode(' ', $showtable['Create_options']); $tmp = explode(' ', $showtable['Create_options']);
$tmp_cnt = count($tmp); $tmp_cnt = count($tmp);
for ($i = 0; $i < $tmp_cnt; $i++) { for ($i = 0; $i < $tmp_cnt; $i++) {
$tmp1 = explode('=', $tmp[$i]); $tmp1 = explode('=', $tmp[$i]);
if (isset($tmp1[1])) { if (isset($tmp1[1])) {
$$tmp1[0] = $tmp1[1]; $$tmp1[0] = $tmp1[1];
} }
} } // end for
unset($tmp1); unset($tmp1);
unset($tmp); unset($tmp);
} else { } else {
$local_query = 'SELECT COUNT(*) AS count FROM ' . PMA_backquote($table); $local_query = 'SELECT COUNT(*) AS count FROM ' . PMA_backquote($table);
$result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
@@ -35,9 +34,17 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
} }
mysql_free_result($result); mysql_free_result($result);
/**
* Displays top menu links
*/
echo '<!-- first browse links -->' . "\n"; echo '<!-- first browse links -->' . "\n";
require('./tbl_properties_links.php3'); require('./tbl_properties_links.php3');
/**
* Displays table comment
*/
if (!empty($show_comment)) { if (!empty($show_comment)) {
?> ?>
<!-- Table comment --> <!-- Table comment -->
@@ -45,6 +52,6 @@ if (!empty($show_comment)) {
<?php echo $show_comment . "\n"; ?> <?php echo $show_comment . "\n"; ?>
</i></p> </i></p>
<?php <?php
} // end (1.) } // end if
?> ?>