X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=c83529e2b186bc2e9dcd6167dde1c1fc88c04142;hb=0b1c458214a23b0ae3d8b8926989341e69468ff3;hp=5487346a573f0f4956462822c33efaaf9e7e3278;hpb=db73422eae5dfcd2d96380ce31941e94c9d9b1ae;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 5487346a5..c83529e2b 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -1,8 +1,29 @@ +<%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<% $company_name || 'ExampleCo' %> | -Logged in as <% getotaker %> Preferences + | Logged in as <% getotaker %> logout Preferences % if ( $conf->config("ticket_system") % && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) { - | Ticketing preferences + | Ticketing preferences % } |
- | ||||||||||||||
+ | - - |
-
|
-
||||||||||||
- | -||||||||||||||
- | -||||||||||||||
+ <% include('searchbar-prospect.html') |n %> + | --% if ( $curuser->access_right('List customers') ) { - -% } + | + <% include('searchbar-cust_main.html') |n %> | --% if ( $conf->exists('address2-search') ) { - -% } + | + <% include('searchbar-address2.html') |n %> | --% if ( $curuser->access_right('View invoices') ) { - - -% } + | + <% include('searchbar-cust_bill.html') |n %> | --% if ( $curuser->access_right('View customer services') ) { - -% } + | + <% include('searchbar-cust_svc.html') |n %> | --% if ( $conf->config("ticket_system") ) { - -% } + | + <% include('searchbar-ticket.html') |n %> |
+ | -- | + | - + |
+ |
- - -
+ <% include('searchbar-prospect.html') |n %> + <% include('searchbar-cust_main.html') |n %> + <% include('searchbar-address2.html') |n %> + <% include('searchbar-cust_bill.html') |n %> + <% include('searchbar-cust_svc.html') |n %> + <% include('searchbar-ticket.html') |n %> |
- % } - | + | - <% $title %> + <% $title |h %> % unless ( $nobr ) { |