4.x style
authorIvan Kohler <ivan@freeside.biz>
Thu, 8 Jul 2021 16:51:27 +0000 (09:51 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 8 Jul 2021 16:51:27 +0000 (09:51 -0700)
httemplate/edit/part_pkg.cgi
httemplate/elements/columnnext.html
httemplate/elements/columnstart.html
httemplate/elements/tr-justtitle.html
httemplate/elements/tr-pkg_svc.html

index 78e4427..0a0b01e 100755 (executable)
                      #recurring frequency
                      #recurring fee (auto-disable)
 
-                   { type => 'columnnext' },
+                   { type => 'columnnext', value=>'Taxation', },
 
-                     {type=>'justtitle', value=>'Taxation' },
                      {field=>'setuptax', type=>'checkbox', value=>'Y'},
                      {field=>'recurtax', type=>'checkbox', value=>'Y'},
                      {field=>'taxclass', type=>'select-taxclass' },
                          )
                      ),
 
-                   { type => 'columnnext' },
-
-                     {type=>'justtitle', value=>'Agent (reseller) types' },
+                   { type => 'columnnext', value=>'Agent (reseller) types' },
 
                      { field       => 'agent_type',
                        type        => 'select-agent_type',
@@ -857,8 +854,9 @@ my $javascript = <<'END';
         supp_pkg_rows[0].style.display = 'none';
         var button = document.getElementById('show_supp_pkgs');
         button.onclick = show_supp_pkgs_click;
-        button.style.backgroundColor = '#cccccc';
-        button.style.border = '1px solid #7e0079';
+        //button.style.backgroundColor = '#cccccc';
+        //button.style.border = '1px solid #7e0079';
+        button.style.border = 'thin solid #999999';
         button.style.padding = '1px';
       }
     }
@@ -914,7 +912,7 @@ my $html_bottom = sub {
   my $layer_callback = sub {
   
     my $layer = shift;
-    my $html = ntable("#cccccc",2);
+    my $html = '<TABLE CLASS="fsinnerbox">';
   
     #$html .= '
     #  <TR>
index 4dfe82f..da8286e 100644 (file)
@@ -1,4 +1,10 @@
           </TABLE>
         </TD>
         <TD VALIGN="top" STYLE="padding-left:12px">
-          <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+          <FONT CLASS="fsinnerbox-title"><% $opt{value} %></FONT><BR>
+          <TABLE CLASS="fsinnerbox">
+<%init>
+
+my %opt = @_;
+
+</%init>
index 245c308..40f7cad 100644 (file)
@@ -16,7 +16,7 @@ Pass 'aligned' => 1 to have corresponding rows in the columns line up.
     <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 id="<%$id%>">
       <TR>
         <TD VALIGN="top">
-          <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+          <TABLE CLASS="fsinnerbox">
 % if ( $aligned ) {
 %# Instead of changing all the tr-* elements to sometimes output table
 %# cells without wrapping them in a row, we're just going to completely
index b87f7e1..316ea69 100644 (file)
@@ -1,7 +1,7 @@
 <TR>
-  <TH CLASS="background" COLSPAN=<% $opt{colspan} || 2 %> ALIGN="left" <%$id%>>
-    <FONT SIZE="+1"><% $opt{value} %></FONT>
-  </TH>
+  <TD CLASS="background" COLSPAN=<% $opt{colspan} || 2 %> ALIGN="left" <%$id%>>
+    <FONT CLASS="fsinnerbox-title"><% $opt{value} %></FONT>
+  </TD>
 </TR>
 
 <%init>
index de3f95a..2324545 100644 (file)
@@ -131,8 +131,8 @@ provision_hold_init();
 
 % if ( scalar(@possible_exports) > 0 || scalar(@mapped_exports) > 0 ) {
    <TABLE><TR>
-       <TH BGCOLOR="#dcdcdc">Export</TH>
-       <TH BGCOLOR="#dcdcdc">Vendor Package Id <FONT SIZE="-2">(blank to delete)</FONT></TH>
+       <TH>Export</TH>
+       <TH>Vendor Package Id <FONT SIZE="-2">(blank to delete)</FONT></TH>
        </TR>
 %   foreach my $export ( @mapped_exports ) {
        <TR>
@@ -166,14 +166,14 @@ my $cgi = $opt{'cgi'};
 my $thead_count = 0;
 sub pkg_svc_thead {
   $thead_count += 1;
-  return "\n\n". ntable('#cccccc', 2).
+  return "\n\n". '<TABLE CLASS="fsinnerbox">'.
          '<TR>'.
-         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH>'.
-         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Primary</FONT></TH>'.
-         '<TH BGCOLOR="#dcdcdc">Service</TH>'.
-         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH>'.
-         '<TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Bulk<BR>Charge</FONT></TH>'.
-         '<TH BGCOLOR="#dcdcdc" ID="th_provision_hold' . $thead_count . '"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH>'.
+         '<TH><FONT SIZE=-1>Quan.</FONT></TH>'.
+         '<TH><FONT SIZE=-1>Primary</FONT></TH>'.
+         '<TH>Service</TH>'.
+         '<TH><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH>'.
+         '<TH><FONT SIZE=-1>Bulk<BR>Charge</FONT></TH>'.
+         '<TH ID="th_provision_hold' . $thead_count . '"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH>'.
          '</TR>'.
          qq!<SCRIPT>provision_hold_td.push(document.getElementById('th_provision_hold$thead_count'))</SCRIPT>!;
 ;