X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=8da91ef49df6e880add162fa315b79fb4f52ab3b;hb=5427b1aa654f3527f00b7677e800a7a563029b5b;hp=ca74ca5b9170171f68edee887bbd0dfce3802d49;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git
diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html
index ca74ca5b9..8da91ef49 100644
--- a/httemplate/elements/header.html
+++ b/httemplate/elements/header.html
@@ -1,85 +1,86 @@
-%
-% my($title, $menubar) = ( shift, shift );
-% my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
-% my $head = @_ ? shift : ''; #$head is for things that go in the
section
-% my $conf = new FS::Conf;
-%
-%
+<%doc>
+Example:
+
+ include( '/elements/header.html',
+ {
+ 'title' => 'Title',
+ 'menubar' => \@menubar,
+ 'etc' => '', #included in tag, for things like onLoad=
+ 'head' => '', #included before closing tag
+ 'nobr' => 0, #1 for no
after the title
+ }
+ );
+
+ #old-style
+ include( '/elements/header.html', 'Title', $menubar, $etc, $head);
+
+
+%doc>
+%#
+%# above is what RT declares, should we switch now? hopefully no glitches result
+%# or just fuck it, XHTML died anyway, HTML 5 or bust?
- <% $title %>
+ <% $title |h %>
- <% include('menu.html', 'freeside_baseurl' => $fsurl ) %>
+ <% include('menu.html', 'freeside_baseurl' => $fsurl,
+ 'position' => $menu_position,
+ 'nocss' => $nocss,
+ ) |n
+ %>
+
+ <% include('init_overlib.html') |n %>
- <% $head %>
+ <% $head |n %>
- STYLE="margin-top:0; margin-bottom:0; margin-left:0; margin-right:0">
+ <% $etc |n %> STYLE="margin-top:0; margin-bottom:0; margin-left:0; margin-right:0">
- |
-
- <% $conf->config('company_name') || 'ExampleCo' %>
+ | |
+
+ <% $company_name || 'ExampleCo' %>
|
- Logged in as <% getotaker %>  Preferences
- |
-
-
-
-
-
-
+ | Logged in as <% getotaker %> Preferences
+% if ( $conf->config("ticket_system")
+% && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) {
+ | Ticketing preferences
+% }
+
|
@@ -93,9 +94,16 @@ input.fsblackbutton {
border-left-color:#cccccc;
border-right-color:#aaaaaa;
border-bottom-color:#aaaaaa;
+ font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight:bold;
padding-left:12px;
padding-right:12px;
+ padding-top:0px;
+ padding-bottom:0px;
+ margin-left:0px;
+ margin-right:0px;
+ margin-top:2px;
+ margin-bottom:0px;
overflow:visible;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff333333',EndColorStr='#ff666666')
}
@@ -108,77 +116,159 @@ input.fsblackbuttonselected {
border-left-color:#cccccc;
border-right-color:#aaaaaa;
border-bottom-color:#aaaaaa;
+ font-family: Arial, Verdana, Helvetica, sans-serif;
font-weight:bold;
padding-left:12px;
padding-right:12px;
+ padding-top:0px;
+ padding-bottom:0px;
+ margin-left:0px;
+ margin-right:0px;
+ margin-top:2px;
+ margin-bottom:0px;
overflow:visible;
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff330033',EndColorStr='#ff7e0079')
}
+
+input.fstext {
+ border: 2px inset #eee;
+ /*border-top-color:#aaaaaa;
+ border-left-color:#aaaaaa;
+ border-right-color:#cccccc;
+ border-bottom-color:#cccccc;
+ */
+ vertical-align:bottom;
+ text-align:right;
+ font-family: Arial,Verdana,Helvetica,sans-serif;
+ padding-left: 0px;
+ padding-right: 0px;
+ padding-top: 0px;
+ padding-bottom: 0px;
+ margin-left:0px;
+ margin-right:0px;
+ margin-top:0px;
+ margin-bottom:1px;
+}
+
- |
+ |
+% if ( $menu_position eq 'top' ) {
+
-
-
+ |
+
|
-
-
+
+ |
+
+
+ <% include('/elements/about_freeside.html') |n %> |
+ <% include('/elements/about_rt.html') |n %> |
+
+
|
-
-% if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) {
+ |
-
+
+
+
+% if ( $menu_position eq 'left' ) {
+
|
|
- |
+
+% }
+
+ |
+
+
+
+% if ( $menu_position eq 'left' ) {
+
|