deposit slips
[freeside.git] / httemplate / search / report_cust_pkg.html
index 556177c..4e17d1f 100755 (executable)
@@ -6,9 +6,8 @@
 
 % unless ( $custnum ) {
 
-  <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
-
-    <& /elements/tr-title.html, value => mt('Customer search options') &>
+  <FONT CLASS="fsinnerbox-title"><% emt('Customer search options') %></FONT>
+  <TABLE CLASS="fsinnerbox">
 
     <& /elements/tr-select-agent.html,
                    'curr_value'    => scalar( $cgi->param('agentnum') ),
@@ -50,9 +49,8 @@
 
 % }
 
-  <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
-
-    <& /elements/tr-title.html, value => mt('Package search options') &>
+<FONT CLASS="fsinnerbox-title"><% emt('Package search options') %></FONT>
+<TABLE CLASS="fsinnerbox">
 
     <& /elements/tr-select-sales.html,
                   'label'         => 'Package sales person',
                   'onchange' => 'status_changed(this);',
     &>
 
+    <& /elements/tr-select-reason.html,
+             'field'          => 'reasonnum',
+             'reason_class'   => 'S',
+             'label'          => 'Suspended Reason',
+             'label_id'       => 'reasonnum_label',
+             'hide_addnew'    => '1',
+             'hide_onload'    => '1',
+             'cgi'            => $cgi,
+             'control_button' => 'confirm_suspend_cust_button',
+             'pre_options'    => [ 0 => 'all' ],
+    &>
+
     <SCRIPT TYPE="text/javascript">
   
       function status_changed(what) {
 
+        if (what.options[what.selectedIndex].value == 'suspended') {
+          document.getElementById('reasonnum_row').style.visibility = 'visible';
+        }
+        else {
+          document.getElementById('reasonnum_row').style.visibility = 'collapse';
+        }
+
 %       foreach my $status ( '', FS::cust_pkg->statuses() ) {
 
           if ( what.options[what.selectedIndex].value == '<% $status %>' ) {
 
 %   }
     <TR>
-      <TD COLSPAN=2>
-        <TABLE>
-          <TR>
+
+
+
             <TD></TD>
-            <TD>From date <i>(m/d/y)</i></TD>
-            <TD>To date <i>(m/d/y)</i></TD>
-            <TD>Empty date</TD>
+            <TH ALIGN="left"><% '&nbsp;'x 10 %>From date <i>(m/d/y)</i></TH>
+            <TH ALIGN="center">To date <i>(m/d/y)</i></TH>
+            <TH>Empty date</TH>
           </TR>
 %   my $noinit = 0;
 %   foreach my $field (@date_fields) {
 
           <TR>
-            <TD ALIGN="right" VALIGN="center"><% $label{$field} %></TD>
+            <TH ALIGN="right" VALIGN="center"><% $label{$field} %></TH>
 %     foreach (qw(beginning ending)) {
             <TD>
               <& /elements/input-date-field.html, {
             </TD>
           </TR>
 %   } #foreach $field
-        </TABLE>
-      </TD>
-    </TR>
+
+
+
     
     <SCRIPT TYPE="text/javascript">
   
                 'onchange' => 'custom_changed(this);',
     &> 
 
-    <& /elements/tr-selectmultiple-part_pkg.html &> 
+    <& /elements/tr-selectmultiple-part_pkg.html, colspan=>3 &> 
 
-    <& /elements/tr-title.html, value => mt('Location search options') &>
+</TABLE>
+<BR>
+
+<FONT CLASS="fsinnerbox-title"><% emt('Location search options') %></FONT>
+<TABLE CLASS="fsinnerbox">
 
 %   my @location_options = qw(cust nocust census nocensus);
 %   if ( $conf->config('tax_data_vendor') eq 'cch' ) {
                 'value'   => { map { $_ => 0 } @location_options },
     &>
 
-    <& /elements/tr-title.html, value => mt('Display options') &>
+</TABLE>
+<BR>
+
+<FONT CLASS="fsinnerbox-title"><% emt('Display options') %></FONT>
+<TABLE CLASS="fsinnerbox">
 
     <& /elements/tr-select-cust-fields.html &>