From: ivan Date: Tue, 1 Apr 2008 04:37:26 +0000 (+0000) Subject: use popup_link... X-Git-Tag: root_of_webpay_support~767 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=69613d0ed870f245f3cd2adf0faaf1b3c1bde3ad use popup_link... --- 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, + ); };