X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=b9ddc73694484c24341a56d699f6f7d6e9ff7c78;hb=000f20dff74059f44950c7191beaab951aeae316;hp=ce54012426274388f62222bdd975a5f2baf198ba;hpb=41d7858c23437581a98492627bcc3ef9ecfccf70;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index ce5401242..b9ddc7369 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -1,12 +1,26 @@ -% -% 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![]() |
- - <% $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 +% } + |
![]() |
+ ![]() |
|||||||||
- + | + | + +
+
|
+
+ ||||||||
+ | +||||||||||
+ | +||||||||||
+% if ( $curuser->access_right('List customers') ) { +% } + | + ++% if ( $conf->exists('address2-search') ) { + +% } | -% if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) { +% if ( $curuser->access_right('View invoices') ) { % } - | - +% } | -- |
![]() |
- ![]() |
+
+% }
+
+ ![]() |
+
|