Revision fbd76394
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/reportgenerator.pl | ||
---|---|---|
16 | 16 |
use SL::MoreCommon; |
17 | 17 |
use SL::ReportGenerator; |
18 | 18 |
|
19 |
use strict; |
|
20 |
|
|
19 | 21 |
sub report_generator_set_default_sort { |
20 |
$lxdebug->enter_sub(); |
|
22 |
$main::lxdebug->enter_sub(); |
|
23 |
|
|
24 |
my $form = $main::form; |
|
21 | 25 |
|
22 | 26 |
my $default_sortorder = shift; |
23 | 27 |
my $default_sortdir = shift; |
... | ... | |
26 | 30 |
$form->{sortdir} = $default_sortdir unless (defined $form->{sortdir}); |
27 | 31 |
$form->{sortdir} = $form->{sortdir} ? 1 : 0; |
28 | 32 |
|
29 |
$lxdebug->leave_sub(); |
|
33 |
$main::lxdebug->leave_sub();
|
|
30 | 34 |
} |
31 | 35 |
|
32 | 36 |
|
33 | 37 |
sub report_generator_export_as_pdf { |
34 |
$lxdebug->enter_sub(); |
|
38 |
$main::lxdebug->enter_sub(); |
|
39 |
|
|
40 |
my $form = $main::form; |
|
41 |
my %myconfig = %main::myconfig; |
|
42 |
my $locale = $main::locale; |
|
35 | 43 |
|
36 | 44 |
if ($form->{report_generator_pdf_options_set}) { |
37 | 45 |
my $saved_form = save_form(); |
... | ... | |
44 | 52 |
report_generator_do('HTML'); |
45 | 53 |
} |
46 | 54 |
|
47 |
$lxdebug->leave_sub(); |
|
55 |
$main::lxdebug->leave_sub();
|
|
48 | 56 |
return; |
49 | 57 |
} |
50 | 58 |
|
... | ... | |
64 | 72 |
print $form->parse_html_template('report_generator/pdf_export_options', { 'HIDDEN' => \@form_values, |
65 | 73 |
'ALLOW_FONT_SELECTION' => $allow_font_selection, }); |
66 | 74 |
|
67 |
$lxdebug->leave_sub(); |
|
75 |
$main::lxdebug->leave_sub();
|
|
68 | 76 |
} |
69 | 77 |
|
70 | 78 |
sub report_generator_export_as_csv { |
71 |
$lxdebug->enter_sub(); |
|
79 |
$main::lxdebug->enter_sub(); |
|
80 |
|
|
81 |
my $form = $main::form; |
|
82 |
my $locale = $main::locale; |
|
72 | 83 |
|
73 | 84 |
if ($form->{report_generator_csv_options_set}) { |
74 | 85 |
report_generator_do('CSV'); |
75 |
$lxdebug->leave_sub(); |
|
86 |
$main::lxdebug->leave_sub();
|
|
76 | 87 |
return; |
77 | 88 |
} |
78 | 89 |
|
... | ... | |
82 | 93 |
$form->header(); |
83 | 94 |
print $form->parse_html_template('report_generator/csv_export_options', { 'HIDDEN' => \@form_values }); |
84 | 95 |
|
85 |
$lxdebug->leave_sub(); |
|
96 |
$main::lxdebug->leave_sub();
|
|
86 | 97 |
} |
87 | 98 |
|
88 | 99 |
sub report_generator_back { |
89 |
$lxdebug->enter_sub(); |
|
100 |
$main::lxdebug->enter_sub();
|
|
90 | 101 |
|
91 | 102 |
report_generator_do('HTML'); |
92 | 103 |
|
93 |
$lxdebug->leave_sub(); |
|
104 |
$main::lxdebug->leave_sub();
|
|
94 | 105 |
} |
95 | 106 |
|
96 | 107 |
sub report_generator_do { |
97 |
$lxdebug->enter_sub(); |
|
108 |
$main::lxdebug->enter_sub();
|
|
98 | 109 |
|
99 | 110 |
my $format = shift; |
100 | 111 |
|
112 |
my $form = $main::form; |
|
113 |
my $locale = $main::locale; |
|
114 |
|
|
101 | 115 |
my $nextsub = $form->{report_generator_nextsub}; |
102 | 116 |
if (!$nextsub) { |
103 | 117 |
$form->error($locale->text('report_generator_nextsub is not defined.')); |
... | ... | |
113 | 127 |
|
114 | 128 |
call_sub($nextsub); |
115 | 129 |
|
116 |
$lxdebug->leave_sub(); |
|
130 |
$main::lxdebug->leave_sub();
|
|
117 | 131 |
} |
118 | 132 |
|
119 | 133 |
sub report_generator_dispatcher { |
120 |
$lxdebug->enter_sub(); |
|
134 |
$main::lxdebug->enter_sub(); |
|
135 |
|
|
136 |
my $form = $main::form; |
|
137 |
my $locale = $main::locale; |
|
121 | 138 |
|
122 | 139 |
my $nextsub = $form->{report_generator_dispatch_to}; |
123 | 140 |
if (!$nextsub) { |
... | ... | |
128 | 145 |
|
129 | 146 |
call_sub($nextsub); |
130 | 147 |
|
131 |
$lxdebug->leave_sub(); |
|
148 |
$main::lxdebug->leave_sub();
|
|
132 | 149 |
} |
133 | 150 |
|
134 | 151 |
1; |
Auch abrufbar als: Unified diff
reportgenerator strict