";
// loop thru all the dates in this month
for ( i=1; i lte DaysInMonth(firstDay); i=i+1 )
{
// local variable for this date
thisDate = application.ptCalendar.date.createValidDate(arguments.curYear, arguments.curMonth, i);
// Determine if the rendered date occurred in the past
isThisDatePastDate = false;
if ( application.ptCalendar.date.IsRealDate(thisDate) AND DateCompare(currentDate,thisDate,"d") EQ 1 )
isThisDatePastDate = true;
//determine the class for the current day or if the day has an event
if ( isThisDatePastDate )
{
dayclassTxt = ' class="#standardDayClass# calPastEventsDayWrapper"';
dayHeaderClassTxt = ' class="calEventListHeader #eventDayHeaderClass# calPastDayHeader"';
}
else if ( thisDate EQ currentDate )
{
// todays date
dayclassTxt = ' class="#currentDayClass#"';
dayHeaderClassTxt = ' class="calEventListHeader #eventDayHeaderClass#"';
}
else
{
dayclassTxt = ' class="#standardDayClass#"';
dayHeaderClassTxt = ' class="calEventListHeader #eventDayHeaderClass#"';
}
dayText = "";
// has event for this date
if ( structKeyExists(eventDataStruct, dateFormat(thisDate, 'yyyymmdd')) )
{
dayText = '
';
detailedDayText = buildDetailedDayTextList(calendarData=arguments.calendarData,eventField=arguments.eventField,indexList=eventDataStruct[dateFormat(thisDate, 'yyyymmdd')],detailPageURL=detailLink,useTooltips=useEventToolTip,detailTextOptions=eventDetailOptions,flagPastEvents=isThisDatePastDate);
if ( isThisDatePastDate )
dayText = dayText & pastDayTextPreText & detailedDayText & pastDayTextPostText;
else
dayText = dayText & detailedDayText;
// output the day cell
outString = outString & "
#dayText#
";
eventCounter = eventCounter + 1;
}
}
if ( eventCounter EQ 0 )
{
outString = outString & '
';
dayText = "No Events Scheduled for the Month";
outString = outString & "
#dayText#
";
}
outString=outString & "
";
// calendarWrapper END
outString=outString & "