improved 477 report #6004
[freeside.git] / httemplate / search / report_477.html
1 <% include('/elements/header.html', 'FCC Form 477 Report' ) %>
2
3 <FORM ACTION="477.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="active">
5
6   <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8     <TR>
9       <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left">
10         <FONT SIZE="+1">Search options</FONT>
11       </TH>
12     </TR>
13
14     <% include( '/elements/tr-select-agent.html',
15                    'curr_value'    => scalar( $cgi->param('agentnum') ),
16                    'disable_empty' => 0,
17                )
18     %>
19
20     <% include( '/elements/tr-select-pkg_class.html',
21                    'pre_options' => [ '0' => 'all' ],
22                    'empty_label' => '(empty class)',
23                )
24     %>
25
26 %   if ( scalar( qsearch( 'part_pkg_report_option', { 'disabled' => '' } ) ) ) {
27 %   # the m2 javascript magic in edit/elements/edit.html would be better here
28
29     <% include( '/elements/tr-select-table.html',
30                    'label'        => 'Column report classes',
31                    'table'        => 'part_pkg_report_option',
32                    'name_col'     => 'name',
33                    'hashref'      => { 'disabled' => '' },
34                    'element_name' => 'column_option',
35                    'multiple'     => 'multiple',
36                )
37     %>
38
39     <% include( '/elements/tr-select-table.html',
40                    'label'        => 'Row report classes',
41                    'table'        => 'part_pkg_report_option',
42                    'name_col'     => 'name',
43                    'hashref'      => { 'disabled' => '' },
44                    'element_name' => 'row_option',
45                    'multiple'     => 'multiple',
46                )
47     %>
48
49 %   }
50
51   </TABLE>
52
53 <BR>
54 <INPUT TYPE="submit" VALUE="Get Report">
55
56 </FORM>
57
58 <% include('/elements/footer.html') %>
59 <%init>
60
61 die "access denied"
62   unless $FS::CurrentUser::CurrentUser->access_right('List packages');
63
64 </%init>