delete a pdf page
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-01-15 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* pdf_pages.php3: feature: deleting a pdf page
|
||||||
|
|
||||||
2003-01-14 Alexander M. Turek <rabus@users.sourceforge.net>
|
2003-01-14 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* server_privileges.php3:
|
* server_privileges.php3:
|
||||||
- Lookup database / table lists if possible;
|
- Lookup database / table lists if possible;
|
||||||
|
@@ -53,6 +53,19 @@ if ($cfgRelation['pdfwork']) {
|
|||||||
// Now is the time to work on all changes
|
// Now is the time to work on all changes
|
||||||
if (isset($do)) {
|
if (isset($do)) {
|
||||||
switch ($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':
|
case 'createpage':
|
||||||
if (!isset($newpage) || $newpage == '') {
|
if (!isset($newpage) || $newpage == '') {
|
||||||
$newpage = $strNoDescription;
|
$newpage = $strNoDescription;
|
||||||
@@ -135,6 +148,11 @@ if ($cfgRelation['pdfwork']) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
<input type="radio" name="action_choose" value="0" id="radio_choose0" checked="checked" style="vertical-align: middle" /> <label for="radio_choose0">
|
||||||
|
<?php echo $strEdit; ?> </label>
|
||||||
|
<input type="radio" name="action_choose" value="1" id="radio_choose1" style="vertical-align: middle" /> <label for="radio_choose1">
|
||||||
|
<?php echo $strDelete; ?> </label>
|
||||||
|
|
||||||
<input type="submit" value="<?php echo $strGo; ?>" />
|
<input type="submit" value="<?php echo $strGo; ?>" />
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user