diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc
index 6bcc2ed9..c4491c79 100644
--- a/lam/lib/modules.inc
+++ b/lam/lib/modules.inc
@@ -821,7 +821,7 @@ class accountContainer {
if ($post['outputpdf']) {
// Create / display PDf-file
// TODO: add selection for PDF structure in final page
- createModulePDF(array($_SESSION[$this->base]), 'default.xml');
+ createModulePDF(array($_SESSION[$this->base]), $post['pdfStructure']);
exit;
}
}
@@ -954,8 +954,16 @@ class accountContainer {
0 => array('kind' => 'text', 'text' => '', 'td' => array('colspan' => 3)));
$return[] = array(
0 => array('kind' => 'input', 'type' => 'submit', 'name' => 'createagain', 'value' => _('Create another account')),
- 1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'outputpdf', 'value' => _('Create PDF file') ),
- 2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'backmain', 'value' => _('Back to account list')));
+ 1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'backmain', 'value' => _('Back to account list')));
+ $return[] = array(
+ 0 => array('kind' => 'text', 'text' => ' ')
+ );
+ $pdfStructures = getAvailablePDFStructures($type);
+ $return[] = array(
+ 0 => array('kind' => 'fieldset', 'legend' => 'PDF', 'td' => array('colspan' => 2), 'value' => array(array(
+ 0 => array('kind' => 'select', 'name' => 'pdfStructure', 'options' => $pdfStructures),
+ 1 => array('kind' => 'input', 'type' => 'submit', 'name' => 'outputpdf', 'value' => _('Create PDF file')))
+ )));
}
else {
// loop through all suffixes
diff --git a/lam/templates/lists/listgroups.php b/lam/templates/lists/listgroups.php
index e62ce2af..914840a4 100644
--- a/lam/templates/lists/listgroups.php
+++ b/lam/templates/lists/listgroups.php
@@ -242,7 +242,7 @@ if (sizeof($info) > 0) {
echo ("" . _('PDF structure') . ": \n";
echo ("\n");
diff --git a/lam/templates/lists/listhosts.php b/lam/templates/lists/listhosts.php
index d20350b1..6fad7df1 100644
--- a/lam/templates/lists/listhosts.php
+++ b/lam/templates/lists/listhosts.php
@@ -227,7 +227,7 @@ if (sizeof($info) > 0) {
echo ("" . _('PDF structure') . ": \n";
echo ("\n");
diff --git a/lam/templates/lists/listusers.php b/lam/templates/lists/listusers.php
index 2696e988..e427c073 100644
--- a/lam/templates/lists/listusers.php
+++ b/lam/templates/lists/listusers.php
@@ -287,7 +287,7 @@ if (sizeof($info) != 0) {
echo ("" . _('PDF structure') . ": \n";
echo ("\n");