diff --git a/ChangeLog b/ChangeLog index ee330dc8b..53fd8c093 100755 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,7 @@ $Source$ "mysql_results" and "mysql_fetch_array" on invalid queries. * db_details*.php3; mult_submits.inc.php3; sql.php3: splitted the large "database details" page in parts. + * tbl_properties_links.php3: optimized (less server work). 2002-04-30 Loïc Chapeaux * lang/italian.inc.php3: updated thanks to Pietro Danesi. diff --git a/tbl_properties_links.php3 b/tbl_properties_links.php3 index fbe743622..655e003bd 100755 --- a/tbl_properties_links.php3 +++ b/tbl_properties_links.php3 @@ -5,30 +5,24 @@ /** * Prepares links */ -$lnk3 = ''; -$lnk5 = ''; -$lnk6 = ''; -$lnk7 = ''; -$lnk8 = ''; - if ($num_rows > 0) { - $lnk1 = ''; - $lnk2 = ''; - $ln4_stt = (PMA_MYSQL_INT_VERSION >= 40000) + $lnk4 = ''; + $ln6_stt = (PMA_MYSQL_INT_VERSION >= 40000) ? 'TRUNCATE ' : 'DELETE FROM '; - $lnk4 = ''; + . ' onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')">'; } else { - $lnk1 = ''; $lnk2 = ''; $lnk4 = ''; + $lnk6 = ''; } @@ -37,26 +31,30 @@ if ($num_rows > 0) { */ ?>

- [ - '; ?> | - - '; ?> | - - '; ?> | + [  + +  | - '; ?> | + '; ?> | + +  | + + '; ?> |  | - - '; ?> | - - '; ?> | - - '; ?> | - '; ?> ]    - [ - ] + '; ?> | + +  | + +  | + + +  ]    + [  + + +  ]