use correct function to get list of PDF structures

This commit is contained in:
Roland Gruber 2005-07-18 15:55:54 +00:00
parent e36398666d
commit f694cb93f4
4 changed files with 4 additions and 4 deletions

View File

@ -958,7 +958,7 @@ class accountContainer {
$return[] = array(
0 => array('kind' => 'text', 'text' => ' ')
);
$pdfStructures = getAvailablePDFStructures($type);
$pdfStructures = getPDFStructureDefinitions($type);
$return[] = array(
0 => array('kind' => 'fieldset', 'legend' => '<b>PDF</b>', 'td' => array('colspan' => 2), 'value' => array(array(
0 => array('kind' => 'select', 'name' => 'pdfStructure', 'options' => $pdfStructures),

View File

@ -240,7 +240,7 @@ if (sizeof($info) > 0) {
echo ("<br><br><br>\n");
echo "<fieldset><legend><b>PDF</b></legend>\n";
echo ("<b>" . _('PDF structure') . ":</b>&nbsp;&nbsp;<select name=\"pdf_structure\">\n");
$pdf_structures = getAvailablePDFStructures($scope);
$pdf_structures = getPDFStructureDefinitions($scope);
foreach($pdf_structures as $pdf_structure) {
echo "<option " . (($pdf_structure == 'default') ? " selected" : "") . ">" . $pdf_structure . "</option>";
}

View File

@ -225,7 +225,7 @@ if (sizeof($info) > 0) {
echo ("<br><br><br>\n");
echo "<fieldset><legend><b>PDF</b></legend>\n";
echo ("<b>" . _('PDF structure') . ":</b>&nbsp;&nbsp;<select name=\"pdf_structure\">\n");
$pdf_structures = getAvailablePDFStructures('host');
$pdf_structures = getPDFStructureDefinitions($scope);
foreach($pdf_structures as $pdf_structure) {
echo "<option " . (($pdf_structure == 'default') ? " selected" : "") . ">" . $pdf_structure . "</option>";
}

View File

@ -285,7 +285,7 @@ if (sizeof($info) != 0) {
echo ("<br><br><br>\n");
echo "<fieldset><legend><b>PDF</b></legend>\n";
echo ("<b>" . _('PDF structure') . ":</b>&nbsp;&nbsp;<select name=\"pdf_structure\">\n");
$pdf_structures = getAvailablePDFStructures($scope);
$pdf_structures = getPDFStructureDefinitions($scope);
foreach($pdf_structures as $pdf_structure) {
echo "<option " . (($pdf_structure == 'default') ? " selected" : "") . ">" . $pdf_structure . "</option>";
}