X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=699f82c53d65764d3762bd63c4cb584a54d138f9;hb=11df448ba461eed4d33fded0f21ed15c155a7896;hp=858be71da054dda50bf5795b6a274461d3addd97;hpb=ac0ecc2daa4e132d6a1fb3fb759cb757d376f84e;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 858be71da..699f82c53 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -4,11 +4,12 @@ Example: <& /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+ | - | + | <% include('searchbar-combined.html') |n %> | % } else { -+ | @@ -96,27 +108,27 @@ Example: | ||||||||
+ | <% 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 %> | % } @@ -128,7 +140,7 @@ Example:||
+ | + | @@ -157,23 +169,26 @@ Example: | +% } else { #$menu_position eq 'top' +
-
+ <% $title_noescape || encode_entities($title) %> -+ % unless ( $nobr ) { -+ % } <% $menubar !~ /^\s*$/ ? "$menubar " : '' %> + <%init> my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' ); -my( $nobr, $nocss ) = ( 0, 0 ); +my( $nobr, $nocss, $no_jquery ) = ( 0, 0, 0 ); my $mobile; @@ -181,12 +196,13 @@ if ( ref($_[0]) ) { my $opt = shift; $title = $opt->{title}; $title_noescape = $opt->{title_noescape}; - $menubar = $opt->{menubar}; - $etc = $opt->{etc}; - $head = $opt->{head}; - $nobr = $opt->{nobr}; - $nocss = $opt->{nocss}; - $mobile = $opt->{mobile}; + $menubar = $opt->{menubar}; + $etc = $opt->{etc}; + $head = $opt->{head}; + $nobr = $opt->{nobr}; + $nocss = $opt->{nocss}; + $mobile = $opt->{mobile}; + $no_jquery = $opt->{no_jquery}; } else { ($title, $menubar) = ( shift, shift ); $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc. @@ -216,4 +232,5 @@ if ( scalar(@agentnums) == 1 ) { $company_name = $conf->config('company_name'); $company_url = $conf->config('company_url'); } + %init> |