X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FSchedule.html;h=4bc5134cbff6c832b5b9c6e9234ea03ae7ea01d6;hb=49ab5818ef56a8758548396033388187b123f8ed;hp=12d2685007b2a64daf65f520df2dd7760fa7c77d;hpb=4f7725315c140dac53d390ec607b8d221166f6ac;p=freeside.git
diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html
index 12d268500..4bc5134cb 100644
--- a/rt/share/html/Search/Schedule.html
+++ b/rt/share/html/Search/Schedule.html
@@ -1,9 +1,85 @@
<& /Elements/Header, Title => 'Schedule' &>
+%#init_overlib.html
+%foreach my $file (@files) {
+
+%}
+
+
+
+
+
<& /Search/Calendar.html,
@_,
- Embed => 'Schedule.html',
- DayDisplay => 'Schedule',
- DayDisplayArgs => [ username => $ARGS{username} ],
+ Query => "( Status = 'new' OR Status = 'open' OR Status = 'stalled')
+ AND ( Type = 'reminder' OR 'Type' = 'ticket' )",
+ #XXX and we have the magic custom field
+ slots => scalar( @{ $ARGS{username} } ),
+ Embed => 'Schedule.html',
+ DimPast => 1,
+ Display => 'Schedule',
+ DisplayArgs => [ username => $ARGS{username},
+ LengthMin => $LengthMin,
+ ],
&>
+<%ONCE>
+
+my $timestep = RT->Config->Get('CalendarWeeklySizeMin') || 30; #1/2h
+
+%ONCE>
+<%init>
+
+my @files = ();
+#if ( ! $initialized ) {
+ push @files, map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) );
+ push @files, map { "${_}contentmws" } qw( iframe ajax );
+#%}
+
+my $LengthMin = 180; #XXX $ARGS{LengthMin};, passed in
+
+my $cells = int($LengthMin / $timestep);
+$cells++ if $LengthMin % $timestep;
+
+%init>