From 07f7dedee53aefca60ef4fc4dc4b14f586b6c76d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 15 Jan 2003 13:22:33 +0000 Subject: [PATCH] delete a pdf page --- ChangeLog | 3 +++ pdf_pages.php3 | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8870818e6..a3d87bd74 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-01-15 Marc Delisle + * pdf_pages.php3: feature: deleting a pdf page + 2003-01-14 Alexander M. Turek * server_privileges.php3: - Lookup database / table lists if possible; diff --git a/pdf_pages.php3 b/pdf_pages.php3 index ae8658247..5875a0c19 100755 --- a/pdf_pages.php3 +++ b/pdf_pages.php3 @@ -53,6 +53,19 @@ if ($cfgRelation['pdfwork']) { // Now is the time to work on all changes if (isset($do)) { switch ($do) { + case 'choosepage': + if ($action_choose=="1") { + $ch_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['table_coords']) + . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' + . ' AND pdf_page_number = ' . $chpage; + PMA_query_as_cu($ch_query); + + $ch_query = 'DELETE FROM ' . PMA_backquote($cfgRelation['pdf_pages']) + . ' WHERE db_name = \'' . PMA_sqlAddslashes($db) . '\'' + . ' AND page_nr = ' . $chpage; + PMA_query_as_cu($ch_query); + } + break; case 'createpage': if (!isset($newpage) || $newpage == '') { $newpage = $strNoDescription; @@ -135,6 +148,11 @@ if ($cfgRelation['pdfwork']) { echo "\n"; ?> + + +