5 <SCRIPT TYPE="text/javascript" SRC="overlibmws.js"></SCRIPT>
6 <SCRIPT TYPE="text/javascript" SRC="iframecontentmws.js"></SCRIPT>
8 include( '/elements/cust_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 keywords
13 'label' => 'click me', # text of <A> tag
14 'cust_main' => $cust_main # a FS::cust_main 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_main'} ) {
27 <% include('/elements/popup_link.html', $params ) %>\
31 my $params = { 'closetext' => 'Close' };
33 if (ref($_[0]) eq 'HASH') {
34 $params = { %$params, %{ $_[0] } };
36 $params = { %$params, @_ };
39 $params->{'action'} .=
40 ( $params->{'action'} =~ /\?/ ? ';' : '?' ).
41 'custnum='. $params->{'cust_main'}->custnum;