invoice_sections_with_taxes per-agent, RT#79636
[freeside.git] / httemplate / elements / menubar.html
index 4d2700c..c149043 100644 (file)
@@ -5,7 +5,9 @@ Example:
   include( '/elements/menubar.html',
            
            #options hashref (optional)
-           { 'newstyle' => 1, #may become the default at some point
+           { 'newstyle' => 1,  #may become the default at some point
+             'url_base' => '', #prepended to menubar URLs, for convenience
+             'selected' => '', #currently selected label
            },
 
            #menubar entries (required)
@@ -18,59 +20,9 @@ Example:
 </%doc>
 %if ( $opt->{'newstyle'} ) {
 
-%  #false laziness w/header.html... shouldn't these just go in freeside.css?
-
-   <style type="text/css">
-   a.fsblackbutton {
-            background-color:#333333;
-            color: #ffffff;
-            border:1px solid;
-            border-top-color:#cccccc;
-            border-left-color:#cccccc;
-            border-right-color:#aaaaaa;
-            border-bottom-color:#aaaaaa;
-            /*font-weight:bold;*/
-            /*padding-left:12px;
-            padding-right:12px;*/
-            padding-left:4px;
-            padding-right:4px;
-            text-decoration:none;
-            overflow:visible;
-            filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff333333',EndColorStr='#ff666666')
-   }
-   
-   a.fsblackbuttonselected {
-            background-color:#7e0079;
-            color: #ffffff;
-            border:1px solid;
-            border-top-color:#cccccc;
-            border-left-color:#cccccc;
-            border-right-color:#aaaaaa;
-            border-bottom-color:#aaaaaa;
-            /*font-weight:bold;*/
-            /*padding-left:12px;
-            padding-right:12px;*/
-            padding-left:4px;
-            padding-right:4px;
-            text-decoration:none;
-            overflow:visible;
-            filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff330033',EndColorStr='#ff7e0079')
-   }
-   </style>
-
-   <TABLE BGCOLOR="#000000" BORDER=0 CELLSPACING=0 CELLPADDING=4>
-     <TR>
-       <TD STYLE="background-image:url(<%$fsurl%>images/gray-black-side.png); background-repeat:repeat-y;padding-left:0px">
-         &nbsp;&nbsp;
-       </TD>
-       <TD>
-         <% join(' ', @html ) %>
-       </TD>
-       <TD STYLE="background-image:url(<%$fsurl%>images/black-gray-side.png); background-repeat:repeat-y;padding-right:0px">
-         &nbsp;&nbsp;
-       </TD>
-     </TR>
-   </TABLE>
+   <DIV CLASS="fstabs">
+   <% join('', @html ) %>
+   </DIV>
 
 %} else {
 
@@ -93,13 +45,11 @@ while (@_) {
   if ( $opt->{'newstyle'} ) {
 
     my $dclass = $item eq $opt->{'selected'}
-                   ? 'fsblackbuttonselected'
-                   : 'fsblackbutton';
+                   ? 'fstabselected'
+                   : 'fstab';
+
+    $style = qq( CLASS="$dclass" );
 
-    $style =
-      qq( CLASS="$dclass" ).
-      qq( onMouseOver="this.className='fsblackbuttonselected'; return true;" ).
-      qq( onMouseOut="this.className='$dclass'; return true;" );
   }
 
   push @html, qq!<A HREF="$url_base$url" $style>$item</A>!;