477 report rewrite, #28020
[freeside.git] / httemplate / search / report_477.html
index 542824b..e3ae69e 100755 (executable)
@@ -1,54 +1,57 @@
-<% include('/elements/header.html', 'FCC Form 477 Report' ) %>
+% if ( $conf->exists('old_fcc_report') ) {
+%   $m->clear_buffer;
+%   $m->print($cgi->redirect($fsurl . 'search/old477/report_477.html'));
+%   $m->abort;
+% }
+<& /elements/header.html, 'FCC Form 477 Report' &>
 
 <FORM ACTION="477.html" METHOD="GET">
-<INPUT TYPE="hidden" NAME="magic" VALUE="bill">
-<INPUT TYPE="hidden" NAME="status" VALUE="active">
 
   <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
 
     <TR>
-      <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left">
-        <FONT SIZE="+1">Search options</FONT>
+      <TH CLASS="background" COLSPAN=2 ALIGN="left">
+        <FONT SIZE="+1">Report options</FONT>
       </TH>
     </TR>
 
-    <% include( '/elements/tr-select-agent.html',
-                   'curr_value'    => scalar( $cgi->param('agentnum') ),
-                   'disable_empty' => 0,
-               )
-    %>
-
-    <% include( '/elements/tr-select-pkg_class.html',
-                   'pre_options' => [ '0' => 'all' ],
-                   'empty_label' => '(empty class)',
-               )
-    %>
-
-%   if ( scalar( qsearch( 'part_pkg_report_option', { 'disabled' => '' } ) ) ) {
-
-    <% include( '/elements/tr-select-table.html',
-                   'label'        => 'Report classes',
-                   'table'        => 'part_pkg_report_option',
-                   'name_col'     => 'name',
-                   'hashref'      => { 'disabled' => '' },
-                   'element_name' => 'report_option',
-                   'multiple'     => 'multiple',
-               )
-    %>
-
-%   }
-
+    <& /elements/tr-select-agent.html,
+      'curr_value'    => scalar( $cgi->param('agentnum') ),
+      'disable_empty' => 0,
+    &>
+
+    <& /elements/tr-input-date-field.html, {
+        'label'         => 'As of date',
+        'name'          => 'date',
+        'value'         => '',
+        'format'        => '%m/%d/%Y'
+    } &>
+
+    <& /elements/tr-checkbox-multiple.html,
+      'label'   => 'Enable parts',
+      'field'   => 'parts',
+      'labels'  => {
+        6   => 'Part 6 (Fixed Broadband Subscription)',
+        #7   => 'Part 7 (Mobile Wireless Broadband Subscription),
+        #8   => 'Part 8 (Mobile Local Telephone Subscription),
+        9   => 'Part 9 (Local Exchange Telephone Subscription)',
+        10  => 'Part 10 (Interconnected VoIP Subscription)',
+        11  => 'Part 11 (Voice Telephone Subscription Detail)',
+      },
+      options => [ 6, 9, 10, 11 ],
+    &>
   </TABLE>
 
-<BR>
-<INPUT TYPE="submit" VALUE="Get Report">
+  <BR>
+  <INPUT TYPE="submit" VALUE="Get Report">
 
 </FORM>
 
-<% include('/elements/footer.html') %>
+<& /elements/footer.html &>
 <%init>
 
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('List packages');
 
+my $conf = FS::Conf->new;
 </%init>