This commit was generated by cvs2svn to compensate for changes in r10640,
[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 CLASS="background" 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     <SCRIPT type="text/javascript">
27       function partchange(what) {
28         var id = 'part' + what.value;
29         var element = document.getElementById(id);
30         if (what.checked) {
31           element.style.display = '';
32         } else {
33           element.style.display = 'none';
34         }
35       }
36     </SCRIPT>
37
38     <% include( '/elements/tr-checkbox.html',
39                    'label' => 'Enable part IA?',
40                    'field' => 'part',
41                    'value' => 'IA',
42                    'onchange' => 'partchange(this)',
43                )
44     %>
45
46     <TR id='partIA' style="display:none"><TD>Part IA</TD><TD><TABLE>
47       <TR><TD>Download speeds</TD><TD>
48         <TABLE>
49 %       foreach my $speed ( @FS::Report::FCC_477::download ) {
50           <TR>
51             <TH><% $speed %></TH>
52             <TD>
53             <% include( '/elements/select-table.html',
54                            'table'        => 'part_pkg_report_option',
55                            'name_col'     => 'name',
56                            'hashref'      => { 'disabled' => '' },
57                            'element_name' => 'part1_column_option',
58                            'disable_empty' => 1,
59                        )
60             %>
61             </TD>
62           </TR>
63 %       }
64         </TABLE></TD>
65       <TD>Upload speeds</TD><TD>
66         <TABLE>
67 %       foreach my $speed ( @FS::Report::FCC_477::upload ) {
68           <TR>
69             <TH><% $speed %></TH>
70             <TD>
71             <% include( '/elements/select-table.html',
72                            'table'        => 'part_pkg_report_option',
73                            'name_col'     => 'name',
74                            'hashref'      => { 'disabled' => '' },
75                            'element_name' => 'part1_row_option',
76                            'disable_empty' => 1,
77                        )
78             %>
79             </TD>
80           </TR>
81 %       }
82         </TABLE></TD></TR>
83       <TR><TD>Technologies</TD><TD>
84         <TABLE>
85 %       my $i = 0;
86 %       foreach my $tech ( @FS::Report::FCC_477::technology ) {
87           <TR>
88             <TH><% $tech %></TH>
89             <TD>
90             <% include( '/elements/select-table.html',
91                            'table'        => 'part_pkg_report_option',
92                            'name_col'     => 'name',
93                            'hashref'      => { 'disabled' => '' },
94                            'element_name' => "part1_technology_option_$i",
95                            'empty_label'  => '(omit)',
96                        )
97             %>
98             </TD>
99           </TR>
100 %       $i++
101 %       }
102         </TABLE></TD></TR>
103     </TABLE></TD></TR>
104
105     <% include( '/elements/tr-checkbox.html',
106                    'label' => 'Enable part IIA?',
107                    'field' => 'part',
108                    'value' => 'IIA',
109                    'onchange' => 'partchange(this)',
110                )
111     %>
112
113     <TR id='partIIA' style="display:none"><TD>Part IIA</TD><TD><TABLE>
114 %   foreach my $option ( @FS::Report::FCC_477::part2aoption ) {
115     <TR>
116       <TH><% $option %></TH>
117       <TD>
118       <% include( '/elements/select-table.html',
119                      'table'        => 'part_pkg_report_option',
120                      'name_col'     => 'name',
121                      'hashref'      => { 'disabled' => '' },
122                      'element_name' => 'part2a_row_option',
123                  )
124       %>
125       </TD>
126     </TR>
127 %   }
128   </TABLE></TD></TR>
129
130     <% include( '/elements/tr-checkbox.html',
131                    'label' => 'Enable part IIB?',
132                    'field' => 'part',
133                    'value' => 'IIB',
134                    'onchange' => 'partchange(this)',
135                )
136     %>
137
138     <TR id='partIIB' style="display:none"><TD>Part IIB</TD><TD><TABLE>
139 %   foreach my $option ( @FS::Report::FCC_477::part2boption ) {
140     <TR>
141       <TH><% $option %></TH>
142       <TD>
143       <% include( '/elements/select-table.html',
144                      'table'        => 'part_pkg_report_option',
145                      'name_col'     => 'name',
146                      'hashref'      => { 'disabled' => '' },
147                      'element_name' => 'part2b_row_option',
148                  )
149       %>
150       </TD>
151     </TR>
152 %   }
153   </TABLE></TD></TR>
154
155     <% include( '/elements/tr-checkbox.html',
156                    'label' => 'Enable part IV?',
157                    'field' => 'part',
158                    'value' => 'IV',
159                    'onchange' => 'partchange(this)',
160                )
161     %>
162
163     <TR id='partIV' style="display:none"><TD>Part IV</TD><TD><TABLE>
164     <% include( '/elements/tr-textarea.html',
165                    'label'        => 'Explanatory notes',
166                    'id'           => 'partIV',
167                    'field'         => 'notes',
168                    'rows'         => 15,
169                    'cols'         => 80,
170                )
171     %>
172   </TABLE></TD></TR>
173
174     <% include( '/elements/tr-checkbox.html',
175                    'label' => 'Enable part V?',
176                    'field' => 'part',
177                    'value' => 'V',
178                )
179     %>
180
181     <% include( '/elements/tr-checkbox.html',
182                    'label' => 'Enable part VI?',
183                    'field' => 'part',
184                    'value' => 'VI_census',
185                )
186     %>
187
188   </TABLE>
189
190 <BR>
191 <INPUT TYPE="submit" VALUE="Get Report">
192
193 </FORM>
194
195 <% include('/elements/footer.html') %>
196 <%init>
197
198 die "access denied"
199   unless $FS::CurrentUser::CurrentUser->access_right('List packages');
200
201 </%init>