From f6c54b560c998eaa5658414706d7f59188e2c1b1 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 18 Mar 2012 18:33:51 +0000 Subject: [PATCH] removed obsolete file --- lam/templates/pdfedit/pdfdelete.php | 106 ----------------------- lam/templates/profedit/profiledelete.php | 102 ---------------------- 2 files changed, 208 deletions(-) delete mode 100644 lam/templates/pdfedit/pdfdelete.php delete mode 100644 lam/templates/profedit/profiledelete.php diff --git a/lam/templates/pdfedit/pdfdelete.php b/lam/templates/pdfedit/pdfdelete.php deleted file mode 100644 index e9bebbb2..00000000 --- a/lam/templates/pdfedit/pdfdelete.php +++ /dev/null @@ -1,106 +0,0 @@ -server()) { - metaRefresh("../login.php"); - exit; -} - -// check if admin has submited delete operation -if (isset($_POST['submit'])) { - // delete user profile - if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) { - metaRefresh('pdfmain.php?deleteScope=' . $_POST['type'] . '&deleteFailed=' . $_POST['delete']); - exit(); - } - else { - metaRefresh('pdfmain.php?deleteScope=' . $_POST['type'] . '&deleteSucceeded=' . $_POST['delete']); - exit(); - } -} - -// check if admin has aborted delete operation -if (isset($_POST['abort'])) { - metaRefresh('pdfmain.php'); - exit; -} - -// print standard header -include '../main_header.php'; -echo "
\n"; -echo "
\n"; - -// check if right type was given -$type = $_GET['type']; - -$container = new htmlTable(); - -$container->addElement(new htmlOutputText(_("Do you really want to delete this PDF structure?")), true); -$container->addElement(new htmlSpacer(null, '10px'), true); - -$templateContainer = new htmlTable(); -$templateContainer->addElement(new htmlOutputText(_('Account type'))); -$templateContainer->addElement(new htmlSpacer('10px', null)); -$templateContainer->addElement(new htmlOutputText(getTypeAlias($_GET['type'])), true); -$templateContainer->addElement(new htmlOutputText(_('Name'))); -$templateContainer->addElement(new htmlSpacer('10px', null)); -$templateContainer->addElement(new htmlOutputText($_GET['delete']), true); -$container->addElement($templateContainer, true); -$container->addElement(new htmlSpacer(null, '10px'), true); - -$buttonContainer = new htmlTable(); -$buttonContainer->addElement(new htmlButton('submit', _("Delete"))); -$buttonContainer->addElement(new htmlButton('abort', _("Cancel"))); -$buttonContainer->addElement(new htmlHiddenInput('type', $_GET['type'])); -$buttonContainer->addElement(new htmlHiddenInput('delete', $_GET['delete'])); -$container->addElement($buttonContainer); - -$tabindex = 1; -parseHtml(null, $container, array(), false, $tabindex, 'user'); - -echo "
\n"; -echo '
'; -include '../main_footer.php'; diff --git a/lam/templates/profedit/profiledelete.php b/lam/templates/profedit/profiledelete.php deleted file mode 100644 index b19c339d..00000000 --- a/lam/templates/profedit/profiledelete.php +++ /dev/null @@ -1,102 +0,0 @@ -server()) { - metaRefresh("../login.php"); - exit; -} - -// check if admin has submited delete operation -if (isset($_POST['submit'])) { - // delete profile - if (!delAccountProfile($_POST['del'], $_POST['type'])) { - metaRefresh('profilemain.php?deleteScope=' . $_POST['type'] . '&deleteFailed=' . $_POST['del']); - exit(); - } - else { - metaRefresh('profilemain.php?deleteScope=' . $_POST['type'] . '&deleteSucceeded=' . $_POST['del']); - exit(); - } -} - -// check if admin has aborted delete operation -if (isset($_POST['abort'])) { - metaRefresh('profilemain.php'); - exit; -} - -// print standard header -include '../main_header.php'; -echo "
\n"; -echo "
\n"; - -$type = $_GET['type']; - -$container = new htmlTable(); -$container->addElement(new htmlOutputText(_("Do you really want to delete this profile?")), true); -$container->addElement(new htmlSpacer(null, '10px'), true); - -$subContainer = new htmlTable(); -$subContainer->addElement(new htmlOutputText(_("Profile name") . ': ')); -$subContainer->addElement(new htmlOutputText($_GET['del']), true); -$container->addElement($subContainer, true); -$container->addElement(new htmlSpacer(null, '10px'), true); - -$buttonContainer = new htmlTable(); -$buttonContainer->addElement(new htmlButton('submit', _("Ok"))); -$buttonContainer->addElement(new htmlButton('abort', _("Cancel"))); -$buttonContainer->addElement(new htmlHiddenInput('type', $type)); -$buttonContainer->addElement(new htmlHiddenInput('del', $_GET['del'])); -$container->addElement($buttonContainer); - -$tabindex = 1; -parseHtml(null, $container, array(), false, $tabindex, 'user'); - -echo "
\n"; -echo "
"; -include '../main_footer.php';