From 69613d0ed870f245f3cd2adf0faaf1b3c1bde3ad Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 1 Apr 2008 04:37:26 +0000 Subject: use popup_link... --- httemplate/search/cust_pkg.cgi | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) (limited to 'httemplate/search') diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi index 20f1154c0..bc2f0cbce 100755 --- a/httemplate/search/cust_pkg.cgi +++ b/httemplate/search/cust_pkg.cgi @@ -209,29 +209,22 @@ sub time_or_blank { }; } -my $html_init = ''; -for (qw (overlibmws overlibmws_iframe overlibmws_draggable iframecontentmws)) -{ - $html_init .= - qq!!; -} +my $html_init = include('/elements/init_overlib.html'); my $extra_choices = sub { my $query = shift; - my $choices = ''; - - my $url = qq!overlib( OLiframeContent('!. popurl(2). - qq!misc/bulk_change_pkg.cgi?$query', 768, 336, !. - qq!'bulk_pkg_change_popup' ), CAPTION, 'Change Packages'!. - qq!, STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, !. - qq!CLOSECLICK ); return false;!; - - if ($FS::CurrentUser::CurrentUser->access_right('Bulk change customer packages')) { - $choices .= qq!
Change these packages!; - } - return $choices; + return '' unless + $FS::CurrentUser::CurrentUser->access_right('Bulk change customer packages'); + + '

'. + include( '/elements/popup_link.html', + 'label' => 'Change these packages', + 'action' => "${p}misc/bulk_change_pkg.cgi?$query", + 'actionlabel' => 'Change Packages', + 'width' => 763, + 'height' => 336, + ); }; -- cgit v1.2.1