X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-popup.html;h=307252afb9354916a413367921f3bf72ec0e2e61;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=2bd4a96e8a0b176847bf007a9b2fa7e72c27b75b;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git
diff --git a/httemplate/elements/header-popup.html b/httemplate/elements/header-popup.html
index 2bd4a96e8..307252afb 100644
--- a/httemplate/elements/header-popup.html
+++ b/httemplate/elements/header-popup.html
@@ -2,15 +2,15 @@
Example:
- include( '/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
- }
- );
+ <& /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);
@@ -20,23 +20,27 @@ Example:
- <% $title %>
+ <% $title |h %>
+
+
+
+
<% $head %>
- >
+ >
+% if ( $title ) {
- <% $title %>
+ <% $title |h %>
-
+% }
% unless ( $nobr ) {
% }
-
<%init>
my( $title, $menubar, $etc, $head ) = ( '', '', '', '' );
@@ -55,6 +59,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;