% }
%
% if ( $last_classnum != $note->classnum && !$skipheader ) {
% my $tmp_classnum = $note->classnum ? $note->classnum : 0;
% $classes{$tmp_classnum} = $note->classname ne '' ? $note->classname
% }
%
% if ( $last_classnum != $note->classnum && !$skipheader ) {
% my $tmp_classnum = $note->classnum ? $note->classnum : 0;
% $classes{$tmp_classnum} = $note->classname ne '' ? $note->classname
% if ($curuser->access_right('Edit customer note') ) {
<TH CLASS="grid" BGCOLOR="#cccccc"> </TH>
% }
% if ($curuser->access_right('Edit customer note') ) {
<TH CLASS="grid" BGCOLOR="#cccccc"> </TH>
% }
% if ( $conf->exists('note-classes') && $conf->config('note-classes') == 2 ) {
% my($classnum,$classname);
% if ( $conf->exists('note-classes') && $conf->config('note-classes') == 2 ) {
% my($classnum,$classname);
% foreach my $classnum ( sort { $b <=> $a } (keys %classes) ) {
<A id="notes_tablink_<% $classnum %>"
HREF="javascript:display_notes_classnum(<% $classnum %>)"
% foreach my $classnum ( sort { $b <=> $a } (keys %classes) ) {
<A id="notes_tablink_<% $classnum %>"
HREF="javascript:display_notes_classnum(<% $classnum %>)"