";
// loop thru all the dates in this month
for (i=0; i lte 6; i = i+1) {
// local variable for this date
//thisDate = CreateDate(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="#eventDayHeaderClass#"';
dayText = DateFormat(thisDate,"full");
// todays date
if(thisDate eq CreateDate(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 = buildDetailedDayText(arguments.calendarData,arguments.eventField,eventDataStruct[dateFormat(thisDate, 'yyyymmdd')],detailLink,useEventToolTip,eventDetailOptions);
dayText = dayText & detailedDayText;
}
else
{
dayText = '
#dayText#
';
detailedDayText = '
No events listed for this date
';
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 & "
";
return outString;