X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-full.html;h=5a5db962083552f70c996498cddcdf252aa7c1e4;hb=a284ef4c8d9d43db336a77db4c34996344cd5717;hp=6d90d5022942d3ee045935d892dab970c51f6e2d;hpb=4b05b20576ddb14577d59c87c8257c6804449410;p=freeside.git
diff --git a/httemplate/elements/header-full.html b/httemplate/elements/header-full.html
index 6d90d5022..5a5db9620 100644
--- a/httemplate/elements/header-full.html
+++ b/httemplate/elements/header-full.html
@@ -44,13 +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 %>
@@ -73,7 +80,15 @@ Example:
<& notify-tickets.html &>
|
- <% mt('Logged in as') |h %><% $FS::CurrentUser::CurrentUser->username |h %> <% mt('logout' |h %> <% mt('Preferences') |h %>
+ |
+ <% mt('Logged in as') |h %>
+ <% $FS::CurrentUser::CurrentUser->username |h %>
+
+ <% mt('logout') |h %>
+
+
+
+ <% mt('Preferences') |h %>
% if ( $conf->config("ticket_system")
% && FS::TicketSystem->access_right(\%session, 'ModifySelf') ) {
| <% mt('Ticketing preferences') |h %>
@@ -85,7 +100,7 @@ Example:
-
+
% if ( $menu_position eq 'top' ) {
@@ -185,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 ) {
% }
@@ -197,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;
@@ -209,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.
@@ -239,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>
|