Revision 1bb0e36f
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/report_generator/html_report.html | ||
---|---|---|
1 |
<style type="text/css"> |
|
2 |
<!-- |
|
3 |
.top_border { |
|
4 |
border-top: solid black; |
|
5 |
border-width: 4px; |
|
6 |
} |
|
7 |
.bottom_border { |
|
8 |
border-bottom: solid black; |
|
9 |
border-width: 4px; |
|
10 |
} |
|
11 |
--> |
|
12 |
</style> |
|
13 |
|
|
14 |
[% IF MESSAGE %] |
|
15 |
<p>[% MESSAGE %]</p> |
|
16 |
[% END %] |
|
17 |
|
|
18 |
<h1>[% TITLE %]</h1> |
|
19 |
|
|
20 |
[%- INCLUDE 'common/flash.html' %] |
|
21 |
|
|
22 |
[% IF TOP_INFO_TEXT %] |
|
23 |
<p>[% TOP_INFO_TEXT %]</p> |
|
24 |
[% END %] |
|
25 |
|
|
26 |
[% RAW_TOP_INFO_TEXT %] |
|
27 |
|
|
28 |
[% IF DATA_PRESENT %] |
|
29 |
<p> |
|
30 |
<table [% IF TABLE_CLASS %]class="[% TABLE_CLASS %]"[% END %] id="report_table_id" width="100%"> |
|
31 |
<thead> |
|
32 |
[%- FOREACH row = HEADER_ROWS %] |
|
33 |
<tr> |
|
34 |
[% FOREACH col = row %] |
|
35 |
<th class="listheading" |
|
36 |
[%- IF col.align %] align="[% HTML.escape(col.align) %]" style="text-align: [% HTML.escape(col.align) %]"[% END -%] |
|
37 |
[%- IF col.colspan && col.colspan > 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%] |
|
38 |
> |
|
39 |
[%- IF col.raw_header_data %] |
|
40 |
[% col.raw_header_data %] |
|
41 | 1 |
[% USE T8 %] |
42 | 2 |
[% USE HTML %] |
43 | 3 |
|
4 |
<h1>[% TITLE %]</h1> |
|
5 |
|
|
6 |
[% IF MESSAGE %] |
|
7 |
<p class="message">[% MESSAGE %]</p> |
|
8 |
[% END %] |
|
9 |
|
|
10 |
[% INCLUDE 'common/flash.html' %] |
|
11 |
|
|
12 |
[% IF TOP_INFO_TEXT %]<p>[% TOP_INFO_TEXT %]</p>[% END %] |
|
13 |
[% RAW_TOP_INFO_TEXT %] |
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
[% IF DATA_PRESENT %] |
|
18 |
<table class="tbl-list[% IF TABLE_CLASS %] [% TABLE_CLASS %][% END %]" id="report_table_id"> |
|
19 |
<thead> |
|
20 |
[% FOREACH row = HEADER_ROWS %] |
|
21 |
<tr> |
|
22 |
[% FOREACH col = row %] |
|
23 |
<th[% IF col.align %] class="[% HTML.escape(col.align) %]"[% END %][% IF col.colspan && col.colspan > 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END %]> |
|
24 |
[% IF col.raw_header_data %] |
|
25 |
[% col.raw_header_data %] |
|
26 |
[% ELSE %] |
|
27 |
[% IF col.link %]<a class="[% col.link_class ? col.link_class : 'report-generator-header-link' %]" href="[% HTML.escape(col.link) %]">[% END %] |
|
28 |
[% col.text %] |
|
29 |
[% IF col.show_sort_indicator %]<img src="image/[% IF col.sort_indicator_direction %]down[% ELSE %]up[% END %].png">[% END %] |
|
30 |
[% IF col.link %]</a>[% END %] |
|
31 |
[% END %] |
|
32 |
</th> |
|
33 |
[% END %] |
|
34 |
</tr> |
|
35 |
[% END %] |
|
36 |
</thead> |
|
37 |
<tbody> |
|
38 |
[% FOREACH row = ROWS %] |
|
39 |
[% IF row.IS_CONTROL %] |
|
40 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
44 | 41 |
[% ELSE %] |
45 |
[%- IF col.link -%]<a class="[% col.link_class ? col.link_class : 'report-generator-header-link' %]" href="[% HTML.escape(col.link) %]">[%- END -%] |
|
46 |
[%- col.text -%] |
|
47 |
[%- IF col.show_sort_indicator -%]<img border="0" src="image/[% IF col.sort_indicator_direction %]down[% ELSE %]up[% END %].png">[%- END -%] |
|
48 |
[%- IF col.link -%]</a>[%- END -%] |
|
49 |
[%- END %] |
|
50 |
</th> |
|
42 |
<tr> |
|
43 |
[% FOREACH col = row.COLUMNS %] |
|
44 |
<td[% IF col.align %] class="[% col.align %]"[% END %][% IF col.colspan && col.colspan>1 %] colspan="[% HTML.escape(col.colspan) %]"[% END %]> |
|
45 |
[% IF col.raw_data %] |
|
46 |
[% col.raw_data %] |
|
47 |
[% ELSE %] |
|
48 |
[% USE iterator(col.CELL_ROWS) %] |
|
49 |
[% FOREACH cell_row = iterator %] |
|
50 |
[% IF cell_row.data != '' %] |
|
51 |
[% IF cell_row.link %]<a href="[% HTML.escape(cell_row.link) %]"[% IF cell_row.link_class %] class="[% cell_row.link_class %]"[% END %]>[% END %] |
|
52 |
[% cell_row.data %] |
|
53 |
[% IF cell_row.link %]</a>[% END %] |
|
54 |
[% END %] |
|
55 |
[% UNLESS iterator.last %]<br>[% END %] |
|
56 |
[% END %] |
|
57 |
[% END %] |
|
58 |
</td> |
|
59 |
[% END %] |
|
60 |
</tr> |
|
61 |
[% END %] |
|
51 | 62 |
[% END %] |
52 |
</tr> |
|
53 |
[%- END %] |
|
54 |
</thead> |
|
55 |
|
|
56 |
<tbody> |
|
57 |
[% FOREACH row = ROWS %] |
|
58 |
[% IF row.IS_CONTROL %] |
|
59 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
60 |
[% ELSE %] |
|
61 |
<tr class="listrow[% row.outer_idx_odd %]"> |
|
62 |
[%- FOREACH col = row.COLUMNS %] |
|
63 |
<td[% IF col.align %] align="[% col.align %]"[% END %] |
|
64 |
[%- IF col.valign %] valign="[% col.valign %]"[%- END %] |
|
65 |
[%- IF col.colspan && col.colspan > 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%] |
|
66 |
[%- SET tdclass = '' %] |
|
67 |
[%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %] |
|
68 |
[%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %] |
|
69 |
[%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %] |
|
70 |
[%- IF tdclass %] class="[% tdclass %]"[%- END %]> |
|
71 |
[%- IF col.raw_data %] |
|
72 |
[%- col.raw_data %] |
|
73 |
[%- ELSE %] |
|
74 |
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] |
|
75 |
[%- IF cell_row.data != '' %] |
|
76 |
[%- IF cell_row.link %]<a href="[% HTML.escape(cell_row.link) %]"[% IF cell_row.link_class %] class="[% cell_row.link_class %]"[% END %]>[%- END %] |
|
77 |
[%- cell_row.data %] |
|
78 |
[%- IF cell_row.link %]</a>[%- END %] |
|
79 |
[%- END %] |
|
80 |
[%- UNLESS iterator.last %]<br>[%- END %] |
|
81 |
[%- END %] |
|
82 |
[%- END %] |
|
83 |
</td> |
|
84 |
[%- END %] |
|
85 |
</tr> |
|
86 |
[% END %] |
|
87 |
[% END %] |
|
88 |
|
|
89 |
</tbody> |
|
63 |
</tbody> |
|
90 | 64 |
</table> |
91 |
<hr size="3" noshade> |
|
92 |
</p> |
|
93 |
[% ELSE %] |
|
94 |
<p class="message_hint">[% 'No data was found.' | $T8 %]</p> |
|
95 |
[% END %] |
|
65 |
[% ELSE %] |
|
66 |
<p class="message message_hint">[% 'No data was found.' | $T8 %]</p> |
|
67 |
[% END %] |
|
96 | 68 |
|
97 |
[% RAW_BOTTOM_INFO_TEXT %]
|
|
69 |
[% RAW_BOTTOM_INFO_TEXT %] |
|
98 | 70 |
|
99 |
[% IF BOTTOM_INFO_TEXT %]
|
|
71 |
[% IF BOTTOM_INFO_TEXT %] |
|
100 | 72 |
<p>[% BOTTOM_INFO_TEXT %]</p> |
101 |
[% END %]
|
|
73 |
[% END %] |
|
102 | 74 |
|
103 |
[% IF SHOW_EXPORT_BUTTONS %]
|
|
75 |
[% IF SHOW_EXPORT_BUTTONS %] |
|
104 | 76 |
<form action="[% HTML.escape(script) %]" name="report_generator_form" id="report_generator_form" method="post"> |
105 |
[% FOREACH var = EXPORT_VARIABLES %]<input type="hidden" name="report_generator_hidden_[% var.key %]" value="[% HTML.escape(var.value) %]"> |
|
106 |
[% END %] |
|
107 |
|
|
108 |
[%- IF CONTROLLER_DISPATCH %] |
|
109 |
[% IF !SKIP_BUTTONS %] |
|
110 |
<input type="hidden" name="action" value="[% CONTROLLER_DISPATCH %]/dispatch"> |
|
111 |
[%- END %][%# !SKIP_BUTTONS %] |
|
112 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
113 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
114 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
115 |
|
|
116 |
[% IF !SKIP_BUTTONS %] |
|
117 |
<p> |
|
118 |
[% 'List export' | $T8 %]<br> |
|
119 |
[% IF ALLOW_PDF_EXPORT %]<input type="submit" name="action_report_generator_export_as_pdf" value="[% 'Export as PDF' | $T8 %]">[% END %] |
|
120 |
[% IF ALLOW_CSV_EXPORT %]<input type="submit" name="action_report_generator_export_as_csv" value="[% 'Export as CSV' | $T8 %]">[% END %] |
|
121 |
</p> |
|
122 |
[%- END %][%# !SKIP_BUTTONS %] |
|
123 |
[%- ELSE %] |
|
124 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
125 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
126 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
127 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
128 |
|
|
129 |
[% IF !SKIP_BUTTONS %] |
|
130 |
<p> |
|
131 |
[% 'List export' | $T8 %]<br> |
|
132 |
[% IF ALLOW_PDF_EXPORT %]<input type="submit" class="submit" onclick="submit_report_generator_form('report_generator_export_as_pdf')" value="[% 'Export as PDF' | $T8 %]">[% END %] |
|
133 |
[% IF ALLOW_CSV_EXPORT %]<input type="submit" class="submit" onclick="submit_report_generator_form('report_generator_export_as_csv')" value="[% 'Export as CSV' | $T8 %]">[% END %] |
|
134 |
</p> |
|
135 |
<script type="text/javascript"> <!-- |
|
136 |
function submit_report_generator_form(nextsub) { |
|
137 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
138 |
document.report_generator_form.submit(); |
|
139 |
} // --> |
|
140 |
</script> |
|
141 |
[%- END %][%# !SKIP_BUTTONS %] |
|
142 |
[%- END %] |
|
77 |
[% FOREACH var = EXPORT_VARIABLES %] |
|
78 |
<input type="hidden" name="report_generator_hidden_[% var.key %]" value="[% HTML.escape(var.value) %]"> |
|
79 |
[% END %] |
|
80 |
|
|
81 |
[% IF CONTROLLER_DISPATCH %] |
|
82 |
[% IF !SKIP_BUTTONS %] |
|
83 |
<input type="hidden" name="action" value="[% CONTROLLER_DISPATCH %]/dispatch"> |
|
84 |
[% END %][%# !SKIP_BUTTONS %] |
|
85 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
86 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
87 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
88 |
|
|
89 |
[% IF !SKIP_BUTTONS %] |
|
90 |
<p> |
|
91 |
[% 'List export' | $T8 %]<br> |
|
92 |
[% IF ALLOW_PDF_EXPORT %]<input type="submit" name="action_report_generator_export_as_pdf" value="[% 'Export as PDF' | $T8 %]">[% END %] |
|
93 |
[% IF ALLOW_CSV_EXPORT %]<input type="submit" name="action_report_generator_export_as_csv" value="[% 'Export as CSV' | $T8 %]">[% END %] |
|
94 |
</p> |
|
95 |
[% END %][%# !SKIP_BUTTONS %] |
|
96 |
|
|
97 |
[% ELSE %] |
|
98 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
99 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
100 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
101 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
102 |
|
|
103 |
[% IF !SKIP_BUTTONS %] |
|
104 |
<p> |
|
105 |
[% 'List export' | $T8 %]<br> |
|
106 |
[% IF ALLOW_PDF_EXPORT %]<input type="submit" onclick="submit_report_generator_form('report_generator_export_as_pdf')" value="[% 'Export as PDF' | $T8 %]">[% END %] |
|
107 |
[% IF ALLOW_CSV_EXPORT %]<input type="submit" onclick="submit_report_generator_form('report_generator_export_as_csv')" value="[% 'Export as CSV' | $T8 %]">[% END %] |
|
108 |
</p> |
|
109 |
<script type="text/javascript"> <!-- |
|
110 |
function submit_report_generator_form(nextsub) { |
|
111 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
112 |
document.report_generator_form.submit(); |
|
113 |
} // --> |
|
114 |
</script> |
|
115 |
[% END %][%# !SKIP_BUTTONS %] |
|
116 |
|
|
117 |
[% END %] |
|
143 | 118 |
|
144 | 119 |
</form> |
145 |
[% END %] |
|
120 |
[% END %] |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/report_generator/html_report.html