X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fsearch%2Fcust_pkg.cgi;h=bc2f0cbced5ce76db17d12ff567fe82f270a6b2c;hb=bb51c09147a727688b6cd49e8838b9219ff25d43;hp=97b4412fe715e0dd00ea1dede935dc21766a8ef0;hpb=d0aca10ecd6edb171555eb87b1570daa3d2820b1;p=freeside.git
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index 97b4412fe..bc2f0cbce 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -95,13 +95,15 @@
'',
'',
'',
+ '',
+ '',
FS::UI::Web::cust_colors(),
'',
],
- 'style' => [ '', '', '', 'b', '', '', '', '', '', '', '',
+ 'style' => [ '', '', '', 'b', '', '', '', '', '', '', '', '', '',
FS::UI::Web::cust_styles() ],
- 'size' => [ '', '', '', '-1', ],
- 'align' => 'rllclrrrrrr'. FS::UI::Web::cust_aligns(). 'r',
+ 'size' => [ '', '', '', '-1' ],
+ 'align' => 'rlcclrrrrrrrl'. FS::UI::Web::cust_aligns(). 'r',
'links' => [
$link,
$link,
@@ -114,6 +116,8 @@
'',
'',
'',
+ '',
+ '',
( map { $_ ne 'Cust. Status' ? $clink : '' }
FS::UI::Web::cust_header(
$cgi->param('cust_fields')
@@ -205,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,
+ );
};
%init>