Browse link at top

This commit is contained in:
Marc Delisle
2001-07-10 16:18:10 +00:00
parent aedcaa11b7
commit e6ec61e8c2
2 changed files with 21 additions and 6 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-07-10 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties.php3, feature 439394 (browse link at top of page)
2001-07-09 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lib.inc.php3, lines 865-867; main.php3, line 78; left.php3, line 55;
left.js, line 116: fixed some bugs (including #439553) when

View File

@@ -12,12 +12,23 @@ if (!isset($message)) {
}
unset($sql_query);
/**
/*
* Selects the db that will be used during this script execution
*/
mysql_select_db($db);
/*
* Set parameters for links
*/
$query="server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
?>
<!-- first browse link -->
<p>
<a href="sql.php3?sql_query=<?php echo urlencode("SELECT * FROM $table"); ?>&pos=0&<?php echo $query; ?>">
<b><?php echo $strBrowse; ?></b></a>
</p>
<?php
/**
* Gets table informations
@@ -43,7 +54,8 @@ if (MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION) >= 3) {
if (!empty($showtable['Comment'])) {
$show_comment = $showtable['Comment'];
?>
<!-- Table comment -->
<!-- Table comment -->
<p><i>
<?php echo $show_comment . "\n"; ?>
</i></p>
@@ -98,11 +110,11 @@ echo "\n";
$i = 0;
$aryFields = array();
$query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
while ($row = mysql_fetch_array($result)) {
$i++;
$bgcolor = ($i % 2) ? $cfgBgcolorOne : $cfgBgcolorTwo;
$query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
$aryFields[] = $row['Field'];
if (get_magic_quotes_runtime()) {
@@ -166,7 +178,7 @@ while ($row = mysql_fetch_array($result)) {
?>
</tr>
<?php
}
} // (end while)
echo "\n";
?>
</table>