<snip>
So, what I need to do is detect when the last entry on a given date is,
close the cell and only THEN add 1 to cellcount (as opposed to adding
one to cellcount each time it finds a valid entry, even before closing
the cell).
</snip>

This seems to work....

<table id="calendar">
<tr>
<cfset cellcount = 1 />
<cfoutput query="eventsCalendar" group="Start_date">
<td>
<div class="calendar-title">
#DateFormat(start_date, "mmmm d, yyyy")#</div>
<cfoutput>
<cfif cellcount NEQ 4>
  <cfset nextstartdate = start_date />
  <strong>#Title#</strong> &nbsp;<cfif
Len(Start_time)>[#Start_time#]</cfif><br />
  <cfelse></td></tr><tr>
  <cfset cellcount = 1>
</cfif>
</cfoutput>
<cfif nextstartdate EQ Start_date></td>
  <cfset cellcount = cellcount + 1 />
</cfif>
</cfoutput>

<cfoutput>
  <cfloop index="i" from="#cellcount#" to="4"><td>&nbsp;</td>
  <cfset cellcount = cellcount + 1 />
</cfloop>
</cfoutput>
</tr>
</table>

adieu
Mark


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202334
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to