";
wkClassTxt = ' class="#weekWrapperClass#"';
outString = outString & "
";
// loop thru all the dates in this month
for ( i=0; i lte 6; i=i+1 ) {
// local variable for this date
//thisDate = application.ptCalendar.date.createValidDate(arguments.curYear, arguments.curMonth, i);
thisDate = dateAdd("d", i, weekStruct.firstOfThisWeek);
curDateKey = dateFormat(thisDate, "yyyymmdd");
//determine the class for the current day or if the day has an event
dayClassTxt = ' class="#standardDayClass#"';
dayHeaderClassTxt = ' class="calEventListHeader #eventDayHeaderClass#"';
dayText = DateFormat(thisDate,"full");
// todays date
if ( thisDate eq application.ptCalendar.date.createValidDate(year(now()),month(now()),day(now())) )
dayClassTxt = ' class="#currentDayClass#"';
// has event for this date
if ( structKeyExists(eventDataStruct, dateFormat(thisDate, 'yyyymmdd')) ) {
//dayClassTxt = ' class="#eventDayClass#"';
dayText = '
';
detailedDayText = buildDetailedDayTextList(arguments.calendarData,arguments.eventField,eventDataStruct[dateFormat(thisDate, 'yyyymmdd')],detailLink,useEventToolTip,eventDetailOptions);
dayText = dayText & detailedDayText;
}
else {
dayText = '
';
detailedDayText = '
No events listed for this date
';
detailedDayText = detailedDayText & '
';
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 Week";
outString = outString & "
#dayText#
";
}
outString=outString & "