X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader.html;h=8da91ef49df6e880add162fa315b79fb4f52ab3b;hb=f0097d06a2a96a49340fc2420f1713aa692d45a8;hp=5487346a573f0f4956462822c33efaaf9e7e3278;hpb=db73422eae5dfcd2d96380ce31941e94c9d9b1ae;p=freeside.git diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 5487346a5..8da91ef49 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 %> @@ -18,27 +40,27 @@ @@ -53,10 +75,10 @@ <% $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 + | Ticketing preferences % }
@@ -174,7 +196,7 @@ input.fstext { % if ( $curuser->access_right('List customers') ) {
-
+
Advanced
@@ -185,7 +207,7 @@ input.fstext { % if ( $conf->exists('address2-search') ) {
- +
@@ -194,14 +216,13 @@ input.fstext { % if ( $curuser->access_right('View invoices') ) { -
- + % if ( $curuser->access_right('List invoices') ) { - Adv + Adv\ % } -
- +
+
% } @@ -209,7 +230,7 @@ input.fstext { % if ( $curuser->access_right('View customer services') ) {
-
+
Advanced
@@ -219,7 +240,7 @@ input.fstext { % if ( $conf->config("ticket_system") ) {
-
+
Advanced
@@ -272,7 +293,7 @@ input.fstext { - <% $title %> + <% $title |h %> % unless ( $nobr ) { @@ -313,4 +334,17 @@ if ( scalar(@agentnums) == 1 ) { $company_name = $conf->config('company_name'); } +my $cust_width = 288; #251 #ok for IE, slightly bigger for windows firefox +my $cust_label = '(cust #, name, company'; +if ( $conf->exists('address1-search') ) { + $cust_label .= ', address'; + $cust_width += 64; +} +$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)'; +