look at that calendar.cfc you used on that training project.  :)

Doug


On Thu, 9 Dec 2004 16:55:24 -0700, Charlie Griefer
<[EMAIL PROTECTED]> wrote:
> Greg:
> 
> Check out http://charlie.griefer.com/code/cfscript_calendar.cfm
> 
> Just for kicks, wanted to see if i could do a calendar in nothing but
> cfscript.  Not that it's necessarily the best way to do this, but the
> code/logic is there for the perusing.
> 
> 
> 
> 
> On Thu, 9 Dec 2004 11:06:23 -0600, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > 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 Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186932
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