5 <SCRIPT TYPE="text/javascript" SRC="overlibmws.js"></SCRIPT>
6 <SCRIPT TYPE="text/javascript" SRC="iframecontentmws.js"></SCRIPT>
8 include( '/elements/pkg_popup_link.html', { #hashref or a list, either way
11 'action' => 'content.html', # uri for content of popup which should
12 # be suitable for appending '&stuff...'
13 'label' => 'click me', # text of <A> tag
14 'cust_pkg' => $cust_pkg # a FS::cust_pkg object
16 #strongly recommended (you want a title, right?)
17 'actionlabel => 'You clicked', # popup title
22 'closetext' => 'Go Away', # the value '' removes the link
26 % if ( $params->{'cust_pkg'} ) {
27 <% include('/elements/popup_link.html', $params ) %>\
31 my $params = { 'closetext' => 'Close',
35 if (ref($_[0]) eq 'HASH') {
36 $params = { %$params, %{ $_[0] } };
38 $params = { %$params, @_ };
41 $params->{'action'} .=
42 ( $params->{'action'} =~ /\?/ ? ';' : '?' ).
43 'pkgnum='. $params->{'cust_pkg'}->pkgnum;
45 $params->{'actionlabel'} .=
46 ' package '. $params->{'cust_pkg'}->pkgnum; #XXX pkgnum? really?