X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-full.html;h=c73cf046319dd43a782d0116f3dccb67a76c223e;hb=2163c682341bebc40b83dbe5bc7f027b17b6a50f;hp=672624a75cf9443f8bfe03c55dd4bf2c747cf539;hpb=a6f2325978198b4e744d9c66427bcc37dd3fcdab;p=freeside.git
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 672624a75..c73cf0463 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,16 +44,23 @@ Example:
%>
% unless ( $no_jquery ) {
-
-
-
+
+
+
+
+
% if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
% }
% }
+% if ( $include_selectize ) {
+
+
+
+% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
-
+
<% $head |n %>
%# announce our base path, and the Mason comp path of this page
@@ -93,7 +100,7 @@ Example:
-
+
% if ( $menu_position eq 'top' ) {
@@ -193,6 +200,22 @@ Example:
<% $title_noescape || encode_entities($title) %>
+% my %cookies = CGI::Cookie->fetch($r);
+% if ( $cookies{freeside_status} ) {
+
+% foreach my $status_msg ( $cookies{freeside_status}->value ) {
+% my ($message, $type) = split /=/, $status_msg;
+% $type ||= 'status';
+
+ <% $message |h %> |
+
+% }
+
+
+% }
+
% unless ( $nobr ) {
% }
@@ -205,6 +228,7 @@ my( $title, $title_noescape, $menubar, $etc, $head ) = ( '', '', '', '', '' );
my( $nobr, $nocss, $no_jquery ) = ( 0, 0, 0 );
my $mobile;
+my $include_selectize;
if ( ref($_[0]) ) {
my $opt = shift;
@@ -217,6 +241,7 @@ if ( ref($_[0]) ) {
$nocss = $opt->{nocss};
$mobile = $opt->{mobile};
$no_jquery = $opt->{no_jquery};
+ $include_selectize = $opt->{include_selectize} ? 1 : 0;
} else {
($title, $menubar) = ( shift, shift );
$etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
@@ -247,4 +272,7 @@ if ( scalar(@agentnums) == 1 ) {
$company_url = $conf->config('company_url');
}
+## status->green(#eeffee), warning->yellow(#fdfd96), error->red(#f97c7c)
+my %status_color = ( 'status' => '#eeffee', 'warning' => '#fefbd0', 'error' => '#f97c7c', );
+
%init>