I'm creating a calendar and need to know how to make the days start on
the day the month starts one.. IE..
December has 31 days and starts on Wednesday.
So for December I have created 35 divs using a <cfloop>
I run a query return days, first day of month, the number of weeks in
the month (1-5)
In my cfloop I have..
<cfloop from="1" to="#cal.maxweek*7#" index="i">
<div class="day">
<cfoutput>#cal.rn[i]#</cfoutput>
</div>
<cfif i mod 7 eq 0></br></cfif>
</cfloop>
this creates the calendar but it always starts at the first cell.
so it looks like
1 2 3 4 5 6 7
8 9 10 11 12 13 14
etc..
but should look like
1 2 3 4
5 6 7 8 9 10 11
etc..
So how do I make this skip the first 3 divs?
--
Auxilium meum a Domino
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186850
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