Revision 6f205006
Von Moritz Bunkus vor fast 17 Jahren hinzugefügt
SL/ReportGenerator.pm | ||
---|---|---|
7 | 7 |
|
8 | 8 |
use SL::Form; |
9 | 9 |
|
10 |
# Cause locales.pl to parse these files: |
|
11 |
# parse_html_template('report_generator/html_report') |
|
12 |
# parse_html_template('report_generator/pdf_report') |
|
13 |
|
|
10 | 14 |
sub new { |
11 | 15 |
my $type = shift; |
12 | 16 |
|
... | ... | |
21 | 25 |
'output_format' => 'HTML', |
22 | 26 |
'allow_pdf_export' => 1, |
23 | 27 |
'allow_csv_export' => 1, |
28 |
'html_template' => 'report_generator/html_report', |
|
29 |
'pdf_template' => 'report_generator/pdf_report', |
|
24 | 30 |
'pdf_export' => { |
25 | 31 |
'paper_size' => 'A4', |
26 | 32 |
'orientation' => 'landscape', |
... | ... | |
390 | 396 |
sub generate_html_content { |
391 | 397 |
my $self = shift; |
392 | 398 |
my $variables = $self->prepare_html_content(); |
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); |
|
399 |
|
|
400 |
return $self->{form}->parse_html_template($self->{options}->{html_template}, $variables); |
|
396 | 401 |
} |
397 | 402 |
|
398 | 403 |
sub verify_paper_size { |
... | ... | |
411 | 416 |
my $form = $self->{form}; |
412 | 417 |
my $myconfig = $self->{myconfig}; |
413 | 418 |
my $opt = $self->{options}->{pdf_export}; |
414 |
my $report_template = $form->{report_template} ? $form->{report_template} : 'report_generator/pdf_report'; |
|
415 | 419 |
|
416 | 420 |
my $opt_number = $opt->{number} ? 'number : 1' : ''; |
417 | 421 |
my $opt_landscape = $opt->{orientation} eq 'landscape' ? 'landscape : 1' : ''; |
... | ... | |
468 | 472 |
unlink $cfg_file_name; |
469 | 473 |
$form->error($locale->text('Could not write the temporary HTML file.')); |
470 | 474 |
} |
471 |
# $form->parse_html_template('report_generator/pdf_report', $variables)); |
|
472 |
$html_file->print($form->parse_html_template($report_template, $variables));
|
|
475 |
|
|
476 |
$html_file->print($form->parse_html_template($self->{options}->{pdf_template}, $variables));
|
|
473 | 477 |
$html_file->close(); |
474 | 478 |
|
475 | 479 |
my $cmdline = |
bin/mozilla/rp.pl | ||
---|---|---|
91 | 91 |
# $locale->text('Non-taxable Sales') |
92 | 92 |
# $locale->text('Non-taxable Purchases') |
93 | 93 |
|
94 |
# $form->parse_html_template('rp/html_report_susa') |
|
95 |
|
|
94 | 96 |
my $rp_access_map = { |
95 | 97 |
'projects' => 'report', |
96 | 98 |
'ar_aging' => 'general_ledger', |
... | ... | |
1417 | 1419 |
$report->set_options('output_format' => 'HTML', |
1418 | 1420 |
'title' => $form->{title}, |
1419 | 1421 |
'attachment_basename' => $attachment_basename . strftime('_%Y%m%d', localtime time), |
1422 |
'html_template' => 'report_generator/html_report_susa', |
|
1423 |
'pdf_template' => 'report_generator/html_report_susa', |
|
1420 | 1424 |
); |
1421 | 1425 |
$report->set_options_from_form(); |
1422 |
# $form->parse_html_template('report_generator/html_report_susa', $variables)); |
|
1423 |
$form->{report_template} = 'report_generator/html_report_susa'; |
|
1426 |
|
|
1424 | 1427 |
# add sort and escape callback, this one we use for the add sub |
1425 | 1428 |
$form->{callback} = $href .= "&sort=$form->{sort}"; |
1426 | 1429 |
|
locale/de/all | ||
---|---|---|
148 | 148 |
'Advance turnover tax return' => 'Umsatzsteuervoranmeldung', |
149 | 149 |
'Aktion' => 'Aktion', |
150 | 150 |
'All' => 'Alle', |
151 |
'All Accounts' => '', |
|
151 |
'All Accounts' => 'Alle Konten',
|
|
152 | 152 |
'All Datasets up to date!' => 'Alle Datenbanken sind auf aktuellem Stand.', |
153 | 153 |
'All changes in that file have been reverted.' => 'Alle Änderungen in dieser Datei wurden rückgängig gemacht.', |
154 | 154 |
'All database upgrades have been applied.' => 'Alle Datenbankupdates wurden eingespielt.', |
... | ... | |
911 | 911 |
'No backup file has been uploaded.' => 'Es wurde keine Sicherungsdatei hochgeladen.', |
912 | 912 |
'No bins have been added to this warehouse yet.' => 'Es wurden zu diesem Lager noch keine Lagerplätze angelegt.', |
913 | 913 |
'No customer has been selected yet.' => 'Es wurde noch kein Kunde ausgew?hlt.', |
914 |
'No data was found.' => 'Keine Daten gefunden',
|
|
914 |
'No data was found.' => 'Es wurden keine Daten gefunden.',
|
|
915 | 915 |
'No databases have been found on this server.' => 'Auf diesem Server wurden keine Datenbanken gefunden.', |
916 | 916 |
'No datasets have been selected.' => 'Es wurden keine Datenbanken ausgewählt.', |
917 | 917 |
'No dunnings have been selected for printing.' => 'Es wurden keine Mahnungen zum Drucken ausgewählt.', |
locale/de/rp | ||
---|---|---|
11 | 11 |
'Accrual' => 'Bilanzierung', |
12 | 12 |
'Address' => 'Adresse', |
13 | 13 |
'Advance turnover tax return' => 'Umsatzsteuervoranmeldung', |
14 |
'All Accounts' => 'All Accounts',
|
|
14 |
'All Accounts' => 'Alle Konten',
|
|
15 | 15 |
'All reports' => 'Alle Berichte (Kontenübersicht, Summen- u. Saldenliste, GuV, BWA, Bilanz, Projektbuchungen)', |
16 | 16 |
'Amount' => 'Betrag', |
17 | 17 |
'Apr' => 'Apr', |
templates/webpages/report_generator/html_report_susa_de.html | ||
---|---|---|
1 |
[% USE HTML %]<body> |
|
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
function submit_report_generator_form(nextsub) { |
|
6 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
7 |
document.report_generator_form.submit(); |
|
8 |
} |
|
9 |
|
|
10 |
--> |
|
11 |
</script> |
|
12 |
|
|
13 |
<style type="text/css"> |
|
14 |
<!-- |
|
15 |
.top_border { |
|
16 |
border-top: solid black; |
|
17 |
border-width: 4px; |
|
18 |
} |
|
19 |
.bottom_border { |
|
20 |
border-bottom: solid black; |
|
21 |
border-width: 4px; |
|
22 |
} |
|
23 |
--> |
|
24 |
</style> |
|
25 |
|
|
26 |
[% IF MESSAGE %] |
|
27 |
<p>[% MESSAGE %]</p> |
|
28 |
[% END %] |
|
29 |
|
|
30 |
<div class="listtop" width="100%">Summen- und Saldenliste [% template_fromto %]</div> |
|
31 |
|
|
32 |
[% IF TOP_INFO_TEXT %] |
|
33 |
<p>[% TOP_INFO_TEXT %]</p> |
|
34 |
[% END %] |
|
35 |
|
|
36 |
[% RAW_TOP_INFO_TEXT %] |
|
37 |
|
|
38 |
[% IF DATA_PRESENT %] |
|
39 |
<p> |
|
40 |
<table width="100%"> |
|
41 |
<tr> |
|
42 |
<th class="listheading" rowspan=2>Kontonummer</th> |
|
43 |
<th class="listheading" rowspan=2>Beschreibung</th> |
|
44 |
<th class="listheading" rowspan=2>Letzte Buchung</th> |
|
45 |
<th class="listheading" colspan=2>Er?ffnungsbilanzwerte</th> |
|
46 |
<th class="listheading" colspan=2>Summe f?r [% template_fromto %]</th> |
|
47 |
<th class="listheading" colspan=2>Summe per [% template_to %]</th> |
|
48 |
<th class="listheading" colspan=2>Saldo per [% template_to %]</th> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th class="listheading">Aktiva</th> |
|
52 |
<th class="listheading">Passiva</th> |
|
53 |
<th class="listheading">Soll</th> |
|
54 |
<th class="listheading">Haben</th> |
|
55 |
<th class="listheading">Soll</th> |
|
56 |
<th class="listheading">Haben</th> |
|
57 |
<th class="listheading">Soll</th> |
|
58 |
<th class="listheading">Haben</th> |
|
59 |
|
|
60 |
[% FOREACH row = ROWS %] |
|
61 |
[% IF row.IS_CONTROL %] |
|
62 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
63 |
[% ELSE %] |
|
64 |
<tr class="listrow[% row.outer_idx_odd %]"> |
|
65 |
[%- FOREACH col = row.COLUMNS %] |
|
66 |
<td[% IF col.align %] align="[% col.align %]"[% END %] |
|
67 |
[%- IF col.valign %] valign="[% col.valign %]"[%- END %] |
|
68 |
[%- SET tdclass = '' %] |
|
69 |
[%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %] |
|
70 |
[%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %] |
|
71 |
[%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %] |
|
72 |
[%- IF tdclass %] class="[% tdclass %]"[%- END %]> |
|
73 |
[%- IF col.raw_data %][%- col.raw_data %][%- END %] |
|
74 |
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] |
|
75 |
[%- IF cell_row.data != '' %] |
|
76 |
[%- IF cell_row.link %]<a href="[% cell_row.link %]">[%- END %] |
|
77 |
[%- cell_row.data %] |
|
78 |
[%- IF cell_row.link %]</a>[%- END %] |
|
79 |
[%- END %] |
|
80 |
[%- UNLESS iterator.last %]<br>[%- END %] |
|
81 |
[%- END %] |
|
82 |
</td> |
|
83 |
[%- END %] |
|
84 |
</tr> |
|
85 |
[% END %] |
|
86 |
[% END %] |
|
87 |
|
|
88 |
<tr><td colspan="[% NUM_COLUMNS %]"><hr size="3" noshade></td></tr> |
|
89 |
|
|
90 |
</table> |
|
91 |
</p> |
|
92 |
[% ELSE %] |
|
93 |
<p>Keine Daten gefunden</p> |
|
94 |
[% END %] |
|
95 |
|
|
96 |
[% RAW_BOTTOM_INFO_TEXT %] |
|
97 |
|
|
98 |
[% IF BOTTOM_INFO_TEXT %] |
|
99 |
<p>[% BOTTOM_INFO_TEXT %]</p> |
|
100 |
[% END %] |
|
101 |
|
|
102 |
[% IF SHOW_EXPORT_BUTTONS %] |
|
103 |
<form action="[% HTML.escape(script) %]" name="report_generator_form" method="post"> |
|
104 |
[% FOREACH var = EXPORT_VARIABLES %]<input type="hidden" name="report_generator_hidden_[% var.key %]" value="[% HTML.escape(var.value) %]"> |
|
105 |
[% END %] |
|
106 |
|
|
107 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
108 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
109 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
110 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
111 |
|
|
112 |
<p> |
|
113 |
Listenexport<br> |
|
114 |
[% IF ALLOW_PDF_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_pdf')">Als PDF exportieren</button>[% END %] |
|
115 |
[% IF ALLOW_CSV_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_csv')">Als CSV exportieren</button>[% END %] |
|
116 |
</p> |
|
117 |
</form> |
|
118 |
[% END %] |
|
119 |
|
|
120 |
</body> |
templates/webpages/report_generator/html_report_susa_master.html | ||
---|---|---|
1 |
[% USE HTML %]<body> |
|
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
function submit_report_generator_form(nextsub) { |
|
6 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
7 |
document.report_generator_form.submit(); |
|
8 |
} |
|
9 |
|
|
10 |
--> |
|
11 |
</script> |
|
12 |
|
|
13 |
<style type="text/css"> |
|
14 |
<!-- |
|
15 |
.top_border { |
|
16 |
border-top: solid black; |
|
17 |
border-width: 4px; |
|
18 |
} |
|
19 |
.bottom_border { |
|
20 |
border-bottom: solid black; |
|
21 |
border-width: 4px; |
|
22 |
} |
|
23 |
--> |
|
24 |
</style> |
|
25 |
|
|
26 |
[% IF MESSAGE %] |
|
27 |
<p>[% MESSAGE %]</p> |
|
28 |
[% END %] |
|
29 |
|
|
30 |
<div class="listtop" width="100%"><translate>Summen- und Saldenliste</translate> [% template_fromto %]</div> |
|
31 |
|
|
32 |
[% IF TOP_INFO_TEXT %] |
|
33 |
<p>[% TOP_INFO_TEXT %]</p> |
|
34 |
[% END %] |
|
35 |
|
|
36 |
[% RAW_TOP_INFO_TEXT %] |
|
37 |
|
|
38 |
[% IF DATA_PRESENT %] |
|
39 |
<p> |
|
40 |
<table width="100%"> |
|
41 |
<tr> |
|
42 |
<th class="listheading" rowspan=2><translate>Account Number</translate></th> |
|
43 |
<th class="listheading" rowspan=2><translate>Description</translate></th> |
|
44 |
<th class="listheading" rowspan=2><translate>Last Transaction</translate></th> |
|
45 |
<th class="listheading" colspan=2><translate>Starting Balance</translate></th> |
|
46 |
<th class="listheading" colspan=2><translate>Sum for</translate> [% template_fromto %]</th> |
|
47 |
<th class="listheading" colspan=2><translate>Sum per</translate> [% template_to %]</th> |
|
48 |
<th class="listheading" colspan=2><translate>Saldo per</translate> [% template_to %]</th> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th class="listheading"><translate>Assets</translate></th> |
|
52 |
<th class="listheading"><translate>Equity</translate></th> |
|
53 |
<th class="listheading"><translate>Debit</translate></th> |
|
54 |
<th class="listheading"><translate>Credit</translate></th> |
|
55 |
<th class="listheading"><translate>Debit</translate></th> |
|
56 |
<th class="listheading"><translate>Credit</translate></th> |
|
57 |
<th class="listheading"><translate>Debit</translate></th> |
|
58 |
<th class="listheading"><translate>Credit</translate></th> |
|
59 |
|
|
60 |
[% FOREACH row = ROWS %] |
|
61 |
[% IF row.IS_CONTROL %] |
|
62 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
63 |
[% ELSE %] |
|
64 |
<tr class="listrow[% row.outer_idx_odd %]"> |
|
65 |
[%- FOREACH col = row.COLUMNS %] |
|
66 |
<td[% IF col.align %] align="[% col.align %]"[% END %] |
|
67 |
[%- IF col.valign %] valign="[% col.valign %]"[%- END %] |
|
68 |
[%- SET tdclass = '' %] |
|
69 |
[%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %] |
|
70 |
[%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %] |
|
71 |
[%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %] |
|
72 |
[%- IF tdclass %] class="[% tdclass %]"[%- END %]> |
|
73 |
[%- IF col.raw_data %][%- col.raw_data %][%- END %] |
|
74 |
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] |
|
75 |
[%- IF cell_row.data != '' %] |
|
76 |
[%- IF cell_row.link %]<a href="[% cell_row.link %]">[%- END %] |
|
77 |
[%- cell_row.data %] |
|
78 |
[%- IF cell_row.link %]</a>[%- END %] |
|
79 |
[%- END %] |
|
80 |
[%- UNLESS iterator.last %]<br>[%- END %] |
|
81 |
[%- END %] |
|
82 |
</td> |
|
83 |
[%- END %] |
|
84 |
</tr> |
|
85 |
[% END %] |
|
86 |
[% END %] |
|
87 |
|
|
88 |
<tr><td colspan="[% NUM_COLUMNS %]"><hr size="3" noshade></td></tr> |
|
89 |
|
|
90 |
</table> |
|
91 |
</p> |
|
92 |
[% ELSE %] |
|
93 |
<p><translate>No data was found.</translate></p> |
|
94 |
[% END %] |
|
95 |
|
|
96 |
[% RAW_BOTTOM_INFO_TEXT %] |
|
97 |
|
|
98 |
[% IF BOTTOM_INFO_TEXT %] |
|
99 |
<p>[% BOTTOM_INFO_TEXT %]</p> |
|
100 |
[% END %] |
|
101 |
|
|
102 |
[% IF SHOW_EXPORT_BUTTONS %] |
|
103 |
<form action="[% HTML.escape(script) %]" name="report_generator_form" method="post"> |
|
104 |
[% FOREACH var = EXPORT_VARIABLES %]<input type="hidden" name="report_generator_hidden_[% var.key %]" value="[% HTML.escape(var.value) %]"> |
|
105 |
[% END %] |
|
106 |
|
|
107 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
108 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
109 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
110 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
111 |
|
|
112 |
<p> |
|
113 |
Listenexport<br> |
|
114 |
[% IF ALLOW_PDF_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_pdf')">Als PDF exportieren</button>[% END %] |
|
115 |
[% IF ALLOW_CSV_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_csv')">Als CSV exportieren</button>[% END %] |
|
116 |
</p> |
|
117 |
</form> |
|
118 |
[% END %] |
|
119 |
|
|
120 |
</body> |
templates/webpages/rp/html_report_susa_de.html | ||
---|---|---|
1 |
[% USE HTML %]<body> |
|
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
function submit_report_generator_form(nextsub) { |
|
6 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
7 |
document.report_generator_form.submit(); |
|
8 |
} |
|
9 |
|
|
10 |
--> |
|
11 |
</script> |
|
12 |
|
|
13 |
<style type="text/css"> |
|
14 |
<!-- |
|
15 |
.top_border { |
|
16 |
border-top: solid black; |
|
17 |
border-width: 4px; |
|
18 |
} |
|
19 |
.bottom_border { |
|
20 |
border-bottom: solid black; |
|
21 |
border-width: 4px; |
|
22 |
} |
|
23 |
--> |
|
24 |
</style> |
|
25 |
|
|
26 |
[% IF MESSAGE %] |
|
27 |
<p>[% MESSAGE %]</p> |
|
28 |
[% END %] |
|
29 |
|
|
30 |
<div class="listtop" width="100%">Summen- und Saldenliste [% template_fromto %]</div> |
|
31 |
|
|
32 |
[% IF TOP_INFO_TEXT %] |
|
33 |
<p>[% TOP_INFO_TEXT %]</p> |
|
34 |
[% END %] |
|
35 |
|
|
36 |
[% RAW_TOP_INFO_TEXT %] |
|
37 |
|
|
38 |
[% IF DATA_PRESENT %] |
|
39 |
<p> |
|
40 |
<table width="100%"> |
|
41 |
<tr> |
|
42 |
<th class="listheading" rowspan=2>Kontonummer</th> |
|
43 |
<th class="listheading" rowspan=2>Beschreibung</th> |
|
44 |
<th class="listheading" rowspan=2>Letzte Buchung</th> |
|
45 |
<th class="listheading" colspan=2>Er?ffnungsbilanzwerte</th> |
|
46 |
<th class="listheading" colspan=2>Summe f?r [% template_fromto %]</th> |
|
47 |
<th class="listheading" colspan=2>Summe per [% template_to %]</th> |
|
48 |
<th class="listheading" colspan=2>Saldo per [% template_to %]</th> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th class="listheading">Aktiva</th> |
|
52 |
<th class="listheading">Passiva</th> |
|
53 |
<th class="listheading">Soll</th> |
|
54 |
<th class="listheading">Haben</th> |
|
55 |
<th class="listheading">Soll</th> |
|
56 |
<th class="listheading">Haben</th> |
|
57 |
<th class="listheading">Soll</th> |
|
58 |
<th class="listheading">Haben</th> |
|
59 |
|
|
60 |
[% FOREACH row = ROWS %] |
|
61 |
[% IF row.IS_CONTROL %] |
|
62 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
63 |
[% ELSE %] |
|
64 |
<tr class="listrow[% row.outer_idx_odd %]"> |
|
65 |
[%- FOREACH col = row.COLUMNS %] |
|
66 |
<td[% IF col.align %] align="[% col.align %]"[% END %] |
|
67 |
[%- IF col.valign %] valign="[% col.valign %]"[%- END %] |
|
68 |
[%- SET tdclass = '' %] |
|
69 |
[%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %] |
|
70 |
[%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %] |
|
71 |
[%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %] |
|
72 |
[%- IF tdclass %] class="[% tdclass %]"[%- END %]> |
|
73 |
[%- IF col.raw_data %][%- col.raw_data %][%- END %] |
|
74 |
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] |
|
75 |
[%- IF cell_row.data != '' %] |
|
76 |
[%- IF cell_row.link %]<a href="[% cell_row.link %]">[%- END %] |
|
77 |
[%- cell_row.data %] |
|
78 |
[%- IF cell_row.link %]</a>[%- END %] |
|
79 |
[%- END %] |
|
80 |
[%- UNLESS iterator.last %]<br>[%- END %] |
|
81 |
[%- END %] |
|
82 |
</td> |
|
83 |
[%- END %] |
|
84 |
</tr> |
|
85 |
[% END %] |
|
86 |
[% END %] |
|
87 |
|
|
88 |
<tr><td colspan="[% NUM_COLUMNS %]"><hr size="3" noshade></td></tr> |
|
89 |
|
|
90 |
</table> |
|
91 |
</p> |
|
92 |
[% ELSE %] |
|
93 |
<p>Es wurden keine Daten gefunden.</p> |
|
94 |
[% END %] |
|
95 |
|
|
96 |
[% RAW_BOTTOM_INFO_TEXT %] |
|
97 |
|
|
98 |
[% IF BOTTOM_INFO_TEXT %] |
|
99 |
<p>[% BOTTOM_INFO_TEXT %]</p> |
|
100 |
[% END %] |
|
101 |
|
|
102 |
[% IF SHOW_EXPORT_BUTTONS %] |
|
103 |
<form action="[% HTML.escape(script) %]" name="report_generator_form" method="post"> |
|
104 |
[% FOREACH var = EXPORT_VARIABLES %]<input type="hidden" name="report_generator_hidden_[% var.key %]" value="[% HTML.escape(var.value) %]"> |
|
105 |
[% END %] |
|
106 |
|
|
107 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
108 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
109 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
110 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
111 |
|
|
112 |
<p> |
|
113 |
Listenexport<br> |
|
114 |
[% IF ALLOW_PDF_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_pdf')">Als PDF exportieren</button>[% END %] |
|
115 |
[% IF ALLOW_CSV_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_csv')">Als CSV exportieren</button>[% END %] |
|
116 |
</p> |
|
117 |
</form> |
|
118 |
[% END %] |
|
119 |
|
|
120 |
</body> |
templates/webpages/rp/html_report_susa_master.html | ||
---|---|---|
1 |
[% USE HTML %]<body> |
|
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
function submit_report_generator_form(nextsub) { |
|
6 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
7 |
document.report_generator_form.submit(); |
|
8 |
} |
|
9 |
|
|
10 |
--> |
|
11 |
</script> |
|
12 |
|
|
13 |
<style type="text/css"> |
|
14 |
<!-- |
|
15 |
.top_border { |
|
16 |
border-top: solid black; |
|
17 |
border-width: 4px; |
|
18 |
} |
|
19 |
.bottom_border { |
|
20 |
border-bottom: solid black; |
|
21 |
border-width: 4px; |
|
22 |
} |
|
23 |
--> |
|
24 |
</style> |
|
25 |
|
|
26 |
[% IF MESSAGE %] |
|
27 |
<p>[% MESSAGE %]</p> |
|
28 |
[% END %] |
|
29 |
|
|
30 |
<div class="listtop" width="100%"><translate>Summen- und Saldenliste</translate> [% template_fromto %]</div> |
|
31 |
|
|
32 |
[% IF TOP_INFO_TEXT %] |
|
33 |
<p>[% TOP_INFO_TEXT %]</p> |
|
34 |
[% END %] |
|
35 |
|
|
36 |
[% RAW_TOP_INFO_TEXT %] |
|
37 |
|
|
38 |
[% IF DATA_PRESENT %] |
|
39 |
<p> |
|
40 |
<table width="100%"> |
|
41 |
<tr> |
|
42 |
<th class="listheading" rowspan=2><translate>Account Number</translate></th> |
|
43 |
<th class="listheading" rowspan=2><translate>Description</translate></th> |
|
44 |
<th class="listheading" rowspan=2><translate>Last Transaction</translate></th> |
|
45 |
<th class="listheading" colspan=2><translate>Starting Balance</translate></th> |
|
46 |
<th class="listheading" colspan=2><translate>Sum for</translate> [% template_fromto %]</th> |
|
47 |
<th class="listheading" colspan=2><translate>Sum per</translate> [% template_to %]</th> |
|
48 |
<th class="listheading" colspan=2><translate>Saldo per</translate> [% template_to %]</th> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th class="listheading"><translate>Assets</translate></th> |
|
52 |
<th class="listheading"><translate>Equity</translate></th> |
|
53 |
<th class="listheading"><translate>Debit</translate></th> |
|
54 |
<th class="listheading"><translate>Credit</translate></th> |
|
55 |
<th class="listheading"><translate>Debit</translate></th> |
|
56 |
<th class="listheading"><translate>Credit</translate></th> |
|
57 |
<th class="listheading"><translate>Debit</translate></th> |
|
58 |
<th class="listheading"><translate>Credit</translate></th> |
|
59 |
|
|
60 |
[% FOREACH row = ROWS %] |
|
61 |
[% IF row.IS_CONTROL %] |
|
62 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
63 |
[% ELSE %] |
|
64 |
<tr class="listrow[% row.outer_idx_odd %]"> |
|
65 |
[%- FOREACH col = row.COLUMNS %] |
|
66 |
<td[% IF col.align %] align="[% col.align %]"[% END %] |
|
67 |
[%- IF col.valign %] valign="[% col.valign %]"[%- END %] |
|
68 |
[%- SET tdclass = '' %] |
|
69 |
[%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %] |
|
70 |
[%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %] |
|
71 |
[%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %] |
|
72 |
[%- IF tdclass %] class="[% tdclass %]"[%- END %]> |
|
73 |
[%- IF col.raw_data %][%- col.raw_data %][%- END %] |
|
74 |
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] |
|
75 |
[%- IF cell_row.data != '' %] |
|
76 |
[%- IF cell_row.link %]<a href="[% cell_row.link %]">[%- END %] |
|
77 |
[%- cell_row.data %] |
|
78 |
[%- IF cell_row.link %]</a>[%- END %] |
|
79 |
[%- END %] |
|
80 |
[%- UNLESS iterator.last %]<br>[%- END %] |
|
81 |
[%- END %] |
|
82 |
</td> |
|
83 |
[%- END %] |
|
84 |
</tr> |
|
85 |
[% END %] |
|
86 |
[% END %] |
|
87 |
|
|
88 |
<tr><td colspan="[% NUM_COLUMNS %]"><hr size="3" noshade></td></tr> |
|
89 |
|
|
90 |
</table> |
|
91 |
</p> |
|
92 |
[% ELSE %] |
|
93 |
<p><translate>No data was found.</translate></p> |
|
94 |
[% END %] |
|
95 |
|
|
96 |
[% RAW_BOTTOM_INFO_TEXT %] |
|
97 |
|
|
98 |
[% IF BOTTOM_INFO_TEXT %] |
|
99 |
<p>[% BOTTOM_INFO_TEXT %]</p> |
|
100 |
[% END %] |
|
101 |
|
|
102 |
[% IF SHOW_EXPORT_BUTTONS %] |
|
103 |
<form action="[% HTML.escape(script) %]" name="report_generator_form" method="post"> |
|
104 |
[% FOREACH var = EXPORT_VARIABLES %]<input type="hidden" name="report_generator_hidden_[% var.key %]" value="[% HTML.escape(var.value) %]"> |
|
105 |
[% END %] |
|
106 |
|
|
107 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
108 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
109 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
110 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
111 |
|
|
112 |
<p> |
|
113 |
Listenexport<br> |
|
114 |
[% IF ALLOW_PDF_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_pdf')">Als PDF exportieren</button>[% END %] |
|
115 |
[% IF ALLOW_CSV_EXPORT %]<button type="button" class="submit" onclick="submit_report_generator_form('report_generator_export_as_csv')">Als CSV exportieren</button>[% END %] |
|
116 |
</p> |
|
117 |
</form> |
|
118 |
[% END %] |
|
119 |
|
|
120 |
</body> |
Auch abrufbar als: Unified diff
Übergabe des Templates an den ReportGenerator nicht über $form, sondern über ReportGenerator::set_options().