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', {
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
27 my($params, $action, $label, $actionlabel, $color, $cust_pkg, $width);
28 my $closetext = 'Close';
29 if (ref(@_[0]) eq 'HASH') {
31 foreach (qw(action label actionlabel width color)) {
32 $action = $params->{'action'} if exists $params->{'action'};
33 $label = $params->{'label'} if exists $params->{'label'};
34 $actionlabel = $params->{'actionlabel'} if exists $params->{'actionlabel'};
35 $width = $params->{'width'} if exists $params->{'width'};
36 $color = $params->{'color'} if exists $params->{'color'};
37 $closetext = $params->{'closetext'} if exists $params->{'closetext'};
38 $cust_pkg = $params->{'cust_pkg'} if exists $params->{'cust_pkg'};
41 ($action, $label, $actionlabel, $color, $cust_pkg) = @_;
44 $action .= '&pkgnum='. $cust_pkg->pkgnum;
45 $actionlabel .= ' package '. $cust_pkg->pkgnum;
50 ? include('/elements/popup_link.html', { 'action' => $action,
52 'actionlabel' => $actionlabel,
55 'closetext' => $closetext,