summaryrefslogtreecommitdiff
path: root/httemplate/elements/popup_link-send_report_batch.html
blob: 5f4471054add0daacd425b243a78b934617f1bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%doc>

Example:

<& /elements/popup_link-send_report_batch.html,
  reportname => 'sales_commission_pkg',
  label => 'Click here to send reports by email',
&>
</%doc>
<& /elements/popup_link.html, $params &>\
<%init>

my $params = { 'closetext' => emt('Close') };

if (ref($_[0]) eq 'HASH') {
  $params = { %$params, %{ $_[0] } };
} else {
  $params = { %$params, @_ };
}

$params->{'label'} ||= emt('Send reports by email');
$params->{'actionlabel'} ||= emt('Send reports');
#$params->{'width'} ||= 350;
$params->{'height'} ||= 650;

$params->{'action'} = $fsurl. 'misc/send-report.html?reportname='. $params->{'reportname'};

</%init>