diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index ab69b3bf..79f003a6 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -610,7 +610,7 @@ class lamList { $this->listPrintHeader(); echo "
\n"; - echo "
type . "&norefresh=true\" method=\"post\">\n"; + echo "type . "&norefresh=true\" method=\"post\">\n"; echo '
' . _('Create PDF file') . '
'; echo ''; @@ -763,6 +763,11 @@ class lamList { * Sets some internal parameters. */ protected function listGetParams() { + // check if only PDF should be shown + if (isset($_GET['printPDF'])) { + $this->showPDFPage($_GET['dn']); + exit(); + } // get current page if (isset($_GET["page"])) $this->page = $_GET["page"]; else $this->page = 1; diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index cd86f847..69dbbee3 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1070,8 +1070,7 @@ class accountContainer { } // create PDF file if (isset($_POST['accountContainerCreatePDF'])) { - // display PDf-file - createModulePDF(array($_SESSION[$this->base]), $_POST['pdfStructure']); + metaRefresh('../lists/list.php?printPDF=1&type=' . $this->type . "&dn=" . base64_encode($this->finalDN)); exit; } // module actions @@ -1383,7 +1382,6 @@ class accountContainer { * */ private function printSuccessPage() { - $pdfStructures = getPDFStructureDefinitions($this->type); $this->printPageHeader(); // Show success message if ($this->dn_orig == '') { @@ -1401,13 +1399,7 @@ class accountContainer { echo "LABEL_CREATE_ANOTHER_ACCOUNT . "\"> \n"; echo "LABEL_BACK_TO_ACCOUNT_LIST . "\"> \n"; echo "    "; - echo "\n"; echo "\n"; - printHelpLink(getHelp('', '403'), '403'); echo "
\n"; $this->printPageFooter(); }