server()) {
metaRefresh("../login.php");
exit;
}
// print standard header
echo $_SESSION['header'];
echo ("
" . _("Delete PDF structure") . "\n");
echo "\n";
echo "\n";
echo ("\n\n
\n");
// check if admin has submited delete operation
if ($_POST['submit']) {
// delete user profile
if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) {
StatusMessage('ERROR', '', _('Unable to delete PDF structure!') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']);
}
else {
StatusMessage('INFO', '', _('Deleted PDF structure:') . ' ' . _('Scope') . ': ' . $_POST['type'] . ' ' . _('Name') . ': ' . $_POST['delete']);
}
echo ("
" . _("Back to PDF Editor") . "");
echo ("