updated to new PDF functions
This commit is contained in:
parent
3b9f67d4ce
commit
b9970743cb
|
@ -53,10 +53,10 @@ echo ("</head>\n<body>\n<p><br></p>\n");
|
||||||
if ($_POST['submit']) {
|
if ($_POST['submit']) {
|
||||||
// delete user profile
|
// delete user profile
|
||||||
if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) {
|
if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) {
|
||||||
StatusMessage('ERROR', '', _('Unable to delete PDF structure!') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . substr($_POST['delete'],0,strlen($_POST['delete']) - 4));
|
StatusMessage('ERROR', '', _('Unable to delete PDF structure!') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
StatusMessage('INFO', '', _('Deleted PDF structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . substr($_POST['delete'],0,strlen($_POST['delete']) - 4));
|
StatusMessage('INFO', '', _('Deleted PDF structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']);
|
||||||
}
|
}
|
||||||
echo ("<br><a href=\"pdfmain.php\">" . _("Back to PDF Editor") . "</a>");
|
echo ("<br><a href=\"pdfmain.php\">" . _("Back to PDF Editor") . "</a>");
|
||||||
echo ("</body></html>\n");
|
echo ("</body></html>\n");
|
||||||
|
@ -75,7 +75,7 @@ if ($_POST['abort']) {
|
||||||
$type = $_GET['type'];
|
$type = $_GET['type'];
|
||||||
if (($type == "user") || ($type == "host") || ($type == "group")) {
|
if (($type == "user") || ($type == "host") || ($type == "group")) {
|
||||||
echo ("<p align=\"center\"><big>" . _("Do you really want to delete this PDF structure?") . " <b>");
|
echo ("<p align=\"center\"><big>" . _("Do you really want to delete this PDF structure?") . " <b>");
|
||||||
echo (_('Scope') . ': ' . $_GET['type'] . ' ' . _('Name') . ': ' . substr($_GET['delete'],0,strlen($_GET['delete']) - 4) . "</b></big><br></p>\n");
|
echo (_('Scope') . ': ' . $_GET['type'] . ' ' . _('Name') . ': ' . $_GET['delete'] . "</b></big><br></p>\n");
|
||||||
echo ("<form action=\"pdfdelete.php\" method=\"post\">\n");
|
echo ("<form action=\"pdfdelete.php\" method=\"post\">\n");
|
||||||
echo ("<p align=\"center\">\n");
|
echo ("<p align=\"center\">\n");
|
||||||
echo ("<input type=\"submit\" name=\"submit\" value=\"" . _("Submit") . "\">\n");
|
echo ("<input type=\"submit\" name=\"submit\" value=\"" . _("Submit") . "\">\n");
|
||||||
|
|
Loading…
Reference in New Issue