combine ticket notification scrips, #15353
[freeside.git] / httemplate / elements / popup_link-ping.html
1 <%doc>
2
3 Example:
4
5   include('/elements/init_overlib.html')
6
7   include( '/elements/popup_link-ping.html', { #hashref or a list, either way
8              'ip' => '10.9.8.7',
9   })
10
11 </%doc>
12 <% include('/elements/popup_link.html', $params ) %>\
13 <%init>
14
15 my $params = { 'closetext' => 'Close' };
16
17 if (ref($_[0]) eq 'HASH') {
18   $params = { %$params, %{ $_[0] } };
19 } else {
20   $params = { %$params, @_ };
21 }
22
23 $params->{'label'} ||= 'ping';
24 $params->{'actionlabel'} ||= 'Ping '. $params->{'ip'};
25 $params->{'width'} ||= 350;
26 $params->{'height'} ||= 220;
27
28 $params->{'action'} = $p. 'misc/ping.html?'. $params->{'ip'};
29
30 </%init>