Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3a83b0d2

Von Philip Reetz vor fast 17 Jahren hinzugefügt

  • ID 3a83b0d259df476ddc0644aebd56ad677057d025
  • Vorgänger d707f7ac
  • Nachfolger ddf6b218

Reportgenerator erweitert, so dass man fuer die Reports beliebige Templates verwenden kann

Unterschiede anzeigen:

SL/ReportGenerator.pm
390 390
sub generate_html_content {
391 391
  my $self      = shift;
392 392
  my $variables = $self->prepare_html_content();
393

  
394
  return $self->{form}->parse_html_template('report_generator/html_report', $variables);
393
  my $report_template = $self->{form}->{report_template} ? $self->{form}->{report_template} : 'report_generator/html_report';
394
  # $form->parse_html_template('report_generator/html_report', $variables));
395
  return $self->{form}->parse_html_template($report_template, $variables);
395 396
}
396 397

  
397 398
sub verify_paper_size {
......
410 411
  my $form      = $self->{form};
411 412
  my $myconfig  = $self->{myconfig};
412 413
  my $opt       = $self->{options}->{pdf_export};
414
  my $report_template = $form->{report_template} ? $form->{report_template} : 'report_generator/pdf_report';
413 415

  
414 416
  my $opt_number     = $opt->{number}                     ? 'number : 1'    : '';
415 417
  my $opt_landscape  = $opt->{orientation} eq 'landscape' ? 'landscape : 1' : '';
......
466 468
    unlink $cfg_file_name;
467 469
    $form->error($locale->text('Could not write the temporary HTML file.'));
468 470
  }
469

  
470
  $html_file->print($form->parse_html_template('report_generator/pdf_report', $variables));
471
  # $form->parse_html_template('report_generator/pdf_report', $variables));
472
  $html_file->print($form->parse_html_template($report_template, $variables));
471 473
  $html_file->close();
472 474

  
473 475
  my $cmdline =

Auch abrufbar als: Unified diff