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';
38 <% include( '/elements/tr-checkbox.html',
39 'label' => 'Enable part IA?',
42 'onchange' => 'partchange(this)',
46 <TR id='partIA' style="display:none"><TD>Part IA</TD><TD><TABLE>
47 <TR><TD>Download speeds</TD><TD>
50 % foreach my $speed ( @FS::Report::FCC_477::download ) {
54 <% include( '/elements/select-table.html',
55 'table' => 'part_pkg_report_option',
57 'hashref' => { 'disabled' => '' },
58 'element_name' => 'part1_column_option',
61 FS::Report::FCC_477::restore_fcc477map("part1_column_option_$i"),
69 <TD>Upload speeds</TD><TD>
72 % foreach my $speed ( @FS::Report::FCC_477::upload ) {
76 <% include( '/elements/select-table.html',
77 'table' => 'part_pkg_report_option',
79 'hashref' => { 'disabled' => '' },
80 'element_name' => 'part1_row_option',
83 FS::Report::FCC_477::restore_fcc477map("part1_row_option_$i"),
91 <TR><TD>Technologies</TD><TD>
94 % foreach my $tech ( @FS::Report::FCC_477::technology ) {
98 <% include( '/elements/select-table.html',
99 'table' => 'part_pkg_report_option',
100 'name_col' => 'name',
101 'hashref' => { 'disabled' => '' },
102 'element_name' => "part1_technology_option_$i",
103 'empty_label' => '(omit)',
105 FS::Report::FCC_477::restore_fcc477map("part1_technology_option_$i"),
115 <% include( '/elements/tr-checkbox.html',
116 'label' => 'Enable part IIA?',
119 'onchange' => 'partchange(this)',
123 <TR id='partIIA' style="display:none"><TD>Part IIA</TD><TD><TABLE>
125 % foreach my $option ( @FS::Report::FCC_477::part2aoption ) {
127 <TH><% $option %></TH>
129 <% include( '/elements/select-table.html',
130 'table' => 'part_pkg_report_option',
131 'name_col' => 'name',
132 'hashref' => { 'disabled' => '' },
133 'element_name' => 'part2a_row_option',
135 FS::Report::FCC_477::restore_fcc477map("part2a_row_option_$i"),
144 <% include( '/elements/tr-checkbox.html',
145 'label' => 'Enable part IIB?',
148 'onchange' => 'partchange(this)',
152 <TR id='partIIB' style="display:none"><TD>Part IIB</TD><TD><TABLE>
154 % foreach my $option ( @FS::Report::FCC_477::part2boption ) {
156 <TH><% $option %></TH>
158 <% include( '/elements/select-table.html',
159 'table' => 'part_pkg_report_option',
160 'name_col' => 'name',
161 'hashref' => { 'disabled' => '' },
162 'element_name' => 'part2b_row_option',
164 FS::Report::FCC_477::restore_fcc477map("part2b_row_option_$i"),
173 <% include( '/elements/tr-checkbox.html',
174 'label' => 'Enable part IV?',
177 'onchange' => 'partchange(this)',
181 <TR id='partIV' style="display:none"><TD>Part IV</TD><TD><TABLE>
182 <% include( '/elements/tr-textarea.html',
183 'label' => 'Explanatory notes',
192 <% include( '/elements/tr-checkbox.html',
193 'label' => 'Enable part V?',
196 'onchange' => 'partchange(this)',
199 <TR id='partV' style="display:none">
202 <% include( '/elements/select-table.html',
203 'table' => 'part_pkg_report_option',
204 'name_col' => 'name',
205 'hashref' => { 'disabled' => '' },
206 'element_name' => 'partv_report_option',
213 <% include( '/elements/tr-checkbox.html',
214 'label' => 'Enable part VI?',
216 'value' => 'VI_census',
223 <INPUT TYPE="submit" VALUE="Get Report">
227 <% include('/elements/footer.html') %>
231 unless $FS::CurrentUser::CurrentUser->access_right('List packages');