From af962a1ef514116f6ecaf353db6974aec977e151 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 28 Apr 2002 01:57:22 +0000 Subject: [PATCH] reusable links --- ChangeLog | 4 ++ tbl_properties.php3 | 94 +++------------------------------------ tbl_properties_links.php3 | 48 ++++++++++++++++++++ 3 files changed, 58 insertions(+), 88 deletions(-) create mode 100755 tbl_properties_links.php3 diff --git a/ChangeLog b/ChangeLog index 441dfc31f..e5458aab7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-04-27 Marc Delisle + * tbl_properties.php3, new tbl_properties_links.php3: + remove duplicate links code + 2002-04-27 Alexander M. Turek * Recompressed old ChangeLog without saving its path in the archive. * header.inc.php3: diff --git a/tbl_properties.php3 b/tbl_properties.php3 index cd8f0d057..1189ab192 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -144,64 +144,12 @@ if (PMA_MYSQL_INT_VERSION >= 32303) { $show_comment = ''; } mysql_free_result($result); -?> - 0) { - echo "\n"; - ?> - -

- [ - ]    - [ - ]    - [ - ]    - [ = 40000) { - echo urlencode('TRUNCATE ' . PMA_backquote($table)) - . '&zero_rows=' - . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) - . '"' . "\n" - . ' onclick="return confirmLink(this, \'TRUNCATE '; - } // end if - else { - echo urlencode('DELETE FROM ' . PMA_backquote($table)) - . '&zero_rows=' - . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table))) - . '"' - . "\n" - . ' onclick="return confirmLink(this, \'DELETE FROM '; - } // end else - echo PMA_jsFormat($table) - . '\')">' - . "\n"; - ?> - ]       - [ - ] -

- - -

- [ ]    - [ ]    - [ - ]    - [ ]       - [ - ] -

- + + @@ -443,40 +391,10 @@ echo "\n"; * links again */ if ($fields_cnt > 20) { - if ($num_rows > 0) { ?> -

- [ - ]    - [ - ]    - [ - ]    - [ - ]       - [ - ] -

- - -

- [ ]    - [ ]    - [ - ]    - [ ]       - [ - ] -

- 20) echo "\n\n"; diff --git a/tbl_properties_links.php3 b/tbl_properties_links.php3 new file mode 100755 index 000000000..61cf1048b --- /dev/null +++ b/tbl_properties_links.php3 @@ -0,0 +1,48 @@ + +

+ [ 0) { + ?> + + + ]    + [ 0) { + ?> + + + ]    + [ + ]    + [ 0) { + echo '' + . "\n"; + } // end if + ?> + ]       + [ + ] +