X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_pkg-fcc.html;h=69e7d8f31678315b13b52d7b189295e583e22c96;hp=4c9cea1958e4baa330115fbb0418be90e68ce9a6;hb=HEAD;hpb=f8066fa6a33f4ac33beec675b17de96c8c0a274b diff --git a/httemplate/browse/part_pkg-fcc.html b/httemplate/browse/part_pkg-fcc.html index 4c9cea195..69e7d8f31 100755 --- a/httemplate/browse/part_pkg-fcc.html +++ b/httemplate/browse/part_pkg-fcc.html @@ -94,8 +94,6 @@ my $select = join(',', my $addl_from = FS::Report::FCC_477::join_optionnames(@optionnames); -$cgi->param('classnum', $classnum) if length($classnum); - my $link = [ $p.'edit/part_pkg.cgi?', 'pkgpart' ]; my @header = ( '#', 'Package', 'Comment' ); @@ -182,9 +180,11 @@ if ( $cgi->param('redirect') ) { my $html_init = include('/elements/init_overlib.html') . include('/elements/input-fcc_options.html', js_only => 1) . - include('.style'); + include('.style') . + include('.script'); -my $html_form = qq!
+my $html_form = qq! + ( show class: !. include('/elements/select-pkg_class.html', #'curr_value' => $classnum, @@ -195,17 +195,20 @@ my $html_form = qq! 1, ). ' ) -

' . - qq!!; +

'; + +# pass the page selection through so we can jump back to the current spot +if ( $cgi->param('maxrecords') =~ /^(\d+)$/ ) { + $html_form .= qq!!; +} +if ( $cgi->param('offset') =~ /^(\d+)$/ ) { + $html_form .= qq!!; +} -my $html_foot = qq! - -
!; +# restore this only after creating $html_form +$cgi->param('classnum', $classnum) if length($classnum); + +my $html_foot = ''; my @menubar = ( 'Package definitions' => $p.'browse/part_pkg.cgi' ); @@ -223,3 +226,17 @@ my @menubar = } +<%def .script> + +