X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fheader-full.html;h=5a5db962083552f70c996498cddcdf252aa7c1e4;hb=37e92c220a54636ebc7900cd59ec6ce56790ede8;hp=e6130b2b1dbe0cfbfaa8a8bc1d55f41effe7ce9b;hpb=51e2a2439d923d63a5a2321864c69f82272cd362;p=freeside.git
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index e6130b2b1..5a5db9620 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,14 +44,20 @@ Example:
%>
% unless ( $no_jquery ) {
-
-
-
-
+
+
+
+
+
% if ( $FS::CurrentUser::CurrentUser->option('printtofit') ) {
% }
% }
+% if ( $include_selectize ) {
+
+
+
+% }
<% include('init_overlib.html') |n %>
<% include('rs_init_object.html') |n %>
@@ -94,7 +100,7 @@ Example:
-
+
% if ( $menu_position eq 'top' ) {
@@ -198,8 +204,10 @@ Example:
% if ( $cookies{freeside_status} ) {
% foreach my $status_msg ( $cookies{freeside_status}->value ) {
-
- <% $status_msg |h %> |
+% my ($message, $type) = split /=/, $status_msg;
+% $type ||= 'status';
+
+ <% $message |h %> |
% }
@@ -220,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;
@@ -232,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.
@@ -262,4 +272,8 @@ 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', );
+my %status_image = ( 'status' => 'images/tick.png', 'warning' => 'images/tick.png', 'error' => 'images/error.png', );
+
%init>