Revision 12a17f8f
Von Hans Peter Schlaepfer vor fast 6 Jahren hinzugefügt
templates/webpages/rc/step1.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE L %] |
|
4 |
[%- USE LxERP %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE L %] |
|
4 |
[% USE LxERP %] |
|
5 |
|
|
5 | 6 |
<h1>[% 'Reconciliation' | $T8 %]</h1> |
6 | 7 |
|
7 | 8 |
<form method="post" action="rc.pl" id="form"> |
9 |
<div class="wrapper"> |
|
8 | 10 |
|
9 |
<table> |
|
10 |
<tr>
|
|
11 |
<th align=right nowrap>[% 'Account' | $T8 %]</th>
|
|
12 |
<td colspan=3>[% L.select_tag('accno', PR, value_title_sub=\selection_sub) %]</td>
|
|
13 |
</tr>
|
|
14 |
<tr>
|
|
15 |
<th align=right>[% 'From' | $T8 %]</th>
|
|
16 |
<td>[% L.date_tag('fromdate') %]</td>
|
|
17 |
<th align=right>[% 'Until' | $T8 %]</th>
|
|
18 |
<td>[% L.date_tag('todate') %]</td>
|
|
19 |
</tr>
|
|
11 |
<table class="tbl-horizontal">
|
|
12 |
<tbody>
|
|
13 |
<tr>
|
|
14 |
<th>[% 'Account' | $T8 %]</th>
|
|
15 |
<td>[% L.select_tag('accno', PR, value_title_sub=\selection_sub) %]</td>
|
|
16 |
</tr>
|
|
17 |
<tr>
|
|
18 |
<th>[% 'Period' | $T8 %]</th>
|
|
19 |
<td>[% L.date_tag('fromdate') %] [% 'Until' | $T8 %] [% L.date_tag('todate') %]</td>
|
|
20 |
</tr>
|
|
21 |
</tbody>
|
|
20 | 22 |
</table> |
23 |
</div> |
|
21 | 24 |
</form> |
templates/webpages/rc/step2.html | ||
---|---|---|
1 |
[%- USE HTML %]
|
|
2 |
[%- USE L %]
|
|
3 |
[%- USE T8 %]
|
|
4 |
[%- USE LxERP %]
|
|
1 |
[% USE HTML %] |
|
2 |
[% USE L %] |
|
3 |
[% USE T8 %] |
|
4 |
[% USE LxERP %] |
|
5 | 5 |
|
6 | 6 |
<h1>[% accno | html %]--[% account | html %]</h1> |
7 | 7 |
|
8 | 8 |
<p>[% FOREACH row IN option %][% row %][% ', ' UNLESS loop.last %][% END %]</p> |
9 | 9 |
|
10 | 10 |
<form method="post" action="rc.pl" id="form"> |
11 |
<div class="wrapper"> |
|
11 | 12 |
|
12 |
<table width=100%> |
|
13 |
<tr class=listheading> |
|
14 |
<th>[% L.checkbox_tag('checkall_checkboxes', checkall='input.checkall') %]</th> |
|
15 |
<th>[% 'Date' | $T8 %]</th> |
|
16 |
<th>[% 'Source' | $T8 %]</th> |
|
17 |
<th>[% 'Description' | $T8 %]</th> |
|
18 |
[%- IF is_asset %] |
|
19 |
<th>[% 'Payment' | $T8 %]</th> |
|
20 |
<th>[% 'Deposit' | $T8 %]</th> |
|
21 |
[%- ELSE %] |
|
22 |
<th>[% 'Decrease' | $T8 %]</th> |
|
23 |
<th>[% 'Increase' | $T8 %]</th> |
|
24 |
[%- END %] |
|
25 |
<th>[% 'Balance' | $T8 %]</th> |
|
13 |
<table class="tbl-list wi-moderate"> |
|
14 |
<thead> |
|
15 |
<tr> |
|
16 |
<th>[% L.checkbox_tag('checkall_checkboxes', checkall='input.checkall') %]</th> |
|
17 |
<th>[% 'Date' | $T8 %]</th> |
|
18 |
<th>[% 'Source' | $T8 %]</th> |
|
19 |
<th>[% 'Description' | $T8 %]</th> |
|
20 |
[% IF is_asset %] |
|
21 |
<th>[% 'Payment' | $T8 %]</th> |
|
22 |
<th>[% 'Deposit' | $T8 %]</th> |
|
23 |
[% ELSE %] |
|
24 |
<th>[% 'Decrease' | $T8 %]</th> |
|
25 |
<th>[% 'Increase' | $T8 %]</th> |
|
26 |
[% END %] |
|
27 |
<th>[% 'Balance' | $T8 %]</th> |
|
28 |
</tr> |
|
29 |
</thead> |
|
30 |
<tbody> |
|
31 |
<tr> |
|
32 |
<td></td> |
|
33 |
<td></td> |
|
34 |
<td></td> |
|
35 |
<td></td> |
|
36 |
<td class='numeric'></td> |
|
37 |
<td class='numeric'></td> |
|
38 |
<td class='numeric'>[% LxERP.format_amount(balance.beginning, 2, 0) %]</td> |
|
39 |
</tr> |
|
40 |
[% FOREACH row = DATA %] |
|
41 |
<tr> |
|
42 |
<td> [% IF row.fx_transaction %] [% L.hidden_tag('fxoid_' _ row.i, row.oid) %] [% ELSE %] [% L.checkbox_tag('cleared_' _ row.i, class='checkall', checked=row.cleared) %] [% L.hidden_tag('oid_' _ row.i, row.oid) %] [% END %] </td> |
|
43 |
<td>[% row.transdate %]</td> |
|
44 |
<td>[% row.source %]</td> |
|
45 |
<td>[% row.name %]</td> |
|
46 |
<td class='numeric'>[% LxERP.format_amount(row.amount, 2) IF row.amount > 0 %]</td> |
|
47 |
<td class='numeric'>[% LxERP.format_amount(row.amount * -1, 2) IF row.amount < 0 %]</td> |
|
48 |
<td class='numeric'>[% LxERP.format_amount(row.balance, 2, 0) %]</td> |
|
49 |
</tr> |
|
50 |
[% END %] |
|
51 |
</tbody> |
|
52 |
<tfoot> |
|
53 |
<tr> |
|
54 |
<td></td> |
|
55 |
<td></td> |
|
56 |
<td></td> |
|
57 |
<td></td> |
|
58 |
<td class='numeric'>[% LxERP.format_amount(total.credit, 2, 0) %]</td> |
|
59 |
<td class='numeric'>[% LxERP.format_amount(total.debit, 2, 0) %]</td> |
|
60 |
<td class='numeric'></td> |
|
26 | 61 |
</tr> |
27 |
<tr class="listrow[% row.j %]">
|
|
28 |
<td></td>
|
|
29 |
<td></td> |
|
30 |
<td></td> |
|
31 |
<td></td>
|
|
32 |
<td class='numeric'></td>
|
|
33 |
<td class='numeric'></td>
|
|
34 |
<td class='numeric'>[% LxERP.format_amount(balance.beginning, 2, 0) %]</td>
|
|
62 |
</tfoot>
|
|
63 |
</table>
|
|
64 |
|
|
65 |
|
|
66 |
<table class="tbl-horizontal">
|
|
67 |
<tr>
|
|
68 |
<th>[% 'Cleared Balance' | $T8 %]</th>
|
|
69 |
<td>[% LxERP.format_amount(balance.cleared, 2, 0) %]</td>
|
|
35 | 70 |
</tr> |
36 |
[% FOREACH row = DATA %] |
|
37 |
<tr class="listrow[% loop.count % 2 %]"> |
|
38 |
<td> |
|
39 |
[%- IF row.fx_transaction %] |
|
40 |
[% L.hidden_tag('fxoid_' _ row.i, row.oid) %] |
|
41 |
[%- ELSE %] |
|
42 |
[% L.checkbox_tag('cleared_' _ row.i, class='checkall', checked=row.cleared) %] |
|
43 |
[% L.hidden_tag('oid_' _ row.i, row.oid) %] |
|
44 |
[%- END %] |
|
45 |
</td> |
|
46 |
<td>[% row.transdate %]</td> |
|
47 |
<td>[% row.source %]</td> |
|
48 |
<td>[% row.name %]</td> |
|
49 |
<td class='numeric'>[% LxERP.format_amount(row.amount, 2) IF row.amount > 0 %]</td> |
|
50 |
<td class='numeric'>[% LxERP.format_amount(row.amount * -1, 2) IF row.amount < 0 %]</td> |
|
51 |
<td class='numeric'>[% LxERP.format_amount(row.balance, 2, 0) %]</td> |
|
71 |
<tr> |
|
72 |
<th>[% 'Statement Balance' | $T8 %]</th> |
|
73 |
<td><input type="text" name="statementbalance" size=11 value="[% LxERP.format_amount(balance.statement, 2, 0) %]"> |
|
74 |
</td> |
|
52 | 75 |
</tr> |
53 |
[% END %] |
|
54 |
<tr class=listtotal> |
|
55 |
<td></td> |
|
56 |
<td></td> |
|
57 |
<td></td> |
|
58 |
<td></td> |
|
59 |
<td class='numeric'>[% LxERP.format_amount(total.credit, 2, 0) %]</td> |
|
60 |
<td class='numeric'>[% LxERP.format_amount(total.debit, 2, 0) %]</td> |
|
61 |
<td class='numeric'></td> |
|
76 |
[% IF fx %] |
|
77 |
<tr> |
|
78 |
<th>[% 'Exchangerate Difference' | $T8 %]</th> |
|
79 |
<td>[% LxERP.format_amount(fx, 2, 0) %]</td> |
|
80 |
</tr> |
|
81 |
[% END %] |
|
82 |
<tr> |
|
83 |
<th>[% 'Difference' | $T8 %]</th> |
|
84 |
<td> |
|
85 |
<input type="text" name="null" size=11 value="[% LxERP.format_amount(difference, 2, 0) %]" readonly> |
|
86 |
<input type=hidden name="difference" value="[% LxERP.format_amount(difference, 2, 0) %]"> |
|
87 |
</td> |
|
62 | 88 |
</tr> |
63 | 89 |
</table> |
64 | 90 |
|
65 |
<table width=100%> |
|
66 |
<tr valign=top> |
|
67 |
<td> |
|
68 |
<table> |
|
69 |
<tr> |
|
70 |
<th align=right nowrap>[% 'Cleared Balance' | $T8 %]</th> |
|
71 |
<td width=10%></td> |
|
72 |
<td align=right>[% LxERP.format_amount(balance.cleared, 2, 0) %]</td> |
|
73 |
</tr> |
|
74 |
<tr> |
|
75 |
[%- IF fx %] |
|
76 |
<th align=right nowrap>[% 'Exchangerate Difference' | $T8 %]</th> |
|
77 |
<td width=10%></td> |
|
78 |
<td align=right>[% LxERP.format_amount(fx, 2, 0) %]</td> |
|
79 |
[%- END %] |
|
80 |
</tr> |
|
81 |
</table> |
|
82 |
</td> |
|
83 |
<td align=right> |
|
84 |
<table> |
|
85 |
<tr> |
|
86 |
<th align=right nowrap>[% 'Statement Balance' | $T8 %]</th> |
|
87 |
<td width=10%></td> |
|
88 |
<td align=right><input name="statementbalance" size=11 value="[% LxERP.format_amount(balance.statement, 2, 0) %]"></td> |
|
89 |
</tr> |
|
90 |
<tr> |
|
91 |
<th align=right nowrap>[% 'Difference' | $T8 %]</th> |
|
92 |
<td width=10%></td> |
|
93 |
<td align=right><input name=null size=11 value="[% LxERP.format_amount(difference, 2, 0) %]" readonly></td> |
|
94 |
<input type=hidden name=difference value="[% LxERP.format_amount(difference, 2, 0) %]"> |
|
95 |
</tr> |
|
96 |
</table> |
|
97 |
</td> |
|
98 |
</tr> |
|
99 |
</table> |
|
91 |
|
|
100 | 92 |
|
101 | 93 |
<input type=hidden name=rowcount value="[% rowcount %]"> |
102 | 94 |
<input type=hidden name=accno value="[% accno %]"> |
... | ... | |
105 | 97 |
<input type=hidden name=fromdate value="[% fromdate %]"> |
106 | 98 |
<input type=hidden name=todate value="[% todate %]"> |
107 | 99 |
|
100 |
</div> |
|
108 | 101 |
</form> |
templates/webpages/record_links/add_filter.html | ||
---|---|---|
1 |
[%- USE L -%][%- USE LxERP -%][%- USE JavaScript -%] |
|
2 |
[%- SET style='width: 500px' %] |
|
3 |
<h1>[%- LxERP.t8("Add link: select records to link with") %]</h1> |
|
1 |
[% USE L %] |
|
2 |
[% USE LxERP %] |
|
3 |
[% USE JavaScript %] |
|
4 |
[% SET style='width: 500px' %] |
|
4 | 5 |
|
5 | 6 |
|
6 | 7 |
<form method="post" action="controller.pl" id="record_links_add_filter_form"> |
7 |
[% L.hidden_tag('object_model', SELF.object_model) %] |
|
8 |
[% L.hidden_tag('object_id', SELF.object_id) %] |
|
9 |
|
|
10 |
<table> |
|
11 |
<tr> |
|
12 |
<td>[%- LxERP.t8("Link to") %]:</td> |
|
13 |
<td>[% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, style=style, id='record_links_add_filter_link_type') %]</td> |
|
14 |
</tr> |
|
15 |
|
|
16 |
<tr> |
|
17 |
<td>[%- LxERP.t8("Link direction") %]:</td> |
|
18 |
<td>[% L.select_tag('link_direction', |
|
19 |
[ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ], |
|
20 |
[ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ], |
|
21 |
style=style) %]</td> |
|
22 |
</tr> |
|
23 |
|
|
24 |
<tr> |
|
25 |
<td>[%- LxERP.t8("Customer/Vendor Number") %]:</td> |
|
26 |
<td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, style=style) %]</td> |
|
27 |
</tr> |
|
28 |
|
|
29 |
<tr> |
|
30 |
<td>[%- LxERP.t8("Customer/Vendor Name") %]:</td> |
|
31 |
<td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, style=style) %]</td> |
|
32 |
</tr> |
|
33 |
|
|
34 |
<tr id="record_links_add_filter_project_row"> |
|
35 |
<td>[%- LxERP.t8("Project") %]:</td> |
|
36 |
<td>[% L.select_tag('globalproject_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, style=style) %]</td> |
|
37 |
</tr> |
|
38 |
|
|
39 |
<tr> |
|
40 |
<td><span id="record_links_add_filter_title">[%- LxERP.t8("Transaction description") %]</span>:</td> |
|
41 |
<td>[% L.input_tag('transaction_description', '', style=style) %]</td> |
|
42 |
</tr> |
|
43 |
</table> |
|
44 |
|
|
45 |
<p> |
|
46 |
[% L.button_tag('filter_record_links()', LxERP.t8("Search")) %] |
|
8 |
[% L.hidden_tag('object_model', SELF.object_model) %] |
|
9 |
[% L.hidden_tag('object_id', SELF.object_id) %] |
|
10 |
|
|
11 |
<table class="tbl-horizontal"> |
|
12 |
<caption>[% LxERP.t8("Add link: select records to link with") %]</caption> |
|
13 |
<colgroup> <col class="wi-normal"><col class="wi-verywide"> </colgroup> |
|
14 |
<tbody> |
|
15 |
<tr> |
|
16 |
<th>[% LxERP.t8("Link to") %]</th> |
|
17 |
<td>[% L.select_tag('link_type', LINK_TYPES, default=DEFAULT_LINK_TYPE, class='wi-wide', id='record_links_add_filter_link_type') %]</td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<th>[% LxERP.t8("Link direction") %]</th> |
|
21 |
<td>[% L.select_tag('link_direction', |
|
22 |
[ [ 'from', LxERP.t8("The link target to add has been created from the existing record."), ], |
|
23 |
[ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ], |
|
24 |
class='wi-verywide') %]</td> |
|
25 |
</tr> |
|
26 |
<tr> |
|
27 |
<th>[% LxERP.t8("Customer/Vendor Number") %]</th> |
|
28 |
<td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, class='wi-wide') %]</td> |
|
29 |
</tr> |
|
30 |
<tr> |
|
31 |
<th>[% LxERP.t8("Customer/Vendor Name") %]</th> |
|
32 |
<td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, class='wi-wide') %]</td> |
|
33 |
</tr> |
|
34 |
<tr id="record_links_add_filter_project_row"> |
|
35 |
<th>[% LxERP.t8("Project") %]</tdh> |
|
36 |
<td>[% L.select_tag('globalproject_id', PROJECTS, default=SELF.object.globalproject_id, with_empty=1, class='wi-wide') %]</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<th><span id="record_links_add_filter_title">[% LxERP.t8("Transaction description") %]</span></th> |
|
40 |
<td>[% L.input_tag('transaction_description', '', class='wi-wide') %]</td> |
|
41 |
</tr> |
|
42 |
</tbody> |
|
43 |
</table> |
|
44 |
|
|
45 |
<div class="buttons"> |
|
46 |
[% L.button_tag('filter_record_links()', LxERP.t8("Search"), class='neutral') %] |
|
47 | 47 |
[% L.button_tag('add_selected_record_links()', LxERP.t8("Add links"), id='add_selected_record_links_button', disabled=1) %] |
48 |
[% L.button_tag('$("#record_links_add_filter_form").resetForm()', LxERP.t8('Reset')) %] |
|
49 |
<a href="#" onclick="$('#record_links_add').dialog('close');">[% LxERP.t8("Cancel") %]</a> |
|
50 |
</p>
|
|
48 |
[% L.button_tag('$("#record_links_add_filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
|
|
49 |
<a href="#" onclick="$('#record_links_add').dialog('close');" class="button neutral">[% LxERP.t8("Cancel") %]</a>
|
|
50 |
</div>
|
|
51 | 51 |
|
52 |
<hr> |
|
53 | 52 |
|
54 |
<div id="record_list_filtered_list"></div>
|
|
53 |
<div id="record_list_filtered_list"></div> |
|
55 | 54 |
|
56 | 55 |
</form> |
57 | 56 |
|
58 |
<script type="text/javascript"> |
|
59 |
<!-- |
|
57 |
<script type="text/javascript"><!-- |
|
60 | 58 |
$(function() { |
61 | 59 |
$('#record_links_add input[name=vc_name]').focus(); |
62 | 60 |
$('#record_links_add_filter_link_type').change(record_links_change_form_to_match_type); |
... | ... | |
100 | 98 |
|
101 | 99 |
$('#record_links_add_filter_title').html(title); |
102 | 100 |
} |
103 |
--> |
|
104 |
</script> |
|
101 |
--></script> |
templates/webpages/record_links/add_list.html | ||
---|---|---|
1 |
[%- USE T8 -%][%- USE HTML -%][%- USE LxERP -%][%- USE P -%][%- USE L -%] |
|
2 |
[%- IF !OBJECTS.size %] |
|
3 |
<p class="message_hint">[% 'No data was found.' | $T8 %]</p> |
|
4 |
[%- ELSE %] |
|
5 |
<table width="100%"> |
|
6 |
<tr class="listheading"> |
|
7 |
<th>[% L.checkbox_tag('record_links_check_all') %]</th> |
|
8 |
<th>[% IF vc == 'customer' %][%- LxERP.t8("Customer") %][%- ELSE %][%- LxERP.t8("Vendor") %][%- END %]</th> |
|
9 |
<th>[%- LxERP.t8("Number") %]</th> |
|
10 |
[% IF date_column %] |
|
11 |
<th>[%- LxERP.t8("Date") %]</th> |
|
12 |
[% END %] |
|
13 |
<th>[% HTML.escape(description_title) %]</th> |
|
14 |
[% IF project_column %] |
|
15 |
<th>[%- LxERP.t8("Project") %]</th> |
|
16 |
[% END %] |
|
17 |
</tr> |
|
18 |
|
|
19 |
[%- FOREACH object = OBJECTS %] |
|
20 |
<tr class="listrow[% loop.count % 2 %]"> |
|
21 |
<td>[% L.checkbox_tag('link_id[]', value=object.id) %]</td> |
|
22 |
<td>[%- HTML.escape(object.$vc.name) %]</td> |
|
23 |
<td>[%- HTML.escape(object.$number_column) %]</td> |
|
24 |
[% IF date_column %] |
|
25 |
<td>[%- HTML.escape(object.$date_column.to_kivitendo) %]</td> |
|
26 |
[% END %] |
|
27 |
<td>[%- HTML.escape(object.$description_column) %]</td> |
|
28 |
[% IF project_column %] |
|
29 |
<td>[%- object.$project_column.presenter.project(no_link=1) %]</td> |
|
30 |
[% END %] |
|
31 |
</tr> |
|
32 |
[%- END %] |
|
33 |
</table> |
|
34 |
|
|
35 |
<script type="text/javascript"> |
|
36 |
<!-- |
|
37 |
$(function() { |
|
38 |
$('#record_links_check_all').checkall('INPUT[name="link_id[]"]'); |
|
39 |
}); |
|
40 |
--> |
|
41 |
</script> |
|
42 |
[%- END %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE P %] |
|
5 |
[% USE L %] |
|
6 |
|
|
7 |
[% IF !OBJECTS.size %] |
|
8 |
|
|
9 |
<p class="message message_hint">[% 'No data was found.' | $T8 %]</p> |
|
10 |
|
|
11 |
[% ELSE %] |
|
12 |
|
|
13 |
<table class="tbl-list wi-moderate"> |
|
14 |
<thead> |
|
15 |
<tr> |
|
16 |
<th>[% L.checkbox_tag('record_links_check_all') %]</th> |
|
17 |
<th>[% IF vc == 'customer' %][% LxERP.t8("Customer") %][% ELSE %][% LxERP.t8("Vendor") %][% END %]</th> |
|
18 |
<th>[% LxERP.t8("Number") %]</th> |
|
19 |
[% IF date_column %] |
|
20 |
<th>[% LxERP.t8("Date") %]</th> |
|
21 |
[% END %] |
|
22 |
<th>[% HTML.escape(description_title) %]</th> |
|
23 |
[% IF project_column %] |
|
24 |
<th>[% LxERP.t8("Project") %]</th> |
|
25 |
[% END %] |
|
26 |
</tr> |
|
27 |
</thead> |
|
28 |
<tbody> |
|
29 |
[% FOREACH object = OBJECTS %] |
|
30 |
<tr> |
|
31 |
<td>[% L.checkbox_tag('link_id[]', value=object.id) %]</td> |
|
32 |
<td>[% HTML.escape(object.$vc.name) %]</td> |
|
33 |
<td>[% HTML.escape(object.$number_column) %]</td> |
|
34 |
[% IF date_column %] |
|
35 |
<td>[% HTML.escape(object.$date_column.to_kivitendo) %]</td> |
|
36 |
[% END %] |
|
37 |
<td>[% HTML.escape(object.$description_column) %]</td> |
|
38 |
[% IF project_column %] |
|
39 |
<td>[% object.$project_column.presenter.project(no_link=1) %]</td> |
|
40 |
[% END %] |
|
41 |
</tr> |
|
42 |
[% END %] |
|
43 |
</tbody> |
|
44 |
</table> |
|
45 |
|
|
46 |
<script type="text/javascript"><!-- |
|
47 |
|
|
48 |
$(function() { |
|
49 |
$('#record_links_check_all').checkall('INPUT[name="link_id[]"]'); |
|
50 |
}); |
|
51 |
|
|
52 |
--></script> |
|
53 |
|
|
54 |
[% END %] |
templates/webpages/record_template/dialog.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE LxERP %] |
|
4 |
[%- USE HTML %][%- USE JavaScript -%] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE HTML %] |
|
5 |
[% USE JavaScript %] |
|
5 | 6 |
|
6 | 7 |
[% L.hidden_tag("", SELF.template_type, id="record_template_dialog_template_type", |
7 | 8 |
"data-controller"=SELF.data.controller, |
... | ... | |
9 | 10 |
"data-save_action"=SELF.data.save_action, |
10 | 11 |
"data-form_selector"=SELF.data.form_selector) %] |
11 | 12 |
|
12 |
<h2 class="listheading">[% LxERP.t8("Add new record template") %]</h2>
|
|
13 |
<h2>[% LxERP.t8("Add new record template") %]</h2> |
|
13 | 14 |
|
14 | 15 |
<p> |
15 | 16 |
[% LxERP.t8("Name") %]: |
... | ... | |
31 | 32 |
|
32 | 33 |
[% IF templates.size %] |
33 | 34 |
|
34 |
<h2 class="listheading">[% LxERP.t8("Existing templates") %]</h2>
|
|
35 |
<h2>[% LxERP.t8("Existing templates") %]</h2> |
|
35 | 36 |
|
36 | 37 |
<table> |
37 | 38 |
<thead> |
38 |
<tr class="listheading">
|
|
39 |
<tr> |
|
39 | 40 |
<th>[% LxERP.t8("Action") %]</th> |
40 | 41 |
<th>[% LxERP.t8("Name") %]</th> |
41 | 42 |
<th>[% LxERP.t8("Modification date") %]</th> |
templates/webpages/report_generator/csv_export_options.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE HTML %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 | 3 |
|
4 |
<h1>[% HTML.escape(title) %]</h1>
|
|
4 |
<h1>[% HTML.escape(title) %]</h1> |
|
5 | 5 |
|
6 |
<form action="[% HTML.escape(script) %]" method="post" name="report_generator_form" id="report_generator_form">
|
|
6 |
<form action="[% HTML.escape(script) %]" method="post" name="report_generator_form" id="report_generator_form"> |
|
7 | 7 |
|
8 |
[%- FOREACH var = HIDDEN %]
|
|
8 |
[% FOREACH var = HIDDEN %]
|
|
9 | 9 |
<input type="hidden" name="[% HTML.escape(var.key) %]" value="[% HTML.escape(var.value) %]"> |
10 |
[%- END %]
|
|
10 |
[% END %]
|
|
11 | 11 |
|
12 |
<input type="hidden" name="report_generator_csv_options_set" value="1">
|
|
13 |
<input type="hidden" name="report_generator_dispatch_to" value="">
|
|
12 |
<input type="hidden" name="report_generator_csv_options_set" value="1"> |
|
13 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
14 | 14 |
|
15 |
<table> |
|
16 |
<tr> |
|
17 |
<td align="right">[% 'Quote chararacter' | $T8 %]</td> |
|
18 |
<td> |
|
19 |
<select name="report_generator_csv_options_quote_char" style="width: 300px"> |
|
20 |
<option value=""" selected>"</option> |
|
21 |
<option value="'">'</option> |
|
22 |
</select> |
|
23 |
</td> |
|
24 |
</tr> |
|
15 |
<div class="wrapper"> |
|
25 | 16 |
|
26 |
<tr> |
|
27 |
<td align="right">[% 'Escape character' | $T8 %]</td> |
|
28 |
<td> |
|
29 |
<select name="report_generator_csv_options_escape_char" style="width: 300px"> |
|
30 |
<option value="QUOTE_CHAR" selected>[% 'Same as the quote character' | $T8 %]</option> |
|
31 |
<option value=""">"</option> |
|
32 |
<option value="'">'</option> |
|
33 |
</select> |
|
34 |
</td> |
|
35 |
</tr> |
|
17 |
<table class="tbl-horizontal"> |
|
18 |
<tbody> |
|
19 |
<tr> |
|
20 |
<th>[% 'Quote chararacter' | $T8 %]</th> |
|
21 |
<td> |
|
22 |
<select name="report_generator_csv_options_quote_char" style="width: 300px"> |
|
23 |
<option value=""" selected>"</option> |
|
24 |
<option value="'">'</option> |
|
25 |
</select> |
|
26 |
</td> |
|
27 |
</tr> |
|
28 |
<tr> |
|
29 |
<th>[% 'Escape character' | $T8 %]</th> |
|
30 |
<td> |
|
31 |
<select name="report_generator_csv_options_escape_char" style="width: 300px"> |
|
32 |
<option value="QUOTE_CHAR" selected>[% 'Same as the quote character' | $T8 %]</option> |
|
33 |
<option value=""">"</option> |
|
34 |
<option value="'">'</option> |
|
35 |
</select> |
|
36 |
</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<th>[% 'Separator chararacter' | $T8 %]</th> |
|
40 |
<td> |
|
41 |
<select name="report_generator_csv_options_sep_char" style="width: 300px"> |
|
42 |
<option value=";">;</option> |
|
43 |
<option value="," selected>,</option> |
|
44 |
<option value=":">:</option> |
|
45 |
<option value="TAB">TAB ([% 'The tabulator character' | $T8 %])</option> |
|
46 |
</select> |
|
47 |
</td> |
|
48 |
</tr> |
|
49 |
<tr> |
|
50 |
<th>[% 'Line endings' | $T8 %]</th> |
|
51 |
<td> |
|
52 |
<select name="report_generator_csv_options_eol_style" style="width: 300px"> |
|
53 |
<option value="DOS">DOS/Windows (CR/LF)</option> |
|
54 |
<option value="Unix" selected>Unix (LF)</option> |
|
55 |
</select> |
|
56 |
</td> |
|
57 |
</tr> |
|
58 |
<tr> |
|
59 |
<th>[% 'Options' | $T8 %]</th> |
|
60 |
<td> |
|
61 |
<input type="checkbox" name="report_generator_csv_options_headers" id="report_generator_csv_options_headers" value="1" checked> |
|
62 |
<label for="report_generator_csv_options_headers">[% 'Include column headings' | $T8 %]</label><br> |
|
63 |
<input type="checkbox" name="report_generator_csv_options_for_import" id="report_generator_csv_options_for_import" value="1"> |
|
64 |
<label for="report_generator_csv_options_for_import">[% 'Make compatible for import' | $T8 %]</label> |
|
65 |
</td> |
|
66 |
</tr> |
|
67 |
</tbody> |
|
68 |
</table> |
|
36 | 69 |
|
37 |
<tr> |
|
38 |
<td align="right">[% 'Separator chararacter' | $T8 %]</td> |
|
39 |
<td> |
|
40 |
<select name="report_generator_csv_options_sep_char" style="width: 300px"> |
|
41 |
<option value=";">;</option> |
|
42 |
<option value="," selected>,</option> |
|
43 |
<option value=":">:</option> |
|
44 |
<option value="TAB">TAB ([% 'The tabulator character' | $T8 %])</option> |
|
45 |
</select> |
|
46 |
</td> |
|
47 |
</tr> |
|
70 |
</div><!-- /.wrapper --> |
|
48 | 71 |
|
49 |
<tr> |
|
50 |
<td align="right">[% 'Line endings' | $T8 %]</td> |
|
51 |
<td> |
|
52 |
<select name="report_generator_csv_options_eol_style" style="width: 300px"> |
|
53 |
<option value="DOS">DOS/Windows (CR/LF)</option> |
|
54 |
<option value="Unix" selected>Unix (LF)</option> |
|
55 |
</select> |
|
56 |
</td> |
|
57 |
</tr> |
|
72 |
[% IF CONTROLLER_DISPATCH %] |
|
73 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
74 |
[% ELSE %] |
|
75 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
76 |
[% END %] |
|
58 | 77 |
|
59 |
<tr> |
|
60 |
<td align="right" valign="top">[% 'Options' | $T8 %]:</td> |
|
61 |
<td valign="top"> |
|
62 |
<input type="checkbox" name="report_generator_csv_options_headers" id="report_generator_csv_options_headers" value="1" checked> |
|
63 |
<label for="report_generator_csv_options_headers">[% 'Include column headings' | $T8 %]</label> |
|
64 |
<input type="checkbox" name="report_generator_csv_options_for_import" id="report_generator_csv_options_for_import" value="1"> |
|
65 |
<label for="report_generator_csv_options_for_import">[% 'Make compatible for import' | $T8 %]</label> |
|
66 |
</td> |
|
67 |
</tr> |
|
68 | 78 |
|
69 |
</table> |
|
70 |
|
|
71 |
[%- IF CONTROLLER_DISPATCH %] |
|
72 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
73 |
[%- ELSE %] |
|
74 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
75 |
[%- END %] |
|
76 |
|
|
77 |
|
|
78 |
</form> |
|
79 |
</form> |
templates/webpages/report_generator/html_report.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
<style type="text/css"> |
|
4 |
<!-- |
|
5 |
.top_border { |
|
6 |
border-top: solid black; |
|
7 |
border-width: 4px; |
|
8 |
} |
|
9 |
.bottom_border { |
|
10 |
border-bottom: solid black; |
|
11 |
border-width: 4px; |
|
12 |
} |
|
13 |
--> |
|
14 |
</style> |
|
15 |
|
|
16 |
[% IF MESSAGE %] |
|
17 |
<p>[% MESSAGE %]</p> |
|
18 |
[% END %] |
|
19 |
|
|
20 |
<h1>[% TITLE %]</h1> |
|
21 |
|
|
22 |
[%- INCLUDE 'common/flash.html' %] |
|
23 |
|
|
24 |
[% IF TOP_INFO_TEXT %] |
|
25 |
<p>[% TOP_INFO_TEXT %]</p> |
|
26 |
[% END %] |
|
27 |
|
|
28 |
[% RAW_TOP_INFO_TEXT %] |
|
29 |
|
|
30 |
[% IF DATA_PRESENT %] |
|
31 |
<p> |
|
32 |
<table [% IF TABLE_CLASS %]class="[% TABLE_CLASS %]"[% END %] id="report_table_id" width="100%"> |
|
33 |
<thead> |
|
34 |
[%- FOREACH row = HEADER_ROWS %] |
|
35 |
<tr> |
|
36 |
[% FOREACH col = row %] |
|
37 |
<th class="listheading" |
|
38 |
[%- IF col.align %] align="[% HTML.escape(col.align) %]" style="text-align: [% HTML.escape(col.align) %]"[% END -%] |
|
39 |
[%- IF col.colspan && col.colspan > 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%] |
|
40 |
> |
|
41 |
[%- IF col.raw_header_data %] |
|
42 |
[% col.raw_header_data %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
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 %] |
|
43 | 41 |
[% ELSE %] |
44 |
[%- IF col.link -%]<a class="[% col.link_class ? col.link_class : 'report-generator-header-link' %]" href="[% HTML.escape(col.link) %]">[%- END -%] |
|
45 |
[%- col.text -%] |
|
46 |
[%- IF col.show_sort_indicator -%]<img border="0" src="image/[% IF col.sort_indicator_direction %]down[% ELSE %]up[% END %].png">[%- END -%] |
|
47 |
[%- IF col.link -%]</a>[%- END -%] |
|
48 |
[%- END %] |
|
49 |
</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 %] |
|
50 | 62 |
[% END %] |
51 |
</tr> |
|
52 |
[%- END %] |
|
53 |
</thead> |
|
54 |
|
|
55 |
<tbody> |
|
56 |
[% FOREACH row = ROWS %] |
|
57 |
[% IF row.IS_CONTROL %] |
|
58 |
[% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %] |
|
59 |
[% ELSE %] |
|
60 |
<tr class="listrow[% row.outer_idx_odd %]"> |
|
61 |
[%- FOREACH col = row.COLUMNS %] |
|
62 |
<td[% IF col.align %] align="[% col.align %]"[% END %] |
|
63 |
[%- IF col.valign %] valign="[% col.valign %]"[%- END %] |
|
64 |
[%- IF col.colspan && col.colspan > 1 %] colspan="[% HTML.escape(col.colspan) %]"[% END -%] |
|
65 |
[%- SET tdclass = '' %] |
|
66 |
[%- IF row.BORDER_TOP %][%- SET tdclass = "$tdclass top_border" %][%- END %] |
|
67 |
[%- IF row.BORDER_BOTTOM %][%- SET tdclass = "$tdclass bottom_border" %][%- END %] |
|
68 |
[%- IF col.class %][%- SET tdclass = "$tdclass $col.class" %][%- END %] |
|
69 |
[%- IF tdclass %] class="[% tdclass %]"[%- END %]> |
|
70 |
[%- IF col.raw_data %] |
|
71 |
[%- col.raw_data %] |
|
72 |
[%- ELSE %] |
|
73 |
[%- USE iterator(col.CELL_ROWS) %][%- FOREACH cell_row = iterator %] |
|
74 |
[%- IF cell_row.data != '' %] |
|
75 |
[%- IF cell_row.link %]<a href="[% HTML.escape(cell_row.link) %]"[% IF cell_row.link_class %] class="[% cell_row.link_class %]"[% END %]>[%- END %] |
|
76 |
[%- cell_row.data %] |
|
77 |
[%- IF cell_row.link %]</a>[%- END %] |
|
78 |
[%- END %] |
|
79 |
[%- UNLESS iterator.last %]<br>[%- END %] |
|
80 |
[%- END %] |
|
81 |
[%- END %] |
|
82 |
</td> |
|
83 |
[%- END %] |
|
84 |
</tr> |
|
85 |
[% END %] |
|
86 |
[% END %] |
|
87 |
|
|
88 |
</tbody> |
|
63 |
</tbody> |
|
89 | 64 |
</table> |
90 |
<hr size="3" noshade> |
|
91 |
</p> |
|
92 |
[% ELSE %] |
|
93 |
<p class="message_hint">[% 'No data was found.' | $T8 %]</p> |
|
94 |
[% END %] |
|
65 |
[% ELSE %] |
|
66 |
<p class="message message_hint">[% 'No data was found.' | $T8 %]</p> |
|
67 |
[% END %] |
|
95 | 68 |
|
96 |
[% RAW_BOTTOM_INFO_TEXT %]
|
|
69 |
[% RAW_BOTTOM_INFO_TEXT %] |
|
97 | 70 |
|
98 |
[% IF BOTTOM_INFO_TEXT %]
|
|
71 |
[% IF BOTTOM_INFO_TEXT %] |
|
99 | 72 |
<p>[% BOTTOM_INFO_TEXT %]</p> |
100 |
[% END %]
|
|
73 |
[% END %] |
|
101 | 74 |
|
102 |
[% IF SHOW_EXPORT_BUTTONS %]
|
|
75 |
[% IF SHOW_EXPORT_BUTTONS %] |
|
103 | 76 |
<form action="[% HTML.escape(script) %]" name="report_generator_form" id="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 |
[%- IF CONTROLLER_DISPATCH %] |
|
108 |
[% IF !SKIP_BUTTONS %] |
|
109 |
<input type="hidden" name="action" value="[% CONTROLLER_DISPATCH %]/dispatch"> |
|
110 |
[%- END %][%# !SKIP_BUTTONS %] |
|
111 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
112 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
113 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
114 |
|
|
115 |
[% IF !SKIP_BUTTONS %] |
|
116 |
<p> |
|
117 |
[% 'List export' | $T8 %]<br> |
|
118 |
[% IF ALLOW_PDF_EXPORT %]<input type="submit" name="action_report_generator_export_as_pdf" value="[% 'Export as PDF' | $T8 %]">[% END %] |
|
119 |
[% IF ALLOW_CSV_EXPORT %]<input type="submit" name="action_report_generator_export_as_csv" value="[% 'Export as CSV' | $T8 %]">[% END %] |
|
120 |
</p> |
|
121 |
[%- END %][%# !SKIP_BUTTONS %] |
|
122 |
[%- ELSE %] |
|
123 |
<input type="hidden" name="report_generator_nextsub" value="[% HTML.escape(EXPORT_NEXTSUB) %]"> |
|
124 |
<input type="hidden" name="report_generator_variable_list" value="[% HTML.escape(EXPORT_VARIABLE_LIST) %]"> |
|
125 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
126 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
127 |
|
|
128 |
[% IF !SKIP_BUTTONS %] |
|
129 |
<p> |
|
130 |
[% 'List export' | $T8 %]<br> |
|
131 |
[% 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 %] |
|
132 |
[% 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 %] |
|
133 |
</p> |
|
134 |
<script type="text/javascript"> <!-- |
|
135 |
function submit_report_generator_form(nextsub) { |
|
136 |
document.report_generator_form.report_generator_dispatch_to.value = nextsub; |
|
137 |
document.report_generator_form.submit(); |
|
138 |
} // --> |
|
139 |
</script> |
|
140 |
[%- END %][%# !SKIP_BUTTONS %] |
|
141 |
[%- 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 %] |
|
142 | 118 |
|
143 | 119 |
</form> |
144 |
[% END %] |
|
120 |
[% END %] |
templates/webpages/report_generator/pdf_export_options.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %][%- USE LxERP %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
3 | 4 |
|
4 |
[%- SET default_ymargin = LxERP.format_amount(1.5) %]
|
|
5 |
[%- SET default_xmargin = LxERP.format_amount(0.8) %]
|
|
5 |
[% SET default_ymargin = LxERP.format_amount(1.5) %]
|
|
6 |
[% SET default_xmargin = LxERP.format_amount(0.8) %]
|
|
6 | 7 |
|
7 |
<h1>[% HTML.escape(title) %]</h1>
|
|
8 |
<h1>[% HTML.escape(title) %]</h1> |
|
8 | 9 |
|
9 |
<form action="[% HTML.escape(script) %]" method="post" name="report_generator_form" id="report_generator_form">
|
|
10 |
<form action="[% HTML.escape(script) %]" method="post" name="report_generator_form" id="report_generator_form"> |
|
10 | 11 |
|
11 |
[%- FOREACH var = HIDDEN %]
|
|
12 |
[% FOREACH var = HIDDEN %]
|
|
12 | 13 |
<input type="hidden" name="[% HTML.escape(var.key) %]" value="[% HTML.escape(var.value) %]"> |
13 |
[%- END %]
|
|
14 |
[% END %]
|
|
14 | 15 |
|
15 |
<input type="hidden" name="report_generator_pdf_options_set" value="1">
|
|
16 |
<input type="hidden" name="report_generator_dispatch_to" value="">
|
|
16 |
<input type="hidden" name="report_generator_pdf_options_set" value="1"> |
|
17 |
<input type="hidden" name="report_generator_dispatch_to" value=""> |
|
17 | 18 |
|
18 |
<table> |
|
19 |
<tr> |
|
20 |
<td align="right">[% 'Orientation' | $T8 %]</td> |
|
21 |
<td> |
|
22 |
<select name="report_generator_pdf_options_paper_size"> |
|
23 |
<option value="A3">A3</option> |
|
24 |
<option value="A4" selected>A4</option> |
|
25 |
<option value="A5">A5</option> |
|
26 |
<option value="letter">Letter</option> |
|
27 |
<option value="legal">Legal</option> |
|
28 |
</select> |
|
29 |
<select name="report_generator_pdf_options_orientation"> |
|
30 |
<option value="portrait">[% 'Portrait' | $T8 %]</option> |
|
31 |
<option value="landscape" selected>[% 'Landscape' | $T8 %]</option> |
|
32 |
</select> |
|
33 |
</td> |
|
34 |
</tr> |
|
19 |
<div class="wrapper"> |
|
35 | 20 |
|
36 |
[%- IF ALLOW_FONT_SELECTION %] |
|
37 |
<tr> |
|
38 |
<td align="right">[% 'Font' | $T8 %]</td> |
|
39 |
<td> |
|
40 |
<select name="report_generator_pdf_options_font_name"> |
|
41 |
<option>Courier</option> |
|
42 |
<option>Georgia</option> |
|
43 |
<option>Helvetica</option> |
|
44 |
<option>Times</option> |
|
45 |
<option selected>Verdana</option> |
|
46 |
</select> |
|
47 |
</td> |
|
48 |
</tr> |
|
49 |
[%- END %] |
|
50 |
|
|
51 |
<tr> |
|
52 |
<td align="right">[% 'Font size' | $T8 %]</td> |
|
53 |
<td> |
|
54 |
<select name="report_generator_pdf_options_font_size"> |
|
55 |
<option>6</option> |
|
56 |
<option selected>7</option> |
|
57 |
<option>8</option> |
|
58 |
<option>9</option> |
|
59 |
<option>10</option> |
|
60 |
<option>11</option> |
|
61 |
<option>12</option> |
|
62 |
<option>13</option> |
|
63 |
<option>14</option> |
|
64 |
<option>15</option> |
|
65 |
</select> |
|
66 |
|
|
67 |
pt |
|
68 |
</td> |
|
69 |
</tr> |
|
70 |
|
|
71 |
<tr> |
|
72 |
<td align="right">[% 'Margins' | $T8 %]:</td> |
|
73 |
</tr> |
|
74 |
|
|
75 |
<tr> |
|
76 |
<td align="right">[% 'Top' | $T8 %]</td> |
|
77 |
<td><input name="report_generator_pdf_options_margin_top" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td> |
|
78 |
</tr> |
|
79 |
|
|
80 |
<tr> |
|
81 |
<td align="right">[% 'Left' | $T8 %]</td> |
|
82 |
<td><input name="report_generator_pdf_options_margin_left" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td> |
|
83 |
</tr> |
|
84 |
|
|
85 |
<tr> |
|
86 |
<td align="right">[% 'Bottom' | $T8 %]</td> |
|
87 |
<td><input name="report_generator_pdf_options_margin_bottom" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td> |
|
88 |
</tr> |
|
89 |
|
|
90 |
<tr> |
|
91 |
<td align="right">[% 'Right' | $T8 %]</td> |
|
92 |
<td><input name="report_generator_pdf_options_margin_right" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td> |
|
93 |
</tr> |
|
94 |
|
|
95 |
<tr> |
|
96 |
<td align="right" valign="top">[% 'Options' | $T8 %]:</td> |
|
97 |
<td valign="top"> |
|
98 |
<input type="checkbox" name="report_generator_pdf_options_number" id="report_generator_pdf_options_number" value="1" checked> |
|
99 |
<label for="report_generator_pdf_options_number">[% 'Number pages' | $T8 %]</label> |
|
100 |
[% IF ALL_PRINTERS.size %] |
|
101 |
<br> |
|
102 |
<input type="checkbox" name="report_generator_pdf_options_print" id="report_generator_pdf_options_print" value="1"> |
|
103 |
<label for="report_generator_pdf_options_print">[% 'Print list' | $T8 %]</label> |
|
104 |
[% END %] |
|
105 |
</td> |
|
106 |
</tr> |
|
107 |
|
|
108 |
[% IF ALL_PRINTERS.size %] |
|
21 |
<table class="tbl-horizontal"> |
|
22 |
<caption>[% 'Export format' | $T8 %]</caption> |
|
23 |
<tbody> |
|
109 | 24 |
<tr> |
110 |
<td align="right">[% 'Printer' | $T8 %]</td> |
|
111 |
<td> |
|
112 |
<select name="report_generator_pdf_options_printer_id"> |
|
113 |
[%- FOREACH printer = ALL_PRINTERS %] |
|
114 |
<option value="[% HTML.escape(printer.id) %]"[% IF printer.selected %] selected[% END %]>[% HTML.escape(printer.printer_description) %]</option> |
|
115 |
[%- END %] |
|
116 |
</select> |
|
117 |
</td> |
|
25 |
<th>[% 'Orientation' | $T8 %]</th> |
|
26 |
<td> |
|
27 |
<select name="report_generator_pdf_options_paper_size"> |
|
28 |
<option value="A3">A3</option> |
|
29 |
<option value="A4" selected>A4</option> |
|
30 |
<option value="A5">A5</option> |
|
31 |
<option value="letter">Letter</option> |
|
32 |
<option value="legal">Legal</option> |
|
33 |
</select> |
|
34 |
<select name="report_generator_pdf_options_orientation"> |
|
35 |
<option value="portrait">[% 'Portrait' | $T8 %]</option> |
|
36 |
<option value="landscape" selected>[% 'Landscape' | $T8 %]</option> |
|
37 |
</select> |
|
38 |
</td> |
|
118 | 39 |
</tr> |
119 |
|
|
40 |
[% IF ALLOW_FONT_SELECTION %] |
|
120 | 41 |
<tr> |
121 |
<td align="right">[% 'Copies' | $T8 %]</td> |
|
122 |
<td><input name="report_generator_pdf_options_copies" size="4" value="[% HTML.escape(copies) %]"></td> |
|
42 |
<th>[% 'Font' | $T8 %]</th> |
|
43 |
<td> |
|
44 |
<select name="report_generator_pdf_options_font_name"> |
|
45 |
<option>Courier</option> |
|
46 |
<option>Georgia</option> |
|
47 |
<option>Helvetica</option> |
|
48 |
<option>Times</option> |
|
49 |
<option selected>Verdana</option> |
|
50 |
</select> |
|
51 |
</td> |
|
123 | 52 |
</tr> |
124 |
[% END %] |
|
125 |
</table> |
|
126 |
|
|
127 |
[%- IF CONTROLLER_DISPATCH %] |
|
128 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
129 |
[%- ELSE %] |
|
130 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
131 |
[%- END %] |
|
132 |
|
|
133 |
</form> |
|
53 |
[% END %] |
|
54 |
<tr> |
|
55 |
<th>[% 'Font size' | $T8 %]</th> |
|
56 |
<td> |
|
57 |
<select name="report_generator_pdf_options_font_size"> |
|
58 |
<option>6</option> |
|
59 |
<option selected>7</option> |
|
60 |
<option>8</option> |
|
61 |
<option>9</option> |
|
62 |
<option>10</option> |
|
63 |
<option>11</option> |
|
64 |
<option>12</option> |
|
65 |
<option>13</option> |
|
66 |
<option>14</option> |
|
67 |
<option>15</option> |
|
68 |
</select> pt.</td> |
|
69 |
</tr> |
|
70 |
<tr> |
|
71 |
<th class="caption" colspan="2">[% 'Margins' | $T8 %]:</th> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<th>[% 'Top' | $T8 %]</th> |
|
75 |
<td><input type="text" name="report_generator_pdf_options_margin_top" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td> |
|
76 |
</tr> |
|
77 |
<tr> |
|
78 |
<th>[% 'Left' | $T8 %]</th> |
|
79 |
<td><input type="text" name="report_generator_pdf_options_margin_left" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td> |
|
80 |
</tr> |
|
81 |
<tr> |
|
82 |
<th>[% 'Bottom' | $T8 %]</th> |
|
83 |
<td><input type="text" name="report_generator_pdf_options_margin_bottom" size="4" value="[% HTML.escape(default_ymargin) %]"> cm</td> |
|
84 |
</tr> |
|
85 |
<tr> |
|
86 |
<th>[% 'Right' | $T8 %]</th> |
|
87 |
<td><input type="text" name="report_generator_pdf_options_margin_right" size="4" value="[% HTML.escape(default_xmargin) %]"> cm</td> |
|
88 |
</tr> |
|
89 |
<tr> |
|
90 |
<th class="caption" colspan="2">[% 'Print Options' | $T8 %]:</th> |
|
91 |
</tr> |
|
92 |
<tr> |
|
93 |
<th>[% 'Options' | $T8 %]</th> |
|
94 |
<td> |
|
95 |
<input type="checkbox" name="report_generator_pdf_options_number" id="report_generator_pdf_options_number" value="1" checked> |
|
96 |
<label for="report_generator_pdf_options_number">[% 'Number pages' | $T8 %]</label> |
|
97 |
[% IF ALL_PRINTERS.size %] <br> |
|
98 |
<input type="checkbox" name="report_generator_pdf_options_print" id="report_generator_pdf_options_print" value="1"> |
|
99 |
<label for="report_generator_pdf_options_print">[% 'Print list' | $T8 %]</label> |
|
100 |
[% END %] |
|
101 |
</td> |
|
102 |
</tr> |
|
103 |
[% IF ALL_PRINTERS.size %] |
|
104 |
<tr> |
|
105 |
<td>[% 'Printer' | $T8 %]</td> |
|
106 |
<td> |
|
107 |
<select name="report_generator_pdf_options_printer_id"> |
|
108 |
[% FOREACH printer = ALL_PRINTERS %] |
|
109 |
<option value="[% HTML.escape(printer.id) %]"[% IF printer.selected %] selected[% END %]>[% HTML.escape(printer.printer_description) %]</option> |
|
110 |
[% END %] |
|
111 |
</select> |
|
112 |
</td> |
|
113 |
</tr> |
|
114 |
<tr> |
|
115 |
<td>[% 'Copies' | $T8 %]</td> |
|
116 |
<td><input type="text" name="report_generator_pdf_options_copies" size="4" value="[% HTML.escape(copies) %]"></td> |
|
117 |
</tr> |
|
118 |
[% END %] |
|
119 |
</tbody> |
|
120 |
</table> |
|
121 |
|
|
122 |
</div><!-- /.wrapper --> |
|
123 |
|
|
124 |
[% IF CONTROLLER_DISPATCH %] |
|
125 |
<input type="hidden" name="CONTROLLER_DISPATCH" value="[% CONTROLLER_DISPATCH | html %]"> |
|
126 |
[% ELSE %] |
|
127 |
<input type="hidden" name="action" value="report_generator_dispatcher"> |
|
128 |
[% END %] |
|
129 |
|
|
130 |
</form> |
Auch abrufbar als: Unified diff
Neues kivitendo Design restliche Aenderungen in templates/webpages/r*
Dateien rc/* record_links/* record_template/* report_generator/*