[%#
$Id: html-incblocks.txt,v 1.2 2010-12-27 08:40:19 ivan Exp $
All BLOCK statements are defined here
%]
[%# ########### Initialize globals ################ %]
[% global.setDateDialog = 0; %]
[%# ########### Print the starting HTML blahblah ################ %]
[% BLOCK htmlstart;
IF ! contentClass; contentClass="Content"; END %]
[% freesideHeader(title, style('stylesheet')) %]
[% global.contentFinished = 0 %]
[% IF global.printError %]
[% global.printError %]
[% global.printError = '' %]
[% END %]
[% END %]
[%# ########### Print the legend ################ %]
[% BLOCK legend %]
[% legend = nodeParam(token, 'legend') %]
[% IF legend.length > 0 %]
[% FOREACH legpairstring = legend.split(';') %]
[% SET legpair = legpairstring.split(':') %]
[% xmlnorm(legpair.0) %]:
[% xmlnorm(legpair.1) %]
[% END %]
[% END %]
[% END %]
[%# ########### Print the TZ and NOW variables ################ %]
[% BLOCK variables %]
[% IF variables.TZ or variables.NOW %]
[% IF variables.TZ %]
Timezone:
[% variables.TZ %].
[% END %]
[% IF variables.NOW %]
Report date:
[% variables.NOW %].
[% END %]
[% END %]
[% END %]
[%# ########### Print the current tree name ################ %]
[% BLOCK treename %]
[% treeName %]
[% END %]
[%# ########### Print the shortcut ################ %]
[% BLOCK shortcut %]
[ [%text%] ]
[% END %]
[%# ########### Print the Help shortcut ################ %]
[% BLOCK helpshortcut;
IF nodeParam(token, 'help-text', 1);
INCLUDE shortcut
url="javascript:helpwindow()"
text="Help"
title="Open a help window for this page";
END;
END %]
[%# ########### Print the common bottomline ################ %]
[% BLOCK bottomline %]
[% global.contentFinished = 1 %]
[% END %]
[%# ########### Print the Tokensets bottomline ################ %]
[% BLOCK tsetbottomline %]
[% global.contentFinished = 1 %]
[% END %]
[%# ########### Print the ending HTML blahblah ################ %]
[% BLOCK htmlend %]
[% IF ! global.contentFinished %][% END %]