[freeside-commits] freeside/httemplate/elements popup_link-ping.html, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Mon Sep 14 16:52:03 PDT 2009


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv24976/httemplate/elements

Added Files:
	popup_link-ping.html 
Log Message:
ping tool, RT#5845

--- NEW FILE: popup_link-ping.html ---
<%doc>

Example:

  include('/elements/init_overlib.html')

  include( '/elements/popup_link-ping.html', { #hashref or a list, either way
             'ip' => '10.9.8.7',
  })

</%doc>
<% include('/elements/popup_link.html', $params ) %>\
<%init>

my $params = { 'closetext' => 'Close' };

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

$params->{'label'} ||= 'ping';
$params->{'actionlabel'} ||= 'Ping '. $params->{'ip'};
$params->{'width'} ||= 350;
$params->{'height'} ||= 220;

$params->{'action'} = $p. 'misc/ping.html?'. $params->{'ip'};

</%init>



More information about the freeside-commits mailing list