%args> $Queue => undef $OwnerId => undef $ShowCreated => undef $ShowResolved => undef $Month => (localtime)[4] $Year => (localtime)[5] + 1900 %args> <& /Elements/Header, Title => $title &> <& /Tools/Elements/Tabs, current_tab => "Tools/Calendar.html", Title => $title &> <&| /Widgets/TitleBox, title => loc('Calendar for ') . $rtdate->GetMonth($Month) . " $Year" , title_class=> 'inverse', color => "#993333" &> % my @options; % my $options = ''; % if ($ShowCreated) { % push @options, "ShowCreated=$ShowCreated"; % } % if ($ShowResolved) { % push @options, "ShowResolved=$ShowResolved"; % } % if ($OwnerId) { % push @options, "OwnerId=$OwnerId"; % } % if ($Queue) { % push @options, "Queue=$Queue"; % } % $options = "&" . join("&", @options) if @options;
% my ($PMonth, $PYear) = ($Month - 1, $Year); % if ($PMonth < 0) { % $PYear--; % $PMonth = 11; % } «<%$rtdate->GetMonth($PMonth)%> | % my ($NMonth, $NYear) = ($Month + 1, $Year); % if ($NMonth > 11) { % $NYear++; % $NMonth = 0; % } <%$rtdate->GetMonth($NMonth)%>» |
% for (1 .. 6, 0) { | <%$rtdate->GetWeekday($_)%> | % }
---|---|
<% $date->week_number %> | % } % my @DayTickets; % if ($ShowCreated) { % @DayTickets = grep { $_->DueObj->Date eq $date->strftime("%F") or $_->CreatedObj->Date eq $date->strftime("%F") } @Tickets; % } else { % @DayTickets = grep { $_->DueObj->Date eq $date->strftime("%F") } @Tickets; % }
<%$date->day%> % for my $t (@DayTickets) {
% if ($t->DueObj->Date eq $date->strftime("%F") and $t->CreatedObj->Date eq $date->strftime("%F") ) {
% }
![]() ![]() ![]() <&|/l&>Subject&>: <% $t->Subject%> <&|/l&>Owner&>: <%$t->OwnerObj->Name %> <&|/l&>Created&>: <%$t->CreatedObj->Date %> <&|/l&>Due&>: <% $t->DueObj->Unix > 0 ? $t->DueObj->Date : '-' %> <&|/l&>Status&>: <%$t->Status %> <&|/l&>Priority&>: <%$t->Priority %> <&|/l&>Requestors&>: % my $members = $t->Requestors->MembersObj; % if ($members->Count == 0) { <&|/l&>none&> % } else { % my @requestors; % while (my $watcher = $members->Next) { % push @requestors, $watcher->MemberObj->Object->Name; % } <% join ", ", @requestors %> % } |
% $date = $set->next($date);
% if ( $date->day_of_week == 1) {
![]() ![]() ![]() |