1 <% include('/elements/header.html', 'FCC Form 477 Report' ) %>
3 <FORM ACTION="477.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="active">
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
9 <TH CLASS="background" COLSPAN=2 ALIGN="left">
10 <FONT SIZE="+1">Search options</FONT>
14 <% include( '/elements/tr-select-agent.html',
15 'curr_value' => scalar( $cgi->param('agentnum') ),
20 <% include( '/elements/tr-select-pkg_class.html',
22 'empty_label' => '(empty class)',
26 <SCRIPT type="text/javascript">
27 function partchange(what) {
28 var id = 'part' + what.value;
29 var element = document.getElementById(id);
31 element.style.display = '';
33 element.style.display = 'none';
37 document.getElementById('enableV').disabled =
38 ! (document.getElementById('enableIIA').checked ||
39 document.getElementById('enableIIB').checked);
42 document.getElementById('enableVI').disabled =
43 ! document.getElementById('enableIA').checked;
47 <% include( '/elements/tr-checkbox.html',
48 'label' => 'Enable part IA?',
52 'onchange' => 'partchange(this); toggleVI();',
56 <TR id='partIA' style="display:none"><TD>Part IA</TD><TD><TABLE>
57 <TR><TD>Download speeds</TD><TD>
60 % foreach my $speed ( @FS::Report::FCC_477::download ) {
64 <% include( '/elements/select-table.html',
65 'table' => 'part_pkg_report_option',
67 'hashref' => { 'disabled' => '' },
68 'element_name' => 'part1_column_option',
71 FS::Report::FCC_477::restore_fcc477map("part1_column_option_$i"),
79 <TD>Upload speeds</TD><TD>
82 % foreach my $speed ( @FS::Report::FCC_477::upload ) {
86 <% include( '/elements/select-table.html',
87 'table' => 'part_pkg_report_option',
89 'hashref' => { 'disabled' => '' },
90 'element_name' => 'part1_row_option',
93 FS::Report::FCC_477::restore_fcc477map("part1_row_option_$i"),
101 <TR><TD>Technologies</TD><TD>
104 % foreach my $tech ( @FS::Report::FCC_477::technology ) {
108 <% include( '/elements/select-table.html',
109 'table' => 'part_pkg_report_option',
110 'name_col' => 'name',
111 'hashref' => { 'disabled' => '' },
112 'element_name' => "part1_technology_option_$i",
113 'empty_label' => '(omit)',
115 FS::Report::FCC_477::restore_fcc477map("part1_technology_option_$i"),
125 <% include( '/elements/tr-checkbox.html',
126 'label' => 'Enable part IIA?',
130 'onchange' => 'partchange(this); toggleV();',
134 <TR id='partIIA' style="display:none"><TD>Part IIA</TD><TD><TABLE>
136 % foreach my $option ( @FS::Report::FCC_477::part2aoption ) {
138 <TH><% $option %></TH>
140 <% include( '/elements/select-table.html',
141 'table' => 'part_pkg_report_option',
142 'name_col' => 'name',
143 'hashref' => { 'disabled' => '' },
144 'element_name' => 'part2a_row_option',
146 FS::Report::FCC_477::restore_fcc477map("part2a_row_option_$i"),
155 <% include( '/elements/tr-checkbox.html',
156 'label' => 'Enable part IIB?',
160 'onchange' => 'partchange(this); toggleV();',
164 <TR id='partIIB' style="display:none"><TD>Part IIB</TD><TD><TABLE>
166 % foreach my $option ( @FS::Report::FCC_477::part2boption ) {
168 <TH><% $option %></TH>
170 <% include( '/elements/select-table.html',
171 'table' => 'part_pkg_report_option',
172 'name_col' => 'name',
173 'hashref' => { 'disabled' => '' },
174 'element_name' => 'part2b_row_option',
176 FS::Report::FCC_477::restore_fcc477map("part2b_row_option_$i"),
185 <% include( '/elements/tr-checkbox.html',
186 'label' => 'Enable part IV?',
188 'id' => 'enableIV', #unused
190 'onchange' => 'partchange(this)',
194 <TR id='partIV' style="display:none"><TD>Part IV</TD><TD><TABLE>
195 <% include( '/elements/tr-textarea.html',
196 'label' => 'Explanatory notes',
205 <% include( '/elements/tr-checkbox.html',
206 'label' => 'Enable part V?',
210 'onchange' => 'partchange(this)',
212 ' <FONT SIZE="-1">(requires Part IIA or IIB)</FONT>',
215 <TR id='partV' style="display:none">
218 <% include( '/elements/select-table.html',
219 'table' => 'part_pkg_report_option',
220 'name_col' => 'name',
221 'hashref' => { 'disabled' => '' },
222 'element_name' => 'partv_report_option',
229 <% include( '/elements/tr-checkbox.html',
230 'label' => 'Enable part VI?',
233 'value' => 'VI_census',
235 ' <FONT SIZE="-1">(requires part IA)</FONT>',
238 <SCRIPT TYPE="text/javascript">
245 <INPUT TYPE="submit" VALUE="Get Report">
249 <% include('/elements/footer.html') %>
253 unless $FS::CurrentUser::CurrentUser->access_right('List packages');