X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-popup.html;h=472a7325e792276f2df93646568a546708097757;hb=0ee87ce2f12ab1ba734f6d2b60c60469c07f9b8c;hp=cd8da56575e80243e708e4d7d56c801ec1df68ec;hpb=55e2a98988c76425ec2dac583b91410eaf835659;p=freeside.git diff --git a/httemplate/elements/header-popup.html b/httemplate/elements/header-popup.html index cd8da5657..472a7325e 100644 --- a/httemplate/elements/header-popup.html +++ b/httemplate/elements/header-popup.html @@ -1,24 +1,42 @@ +<%doc> + +Example: + + <& /elements/header-popup.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); + + - <% $title %> + <% $title |h %> <% $head %> - > + > +% if ( $title ) { -
<% $title %>
+
<% $title |h %>
- +% } % unless ( $nobr ) {
% } - <%init> my( $title, $menubar, $etc, $head ) = ( '', '', '', '' ); @@ -37,6 +55,7 @@ if ( ref($_[0]) ) { $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc. $head = @_ ? shift : ''; #$head is for things that go in the section } +$etc .= ' BGCOLOR="#f8f8f8"' unless $etc =~ /BGCOLOR/i; my $conf = new FS::Conf;