5 <& /elements/header-popup.html,
8 'menubar' => \@menubar,
9 'etc' => '', #included in <BODY> tag, for things like onLoad=
10 'head' => '', #included before closing </HEAD> tag
11 'nobr' => 0, #1 for no <BR><BR> after the title
16 include( '/elements/header.html', 'Title', $menubar, $etc, $head);
19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
23 <% encode_entities($title) || $title_noescape |n %>
25 <!-- per RT, to prevent IE compatibility mode -->
26 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
27 <!-- The X-UA-Compatible <meta> tag above must be very early in <head> -->
28 <META HTTP-Equiv="Cache-Control" Content="no-cache">
29 <META HTTP-Equiv="Pragma" Content="no-cache">
30 <META HTTP-Equiv="Expires" Content="0">
31 % unless ( $no_jquery ) {
32 <SCRIPT SRC="<% $fsurl %>elements/jquery.js"></SCRIPT>
37 <link href="<%$fsurl%>elements/freeside.css" type="text/css" rel="stylesheet">
38 % if ( $title || $title_noescape ) {
40 <CENTER><% encode_entities($title) || $title_noescape |n %></CENTER>
48 my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' );
49 my( $nobr, $no_jquery ) = ( 0, 0 );
52 $title = $opt->{title};
53 $title_noescape = $opt->{title_noescape};
54 $menubar = $opt->{menubar};
58 #$nocss = $opt->{nocss};
59 $no_jquery = exists($opt->{no_jquery}) ? $opt->{no_jquery} : 1; #v3 only, 0 on v4+
61 ($title, $menubar) = ( shift, shift );
62 $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
63 $head = @_ ? shift : ''; #$head is for things that go in the <HEAD> section
65 $etc .= ' BGCOLOR="#f8f8f8"' unless $etc =~ /BGCOLOR/i;
67 my $conf = new FS::Conf;