X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fheader.html;h=8a9cb8526ef7407e61a5588a3ba38478b8147c95;hb=9a778387bc4bfc97d28b25a9c123700fc6c15062;hp=32035b0816cceae80a5b740077519c3c62f1d0bf;hpb=2fc4e14db2e9ae2ff9ee2c31e498782800d576b5;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 32035b081..8a9cb8526 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -1,8 +1,30 @@ +<%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); + + + +%# +%# 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 %> @@ -15,212 +37,141 @@ %> <% include('init_overlib.html') |n %> + <% include('rs_init_object.html') |n %> + <% include('logout.html') |n %> <% $head |n %> - <% $etc |n %> STYLE="margin-top:0; margin-bottom:0; margin-left:0; margin-right:0"> + STYLE="margin-top:0; margin-bottom:0; margin-left:0; margin-right:0"> -
freeside <% $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 % }
- - - - - + + % if ( $menu_position eq 'top' ) { - - - - - - - - - - - - % } - + + - - - -
+ - - - - - -
<% include('/elements/about_freeside.html') |n %><% include('/elements/about_rt.html') |n %>
-
-
-
+ +% if ( $curuser->access_right('List prospects') ) { +
+
+ Adv + +
+% } +
% if ( $curuser->access_right('List customers') ) {
-
- Advanced +
+ Advanced
% }
+ % if ( $conf->exists('address2-search') ) {
- +
- +
% }
+ % if ( $curuser->access_right('View invoices') ) { -
- + % if ( $curuser->access_right('List invoices') ) { - Adv + Adv\ % } -
- +
% }
+ % if ( $curuser->access_right('View customer services') ) {
-
- Advanced +
+ Advanced
% }
+ % if ( $conf->config("ticket_system") ) {
-
- Advanced +
+ Advanced
% } @@ -231,48 +182,22 @@ input.fstext { - - -% if ( $menu_position eq 'left' ) { - - - - -% } - - - - - % if ( $menu_position eq 'left' ) { - - % } -
+ -
- - - - - - - - - -
<% include('/elements/about_freeside.html') |n %>
<% include('/elements/about_rt.html') |n %>
-
+ - <% $title %> + <% $title |h %> % unless ( $nobr ) { @@ -313,4 +238,19 @@ if ( scalar(@agentnums) == 1 ) { $company_name = $conf->config('company_name'); } +my $prospect_label = '(name, company or phone)'; + +my $cust_width = 246; +my $cust_label = '(cust #, name, company'; +if ( $conf->exists('address1-search') ) { + $cust_label .= ', address'; + $cust_width += 56; +} +$cust_label .= ' or contact phone)'; + +my $address2_label = '(Unit #)'; +my $inv_label = '(inv #)'; +my $svc_label = '(user, email, ip, mac, domain or service phone)'; +my $ticketing_label = '(ticket #, subject, email or fulltext:text)'; +