phillystyle123
asked on
cf calendar app suddenly rendering the wrong dates in the wrong places!!!!
i just noticed something major in my code: the dates in the calendar are screwed up. ie - november starts on the
wrong day, and, although there are 30 days in november - there are 31 using my code - actually, there are 31 in every
month using my code.
here's a link to an example:
http://www.redcatweb2.org/calendar/newlookmonthly2changed.cfm?MonthChange=Backward&LastDate=2003/12/30
here's the code in the body of the document: -
<table width="600" border="0" cellspacing="0" cellpadding="4">
<tr align="left">
<td valign="top" width="53" height=""><span class="calendarbold"><font
<td valign="top" width="1" height="0"></td>
<td valign="top" width="53" height="0"><span class="calendarbold"><font
<td valign="top" width="100" height="0"></td>
<td valign="top" width="68" height="0"><span class="calendarbold"><font
<td valign="top" width="1" height="0"></td>
<td valign="top" width="55" height="0"><span class="calendarbold"><font
<td valign="top" width="0" height="0"></td>
<td valign="top" width="53" height="0"><span class="calendarbold"><font
<td valign="top" width="1" height="0"></td>
<td valign="top" width="53" height="0"><span class="calendarbold"><font
<td valign="top" width="1" height="0"></td>
<td valign="top" width="57" height="0"><span class="calendarbold"><font
</tr>
<tr bgcolor="#FFFFFF">
<td align="left" valign="top" width="53" height="2"></td>
<td align="left" valign="top" width="1" height="2"></td>
<td align="left" valign="top" width="53" height="2"></td>
<td align="left" valign="top" width="100" height="2"></td>
<td align="left" valign="top" width="68" height="2"></td>
<td align="left" valign="top" width="1" height="2"></td>
<td align="left" valign="top" width="55" height="2"></td>
<td align="left" valign="top" width="0" height="2"></td>
<td align="left" valign="top" width="53" height="2"></td>
<td align="left" valign="top" width="1" height="2"></td>
<td align="left" valign="top" width="53" height="2"></td>
<td align="left" valign="top" width="1" height="2"></td>
<td align="left" valign="top" width="57" height="2"></td>
</tr>
<tr>
<!--- just change curr_date value as per date passed --->
<cfset I_ROWCNT = 1>
<cfset I_ROWNO = 1>
<!--- WILL HOLD THE N0 0F ROWS DISPLAYED IN CALENDAR. --->
<cfloop from="1" to="#Evaluate(DayOfWeek(Cr
<!--- put empty spaces till the first day of month comes eg. in case of May..there would be four empty spaces. --->
<td align="left" valign="top" width="53" height="80"><span class="calendarbold"> 
<td align="left" valign="top" width="1" height="80"> </td>
</cfloop>
<cfset I_ROWCNT = I_EMPTY>
<cfloop from="1" to="#DaysInMonth(Curr_Date
<cfif ListFindNoCase(Lst_Calenda
<td bgcolor="#F1E39E" align="left" valign="top" width="100" height="80"><span class="calendarbold"><cfou
<span class="frontcopy">
<cfset myUrl = urlencodedformat(#ListGetA
<cfoutput>
<a href="event.cfm?Eventname=
<cfelse>
<td align="left" valign="top" width="68" height="80"><span class="calendarbold"><cfou
</cfif>
<td align="left" valign="top" width="1" height="80"> </td>
<CFIF I_ROWCNT MOD 7 EQ 0><!--- see the difference --->
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" colspan="13" height="2"></TD>
</TR>
<TR>
<CFSET I_ROWNO = IncrementValue(I_ROWNO)>
</CFIF>
<CFSET I_ROWCNT = IncrementValue(I_ROWCNT)>
</CFLOOP>
</TR>
<cfif I_ROWNO LT 6>
<!--- hide this row in no. of rows is 6 --->
<tr>
<td align="left" valign="top" width="53" height="80"><span class="calendarbold"></spa
<td align="left" valign="top" width="1" height="80"></td>
<td align="left" valign="top" width="53" height="80"><span class="calendarbold"></spa
<td align="left" valign="top" width="100" height="80"></td>
<td align="left" valign="top" width="68" height="80"><span class="calendarbold"></spa
<td align="left" valign="top" width="1" height="80"></td>
<td align="left" valign="top" width="55" height="80"><span class="calendarbold"></spa
<td align="left" valign="top" width="0" height="80"></td>
<td align="left" valign="top" width="53" height="80"><span class="calendarbold"></spa
<td align="left" valign="top" width="1" height="80"></td>
<td align="left" valign="top" width="53" height="80"><span class="calendarbold"></spa
<td align="left" valign="top" width="1" height="80"></td>
<td align="left" valign="top" width="57" height="80"><span class="calendarbold"></spa
</tr>
</cfif>
</table>
another thing i'm trying to do and i'll raise the pts to 300 if anyone can figure it out, is have all the calendar table cells be 80 X 80 - not smtwtfs just the actual dates with no space imbetween cells.
and don't forget to uncomment the query and comment my hardcoded variables like last time..
also
<A HREF="try.cfm?Curr_Date=<C FOUTPUT>#D ateAdd('m' ,-1,CURR_D ATE)#</CFO UTPUT>"><< </A> <A HREF="try.cfm?Curr_Date=<C FOUTPUT>#D ateAdd('m' ,1,CURR_DA TE)#</CFOU TPUT>">>>< /A>
in this line change try.cfm to ur page name and also include the other required variables along with curr_date, once u have tested my code :-)
Regards
Hart
also
<A HREF="try.cfm?Curr_Date=<C
in this line change try.cfm to ur page name and also include the other required variables along with curr_date, once u have tested my code :-)
Regards
Hart
ASKER
ok - it seems like the << >> is def. the prob. for some reason i changed it from your code. now, i'm getting the
right dates, but the the name of the month at the top is always october (even though the actual cal. dates change)
also, any idea how to format this so, there is no gray space between the "active" dates with the tan backgrounds?
ideally, i need each date's cell to be 80X80 with no cellpadding,spacing.
right dates, but the the name of the month at the top is always october (even though the actual cal. dates change)
also, any idea how to format this so, there is no gray space between the "active" dates with the tan backgrounds?
ideally, i need each date's cell to be 80X80 with no cellpadding,spacing.
ASKER
good news hart - i figured out the date, eventname thing:
http://redcatweb2.org/calendar/testcaluncomment.cfm?Curr_Date={ts%20'2003-11-29%2000:00: 00'}
only thing i need to do with this is what i talked about in my last comment, make the squares 80X80 with no space
whether or not they have eventnames in them.
ya interested, if not, i'll just give you the 200pts and we'll call it a day. if so, i'll up it to 300
;-)
http://redcatweb2.org/calendar/testcaluncomment.cfm?Curr_Date={ts%20'2003-11-29%2000:00:
only thing i need to do with this is what i talked about in my last comment, make the squares 80X80 with no space
whether or not they have eventnames in them.
ya interested, if not, i'll just give you the 200pts and we'll call it a day. if so, i'll up it to 300
;-)
ofcourse i am interested :-)
let me understand what u want, u want the cells to be 80x80
ok i will try and paste the code a.s.a.p...
Regards
Hart
let me understand what u want, u want the cells to be 80x80
ok i will try and paste the code a.s.a.p...
Regards
Hart
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hart- it's been a pleasure - thank you so much! you just saved me hours upon hours of time. your answer was
perfect!
;-)
perfect!
;-)
u r welcome,
just curious weren't u gonna increase the pts ;-)
its ok if u don't want to, but just wanted know...
Regards
Hart
just curious weren't u gonna increase the pts ;-)
its ok if u don't want to, but just wanted know...
Regards
Hart
ASKER
hi hart - i've got a problem - some of my recurring dates are either showing only a few of many dates or just one
- my old code displayed all recurring events correctly but for various reasons, i definitely want to use yours.
can you take a quick look at this and let me know if you see what's causing the problem??????
old code (recurring works correctly):
<CFLOOP index="ii" from="1" to="#CalDays#">
<cfif #ii# gte #offset# and #ii# lte #lastslot# >
<cfif day is #datepart("d", now())# and #month(curntdate)# is #month(now())#>
<cfset thetdbgcolor="#thetdbgcolo rnow#">
<cfelse>
<cfset thetdbgcolor="#thetdbgcolo rnorm#">
</cfif><cfoutput>
<td valign=top width="120" height="#cellheight#" bgcolor="#thetdbgcolor#">< /cfoutput> <CFOUTPUT> <CFIF day is #datepart("d", now())# and #month(curntdate)# is #month(now())#>
#Day# <CFELSE> <span style="#datestylenorm#">#D ay# </CFIF> <BR> </CFOUTPUT> <CFOUTPUT query="SearchResults">
<cfif squaresbg is "lt">
<cfset color=randrange(000000,999 999)>
<cfelse>
<CFSET AllowedDigits="abcdef">
<CFSET color="">
<CFLOOP INDEX="Pointer" FROM="1" TO="6">
<CFSET color=color & #mid(AllowedDigits,RandRan ge(1,6),1) #>
</CFLOOP>
</cfif>
<CFIF #day# is '#day(calendardate)#'>
<a href="javascript:;" onClick="MM_openBrWindow(' showevent. cfm?CalID= #Calendar_ ID#','cale ndar','scr ollbars=ye s,width=41 0,height=3 50')">#eve ntname#</A ><br>
<cfelse>
</CFIF>
</CFOUTPUT> </TD>
<CFSET day = #day# + 1>
<CFELSE>
<cfoutput>
<TD width="19" height="#cellheight#">&nbs p; </TD>
</cfoutput>
</CFIF><CFIF (#ii# mod 7 is 0)>
</TR>
<TR> </CFIF></CFLOOP>
your code (recurring doesn't work correctly):
<CFSET I_ROWCNT = 1>
<CFSET I_ROWNO = 1><!--- WILL HOLD THE N0 0F ROWS DISPLAYED IN CALENDAR. --->
<CFLOOP FROM="1" TO="#Evaluate(DayOfWeek(Cr eateDate(Y ear(Curr_D ate), Month(Curr_Date), 1))-1)#" INDEX="i_empty"><!--- put empty spaces till the first day of month comes eg. in case of May..there would be four empty spaces. --->
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
</CFLOOP>
<CFSET I_ROWCNT = I_EMPTY>
<CFLOOP FROM="1" TO="#DaysInMonth(Curr_Date )#" INDEX="i_day">
<CFIF ListFindNoCase(Lst_Calenda rDay,i_day ,'~') NEQ 0>
<TD bgcolor="#F1E39E" align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU TPUT>#i_da y#</CFOUTP UT></SPAN> <BR>
<SPAN class="frontcopy"><cfset myUrl = urlencodedformat(#ListGetA t(Lst_Even tname,List FindNoCase (Lst_Calen darDay,i_d ay,'~'),'~ ')#)>
<cfoutput>
<a href="event.cfm?Eventname= #myUrl#"># ListGetAt( Lst_Eventn ame,ListFi ndNoCase(L st_Calenda rDay,i_day ,'~'),'~') #</a> </cfoutput></A><BR></TD>
<CFELSE>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU TPUT>#i_da y#</CFOUTP UT></SPAN> <BR></TD>
</CFIF>
<CFIF I_ROWCNT MOD 7 EQ 0>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" colspan="13" height="2"></TD>
</TR>
<TR>
<CFSET I_ROWNO = IncrementValue(I_ROWNO)>
</CFIF>
<CFSET I_ROWCNT = IncrementValue(I_ROWCNT)>
</CFLOOP>
- my old code displayed all recurring events correctly but for various reasons, i definitely want to use yours.
can you take a quick look at this and let me know if you see what's causing the problem??????
old code (recurring works correctly):
<CFLOOP index="ii" from="1" to="#CalDays#">
<cfif #ii# gte #offset# and #ii# lte #lastslot# >
<cfif day is #datepart("d", now())# and #month(curntdate)# is #month(now())#>
<cfset thetdbgcolor="#thetdbgcolo
<cfelse>
<cfset thetdbgcolor="#thetdbgcolo
</cfif><cfoutput>
<td valign=top width="120" height="#cellheight#" bgcolor="#thetdbgcolor#"><
#Day# <CFELSE> <span style="#datestylenorm#">#D
<cfif squaresbg is "lt">
<cfset color=randrange(000000,999
<cfelse>
<CFSET AllowedDigits="abcdef">
<CFSET color="">
<CFLOOP INDEX="Pointer" FROM="1" TO="6">
<CFSET color=color & #mid(AllowedDigits,RandRan
</CFLOOP>
</cfif>
<CFIF #day# is '#day(calendardate)#'>
<a href="javascript:;" onClick="MM_openBrWindow('
<cfelse>
</CFIF>
</CFOUTPUT> </TD>
<CFSET day = #day# + 1>
<CFELSE>
<cfoutput>
<TD width="19" height="#cellheight#">&nbs
</cfoutput>
</CFIF><CFIF (#ii# mod 7 is 0)>
</TR>
<TR> </CFIF></CFLOOP>
your code (recurring doesn't work correctly):
<CFSET I_ROWCNT = 1>
<CFSET I_ROWNO = 1><!--- WILL HOLD THE N0 0F ROWS DISPLAYED IN CALENDAR. --->
<CFLOOP FROM="1" TO="#Evaluate(DayOfWeek(Cr
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
</CFLOOP>
<CFSET I_ROWCNT = I_EMPTY>
<CFLOOP FROM="1" TO="#DaysInMonth(Curr_Date
<CFIF ListFindNoCase(Lst_Calenda
<TD bgcolor="#F1E39E" align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU
<SPAN class="frontcopy"><cfset myUrl = urlencodedformat(#ListGetA
<cfoutput>
<a href="event.cfm?Eventname=
<CFELSE>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU
</CFIF>
<CFIF I_ROWCNT MOD 7 EQ 0>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" colspan="13" height="2"></TD>
</TR>
<TR>
<CFSET I_ROWNO = IncrementValue(I_ROWNO)>
</CFIF>
<CFSET I_ROWCNT = IncrementValue(I_ROWCNT)>
</CFLOOP>
what do u mean by recurring....
see my code is very simple to understand...
if your query is returning all the events properly and u have used my code correctly
then the events will be shown...
i can't tell wahts wrong like this...
bcos i tested my code here and it was fine...
i can't test wether ur query is returning records properly..
because i don't have the records with me..
hope u understand ...
anywayz paste the whole code and tel me what is coming wrong in my code, show me online if u can
Regards
Hart
see my code is very simple to understand...
if your query is returning all the events properly and u have used my code correctly
then the events will be shown...
i can't tell wahts wrong like this...
bcos i tested my code here and it was fine...
i can't test wether ur query is returning records properly..
because i don't have the records with me..
hope u understand ...
anywayz paste the whole code and tel me what is coming wrong in my code, show me online if u can
Regards
Hart
ASKER
hi hart - sorry this has turned into such an involved ?. perhaps if i wasn't such a jack of all trades/master of none :-)
ok - first off the Eventname is "Peach Blossom Fan." By recurring I mean a date that happens more than one day in a row. In the db Peach Blossom Fan goes from 4/9/2004 to 4/24/2004. However the monthly calendar only displays 4/13/2004 to 4/24/2004
link to page displaying that event:
http://redcatweb2.org/calendar/index.cfm?Curr_Date={ts%20'2004-04-03%2013:34: 45'}
another way this is happening:
http://redcatweb2.org/calendar/index.cfm?Curr_Date={ts%20'2003-11-03%2013:34: 45'}
you'll see "dumb type (Japan)" on Nov 11. This actually doesn't occur on this date. In the db it's a recurring Eventname that happens on 11/7/2003 & 11/8/2003.
here's my complete code:
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>REDCAT: Monthly Calendar</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT TYPE="text/javascript"><!- -
function mmLoadMenus() {
if (window.mm_menu_1008112322 _0) return;
window.mm_menu_1008112322_ 0 = new Menu("root",250,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1008112322_0.addMe nuItem("Mo nthly  ;calendar" ,"location ='http://www.redcatweb2.org/calendar/index.cfm'");
mm_menu_1008112322_0.addMe nuItem("Se ason overview", "location= 'http://redcatweb.org/season/seasonoverview.html'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Worl dview  ;Series"," location=' http://www.redcatweb2.org/calendar/series.cfm?EventID=3'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Musi cal E xploration s Ser ies","loca tion='http://www.redcatweb2.org/calendar/series.cfm?EventID=2'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Shar on Di sney Lund Dance  ;Series"," location=' http://www.redcatweb2.org/calendar/series.cfm?EventID=6'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Cent er Fo r New Thea ter","loca tion='http://www.redcatweb2.org/calendar/series.cfm?EventID=4'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Film and& nbsp;Video Seri es","locat ion='http://www.redcatweb2.org/calendar/series.cfm?EventID=1'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Comm unity  ;Arts  ;Partnersh ip","locat ion='http://www.redcatweb2.org/calendar/series.cfm?EventID=5'");
mm_menu_1008112322_0.addMe nuItem("&n bsp; Pres ident's&nb sp;Ideas&n bsp;and&nb sp;Dialogu es Se ries","loc ation='http://www.redcatweb2.org/calendar/series.cfm?EventID=7'");
mm_menu_1008112322_0.hideO nMouseOut= true;
mm_menu_1008112322_0.bgCol or='#55555 5';
mm_menu_1008112322_0.menuB order=1;
mm_menu_1008112322_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1008112322_0.menuB orderBgCol or='#77777 7';
window.mm_menu_1008114711_ 0 = new Menu("root",143,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1008114711_0.addMe nuItem("Ga llery  ;at R EDCAT","lo cation='http://redcatweb.org/gallery/gallery.html'") ;
mm_menu_1008114711_0.addMe nuItem("Cu rrent  ;exhibitio n","locati on='http://redcatweb.org/gallery/current.html'");<!- -Craig-->
mm_menu_1008114711_0.addMe nuItem("Ex hibition&n bsp;schedu le","locat ion='http://redcatweb.org/gallery/exschedule.html'");<! --craig-->
mm_menu_1008114711_0.hideO nMouseOut= true;
mm_menu_1008114711_0.bgCol or='#55555 5';
mm_menu_1008114711_0.menuB order=1;
mm_menu_1008114711_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1008114711_0.menuB orderBgCol or='#77777 7';
window.mm_menu_1008115821_ 0 = new Menu("root",158,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1008115821_0.addMe nuItem("Ti cketing information","location='http://redcatweb.org/tickets/tickets.html'") ;
mm_menu_1008115821_0.addMe nuItem("Ti mes & amp; prices","l ocation='http://redcatweb.org/tickets/timesprices.html'" );
mm_menu_1008115821_0.addMe nuItem("Su bscribe"," location=' http://redcatweb.org/tickets/subscribe.html'");
mm_menu_1008115821_0.addMe nuItem("Co ntact  ;box office","l ocation='http://redcatweb.org/contact.html'" );
mm_menu_1008115821_0.hideO nMouseOut= true;
mm_menu_1008115821_0.bgCol or='#55555 5';
mm_menu_1008115821_0.menuB order=1;
mm_menu_1008115821_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1008115821_0.menuB orderBgCol or='#77777 7';
window.mm_menu_1008120230_ 0 = new Menu("root",158,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1008120230_0.addMe nuItem("Sp onsorship" ,"location ='http://redcatweb.org/participate/sponsorship.html'");
mm_menu_1008120230_0.addMe nuItem("Su pport  ;REDCAT"," location=' http://redcatweb.org/participate/support.html'");
mm_menu_1008120230_0.addMe nuItem("Ge t inv olved","lo cation='http://redcatweb.org/participate/getinvolved.html'") ;
mm_menu_1008120230_0.addMe nuItem("Ar tist opportunit ies","loca tion='http://redcatweb.org/participate/artistopportunities.html'");
mm_menu_1008120230_0.hideO nMouseOut= true;
mm_menu_1008120230_0.bgCol or='#55555 5';
mm_menu_1008120230_0.menuB order=1;
mm_menu_1008120230_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1008120230_0.menuB orderBgCol or='#77777 7';
window.mm_menu_1008131452_ 0 = new Menu("root",180,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1008131452_0.addMe nuItem("Di rectors'&n bsp;statem ent","loca tion='http://redcatweb.org/about/directorsstatement.html'");
mm_menu_1008131452_0.addMe nuItem("Pr esident's& nbsp;messa ge","locat ion='http://redcatweb.org/about/presidentsmessage.html'");
mm_menu_1008131452_0.addMe nuItem("Ac knowledgme nts","loca tion='http://redcatweb.org/about/acknowledgments.html'");
mm_menu_1008131452_0.addMe nuItem("Hi story","lo cation='http://redcatweb.org/about/history.html'") ;
mm_menu_1008131452_0.addMe nuItem("Me dia/Press& nbsp;room" ,"location ='http://redcatweb.org/about/mediapressroom.html'");
mm_menu_1008131452_0.addMe nuItem("Te am RE DCAT","loc ation='http://redcatweb.org/about/team.html'");
mm_menu_1008131452_0.addMe nuItem("Jo b opp ortunities ","locatio n=' http://calarts.edu/about/employment/nonacademic/index.html'");
mm_menu_1008131452_0.addMe nuItem("Co ntact  ;REDCAT"," location=' http://redcatweb.org/contact.html'");
mm_menu_1008131452_0.addMe nuItem("Ab out t his s ite","loca tion='http://redcatweb.org/about/aboutthissite.html'");
mm_menu_1008131452_0.hideO nMouseOut= true;
mm_menu_1008131452_0.bgCol or='#55555 5';
mm_menu_1008131452_0.menuB order=1;
mm_menu_1008131452_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1008131452_0.menuB orderBgCol or='#77777 7';
window.mm_menu_1008193622_ 0 = new Menu("root",124,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1008193622_0.addMe nuItem("Ca lArts  ;website", "location= 'http://calarts.edu/'");
mm_menu_1008193622_0.addMe nuItem("Bo ard o f Tru stees","lo cation='http://calarts.edu/about/trustees.html'") ;
mm_menu_1008193622_0.hideO nMouseOut= true;
mm_menu_1008193622_0.bgCol or='#55555 5';
mm_menu_1008193622_0.menuB order=1;
mm_menu_1008193622_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1008193622_0.menuB orderBgCol or='#77777 7';
window.mm_menu_1013175119_ 0 = new Menu("root",148,16,"Verdan a, Arial, Helvetica, sans-serif",10,"#777777"," #BF121F"," #FFFFFF"," #FFFFFF"," left","mid dle",3,0,1 000,-5,7,t rue,false, true,0,tru e,true);
mm_menu_1013175119_0.addMe nuItem("RE DCAT tour","loc ation='http://redcatweb.org/visit/tour.html'");
mm_menu_1013175119_0.addMe nuItem("Lo unge at RE DCAT","loc ation='http://redcatweb.org/visit/lounge.html'");
mm_menu_1013175119_0.addMe nuItem("Me rchandise" ,"location ='http://redcatweb.org/visit/merchandise.html'");
mm_menu_1013175119_0.addMe nuItem("Pu blications ","locatio n='http://redcatweb.org/visit/publications.html'");
mm_menu_1013175119_0.addMe nuItem("Do wntown&nbs p;communit y","locati on='http://redcatweb.org/visit/downtowncommunity.html'");
mm_menu_1013175119_0.addMe nuItem("Di rections&n bsp;&& nbsp;parki ng","locat ion='http://redcatweb.org/visit/directionsparking.html'");
mm_menu_1013175119_0.hideO nMouseOut= true;
mm_menu_1013175119_0.bgCol or='#55555 5';
mm_menu_1013175119_0.menuB order=1;
mm_menu_1013175119_0.menuL iteBgColor ='#FFFFFF' ;
mm_menu_1013175119_0.menuB orderBgCol or='#77777 7';
mm_menu_1013175119_0.write Menus();
} // mmLoadMenus()
<!--
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.l ength; i+=2) {
document[changeImages.argu ments[i]]. src = changeImages.arguments[i+1 ];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
about_over = newImage("images/home/abou t-over.gif ");
doctors_over = newImage("images/home/doct ors-over.g if");
pated_over = newImage("images/home/pate d-over.gif ");
appreq_over = newImage("images/home/appr eq-over.gi f");
career_over = newImage("images/home/care er-over.gi f");
news_over = newImage("images/home/news -over.gif" );
preloadFlag = true;
}
}
// -->
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x= a[i])&&x.o Src;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_pre loadImages .arguments ; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&p arent.fram es.length) {
d=parent.frames[n.substrin g(p+1)].do cument; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length; i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&id.l ayers.leng th;i++) x=MM_findObj(n,d.layers[i] .document) ;
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arg uments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+= 3)
if ((x=MM_findObj(a[i]))!=nul l){documen t.MM_sr[j+ +]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
function MM_showMenu(menu, x, y, child, imgname) {
if (!window.mmWroteMenu) return;
MM_clearTimeout();
if (menu) {
var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
x = moveXbySlicePos (x, obj);
y = moveYbySlicePos (y, obj);
}
if (document.layers) {
if (menu) {
var l = menu.menuLayer || menu;
l.top = l.left = 1;
hideActiveMenus();
if (this.visibility) l = this;
window.ActiveMenu = l;
} else {
var l = child;
}
if (!l) return;
for (var i=0; i<l.layers.length; i++) {
if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
if (l.layers[i].document.laye rs.length > 0) MM_showMenu(null, "relative", "relative", l.layers[i]);
}
if (l.parentLayer) {
if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
if (l.parentLayer.isContainer ) {
l.Menu.xOffset = window.pageXOffset;
l.Menu.yOffset = window.pageYOffset;
l.parentLayer.clip.width = window.ActiveMenu.clip.wid th +2;
l.parentLayer.clip.height = window.ActiveMenu.clip.hei ght +2;
if (l.parentLayer.menuContain erBgColor && l.Menu.menuBgOpaque ) l.parentLayer.document.bgC olor = l.parentLayer.menuContaine rBgColor;
}
}
l.visibility = "inherit";
if (l.Menu) l.Menu.container.visibilit y = "inherit";
} else if (FIND("menuItem0")) {
var l = menu.menuLayer || menu;
hideActiveMenus();
if (typeof(l) == "string") l = FIND(l);
window.ActiveMenu = l;
var s = l.style;
s.visibility = "inherit";
if (x != "relative") {
s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
s.left = s.pixelLeft + 'px';
}
if (y != "relative") {
s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
s.top = s.pixelTop + 'px';
}
l.Menu.xOffset = document.body.scrollLeft;
l.Menu.yOffset = document.body.scrollTop;
}
if (menu) window.activeMenus[window. activeMenu s.length] = l;
MM_clearTimeout();
}
function MM_startTimeout() {
if( window.ActiveMenu ) {
mmStart = new Date();
mmDHFlag = true;
mmHideMenuTimer = setTimeout("mmDoHide()", window.ActiveMenu.Menu.hid eTimeout);
}
}
//-->
</SCRIPT>
<SCRIPT language="JavaScript" src="http://calarts.edu/redcat/code/mm_menu.js"></SCRIPT>
<link href="css/testlinks.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<SCRIPT language="JavaScript1.2">m mLoadMenus ();</SCRIP T>
<TABLE bgcolor="#CCCCCC" border="0" cellpadding="0" cellspacing="0" width="748">
<TR>
<TD valign="top" align="left" background="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r5_c1.gif">
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="26">
<TR>
<TD><IMG name="1" src="http://calarts.edu/images/redcat/mg/mgleftstripe.gif" width="26" height="582" border="0"></TD>
</TR>
<TR>
<TD><IMG name="2" src="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r5_c1.gif" width="26" height="700" border="0"></TD>
</TR>
</TABLE></TD>
<TD valign="top" align="left">
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="722">
<TR>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="722">
<TR>
<TD><IMG name="3" src="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r1_c2.gif" width="41" height="212" border="0"></TD>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="507">
<TR>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="507" height="60">
<TR>
<TD>
<TABLE width=507 border=0 cellpadding=0 cellspacing=0>
<TR>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=47 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=4 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=61 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=7 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=49 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=2 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=42 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=4 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=79 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=52 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=63 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=97 height=0></TD>
</TR>
<TR>
<TD COLSPAN=12><IMG src="http://calarts.edu/images/redcat/main/menu3_01.gif" width=507 height=19></TD>
</TR>
<TR> <!--red fixed link-->
<TD><A href="http://redcatweb.org/contact.html" onMouseOver="MM_swapImage( 'contact', '','http://calarts.edu/images/redcat/main/contact-over.gif',1)" onMouseOut="MM_swapImgRest ore()"><IM G src="http://calarts.edu/images/redcat/main/contact.gif" name="contact" width=47 height=15 border="0" id="Image1"></A></TD>
<TD COLSPAN=3><A href="http://redcatweb.org/mailinglist.html" onMouseOver="MM_swapImage( 'mailingli st','','http://calarts.edu/images/redcat/main/mailinglist-over.gif',1)" onMouseOut="MM_swapImgRest ore()"><IM G src="http://calarts.edu/images/redcat/main/mailinglist.gif" name="mailinglist" border="0" width=72 height=15></A></TD>
<TD><A href="http://redcatweb.org/sitemap.html" onMouseOver="MM_swapImage( 'sitemap', '','http://calarts.edu/images/redcat/main/sitemap-over.gif',1)" onMouseOut="MM_swapImgRest ore()"><IM G src="http://calarts.edu/images/redcat/main/sitemap.gif" name="sitemap" border="0" width=49 height=15></A></TD>
<TD COLSPAN=3><A href="http://redcatweb.org/search.html" onMouseOver="MM_swapImage( 'search',' ','http://calarts.edu/images/redcat/main/search-over.gif',1)" onMouseOut="MM_swapImgRest ore()"><IM G src="http://calarts.edu/images/redcat/main/search.gif" name="search" border="0" width=48 height=15></A></TD>
<TD COLSPAN=4><IMG src="http://calarts.edu/images/redcat/main/menu3_06.gif" width=291 height=15></TD>
</TR>
<TR>
<TD COLSPAN=12><IMG src="http://calarts.edu/images/redcat/main/menu3_07.gif" width=507 height=5></TD>
</TR>
<TR> <!--main navigation-->
<TD COLSPAN=2><A onMouseOver="MM_showMenu(w indow.mm_m enu_100811 2322_0,-3, 15,null,'s eason1')" onMouseOut="MM_startTimeou t();"><IMG name="season1" src="http://calarts.edu/images/redcat/main/season1.gif" width=51 height=13 border="0"></A></TD>
<TD><A onMouseOver="MM_showMenu(w indow.mm_m enu_100811 4711_0,0,1 5,null,'ga llery2')" onMouseOut="MM_startTimeou t();"><IMG name="gallery2" src="http://calarts.edu/images/redcat/main/gallery2.gif" width=61 height=13 border="0"></A></TD>
<TD COLSPAN=3><A onMouseOver="MM_showMenu(w indow.mm_m enu_100811 5821_0,2,1 5,null,'ti ckets3')" onMouseOut="MM_startTimeou t();"><IMG name="tickets3" src="http://calarts.edu/images/redcat/main/tickets3.gif" width=58 height=13 border="0"></A></TD>
<TD><A href="" onMouseOver="MM_showMenu(w indow.mm_m enu_101317 5119_0,2,1 5,null,'vi sit7')" onMouseOut="MM_startTimeou t();"><IMG src="http://calarts.edu/images/redcat/main/visit7.gif" name="visit7" width=42 height=13 border="0" id="image1"></A></TD>
<TD COLSPAN=2><A onMouseOver="MM_showMenu(w indow.mm_m enu_100812 0230_0,2,1 5,null,'pa rticipate4 ')" onMouseOut="MM_startTimeou t();"><IMG name="participate4" src="http://calarts.edu/images/redcat/main/participate4.gif" width=83 height=13 border="0"></A></TD>
<TD><A onMouseOver="MM_showMenu(w indow.mm_m enu_100813 1452_0,2,1 5,null,'ab out5')" onMouseOut="MM_startTimeou t();"><IMG name="about5" src="http://calarts.edu/images/redcat/main/about5.gif" width=52 height=13 border="0"></A></TD>
<TD><A onMouseOver="MM_showMenu(w indow.mm_m enu_100819 3622_0,2,1 5,null,'ca larts6')" onMouseOut="MM_startTimeou t();"><IMG name="calarts6" src="http://calarts.edu/images/redcat/main/calarts6.gif" width=63 height=13 border="0"></A></TD>
<TD ROWSPAN=2><IMG src="http://calarts.edu/images/redcat/main/menu3_15.gif" width=97 height=20></TD>
</TR>
<TR>
<TD COLSPAN=11><IMG src="http://calarts.edu/images/redcat/main/menu3_16.gif" width=410 height=7></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE> <!--here--></TD>
</TR>
<TR>
<TD><IMG name="rc" src="http://calarts.edu/images/redcat/mg/mgredcat.gif" width="507" height="152" border="0"></TD>
</TR>
</TABLE></TD>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="174">
<TR>
<TD><A href="http://redcatweb.org/" onMouseOut="MM_swapImgRest ore();" onMouseOver="MM_swapImage( 'rc','','http://calarts.edu/images/redcat/mg/mgredcat_f2.gif','rcl','','http://calarts.edu/images/redcat/mg/mgredcatleg_f2.gif',1) ;"><IMG name="7" src="http://calarts.edu/images/redcat/mg/mgredcatlogo.gif" width="174" height="114" border="0"></A></TD>
</TR>
<TR>
<TD><IMG name="rcl" src="http://calarts.edu/images/redcat/mg/mgredcatleg.gif" width="174" height="98" border="0"></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE><BR>
<cfquery name="craigcal" datasource="calartscalenda r">
SELECT * FROM calendar
</cfquery>
<CFPARAM name="Curr_Date" default="#now()#">
<CFIF isdefined("MonthChange")>
<CFIF monthchange is 'forward'>
<CFSET curntdate = createodbcdate(dateadd("m" , 1, lastdate))>
<CFELSE>
<CFSET curntdate = createodbcdate(dateadd("m" , -1, lastdate))>
</CFIF>
</CFIF>
<CFPARAM name="YearSet" default="#year(Curr_Date)# ">
<CFPARAM name="MonthSet" default="#month(Curr_Date) #">
<!--- Create the date variables to search the Database by. --->
<CFSET monthstart = createdatetime(#yearset#, #monthset#, 1, 0, 0, 0)>
<CFSET monthend = createdatetime(#yearset#, #monthset#, #daysinmonth(monthstart)#, 23, 59, 59)>
<CFQUERY datasource="calartscalenda r" name="SearchResults">
Select Eventname, EventDescription, Calendar_ID, CalendarDate From calendar Where CalendarDate >= #CreateODBCDate(monthstart )# and CalendarDate <= #CreateODBCDate(monthend)# <cfif #len(eventtype)#>and EventType = '#eventtype#'</cfif>
</CFQUERY>
<CFSET Lst_Eventname = Replace(ValueList(SearchRe sults.Even tname,'~') ,'~~','~ ~','All')>
<CFSET Lst_EventDescription = Replace(ValueList(SearchRe sults.Even tDescripti on,'~'),'~ ~','~ ~','All')>
<CFSET Lst_Calendar_ID = ValueList(SearchResults.Ca lendar_ID, '~')>
<CFSET Lst_CalendarDate = ValueList(SearchResults.Ca lendarDate ,'~')>
<CFPARAM NAME="curr_date" DEFAULT="#CreateDate(Year( Now()), Month(Now()), Day(Now()))#">
<!---<CFSET Lst_Eventname = "Event 1~Event 2~ Event 3">
<CFSET Lst_EventDescription = "Event 1 Desc~Event 2 Desc~Event 3 Desc">
<CFSET Lst_Calendar_ID = "1~2~3">
<CFSET Lst_CalendarDate = "5/10/2003~10/10/2003~25/1 0/2003"> --->
<CFSET Lst_CalendarDay = "">
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD ate,'~')#" INDEX="day_index">
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay ,day(datef ormat(List GetAt(Lst_ CalendarDa te,day_ind ex,'~'),'d d/mm/yyyy' )),'~')>
</CFLOOP>
<TABLE width="722" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD align="left" valign="top" width="41"> </TD>
<TD align="left" valign="top" width="630"><BR>
<TABLE width="558" border="0" cellspacing="0" cellpadding="2">
<TR>
<TD align="left">
<SPAN class="calendarbold_big">< CFOUTPUT># DATEFORMAT (CURR_DATE , "mmmm yyyy")#</CFOUTPUT></SPAN>< /TD>
<TD align="right">
<SPAN class="calendarbold_big">< A HREF="index.cfm?Curr_Date= <CFOUTPUT> #DateAdd(' m',-1,CURR _DATE)#</C FOUTPUT>"> <span class="calendarbold_arrows "><font size="6">‹‹</f ont></span ></A> <A HREF="index.cfm?Curr_Date= <CFOUTPUT> #DateAdd(' m',1,CURR_ DATE)#</CF OUTPUT>">< span class="calendarbold_arrows "><font size="6">››</f ont></span ></A></SPA N></TD>
</TR>
</TABLE><BR>
<TABLE width="600" border="0" cellspacing="0" cellpadding="6">
<TR align="left">
<TD valign="top" width="80" height=""><SPAN class="calendarbold"><FONT color="#000000">S</SPAN></ TD>
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT color="#000000">M</SPAN></ TD>
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT color="#000000">T</SPAN></ TD>
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT color="#000000">W</SPAN></ TD>
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT color="#000000">T</SPAN></ TD>
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT color="#000000">F</SPAN></ TD>
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT color="#000000">S</SPAN></ TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
</TR>
<TR>
<!--- just change curr_date value as per date passed --->
<CFSET I_ROWCNT = 1>
<CFSET I_ROWNO = 1><!--- WILL HOLD THE N0 0F ROWS DISPLAYED IN CALENDAR. --->
<CFLOOP FROM="1" TO="#Evaluate(DayOfWeek(Cr eateDate(Y ear(Curr_D ate), Month(Curr_Date), 1))-1)#" INDEX="i_empty"><!--- put empty spaces till the first day of month comes eg. in case of May..there would be four empty spaces. --->
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
</CFLOOP>
<CFSET I_ROWCNT = I_EMPTY>
<CFLOOP FROM="1" TO="#DaysInMonth(Curr_Date )#" INDEX="i_day">
<CFIF ListFindNoCase(Lst_Calenda rDay,i_day ,'~') NEQ 0>
<TD bgcolor="#F1E39E" align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU TPUT>#i_da y#</CFOUTP UT></SPAN> <BR>
<SPAN class="frontcopy"><cfset myUrl = urlencodedformat(#ListGetA t(Lst_Even tname,List FindNoCase (Lst_Calen darDay,i_d ay,'~'),'~ ')#)>
<cfoutput>
<a href="event.cfm?Eventname= #myUrl#"># ListGetAt( Lst_Eventn ame,ListFi ndNoCase(L st_Calenda rDay,i_day ,'~'),'~') #</a> </cfoutput></A><BR></TD>
<CFELSE>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU TPUT>#i_da y#</CFOUTP UT></SPAN> <BR></TD>
</CFIF>
<CFIF I_ROWCNT MOD 7 EQ 0>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" colspan="13" height="2"></TD>
</TR>
<TR>
<CFSET I_ROWNO = IncrementValue(I_ROWNO)>
</CFIF>
<CFSET I_ROWCNT = IncrementValue(I_ROWCNT)>
</CFLOOP>
</TR>
<CFIF I_ROWNO LT 6><!--- hide this row in no. of rows is 6 --->
<TR>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold">  ;</SPAN><B R></TD>
</TR>
</CFIF>
</TABLE></TD>
</TR>
</TABLE>
<CENTER><IMG src="http://calarts.edu/images/redcat/buildings/seasondarkgray.gif" width="640" height="359" alt="" border="0"></CENTER></TD>
</TR>
</TABLE>
</BODY>
</HTML>
ok - first off the Eventname is "Peach Blossom Fan." By recurring I mean a date that happens more than one day in a row. In the db Peach Blossom Fan goes from 4/9/2004 to 4/24/2004. However the monthly calendar only displays 4/13/2004 to 4/24/2004
link to page displaying that event:
http://redcatweb2.org/calendar/index.cfm?Curr_Date={ts%20'2004-04-03%2013:34:
another way this is happening:
http://redcatweb2.org/calendar/index.cfm?Curr_Date={ts%20'2003-11-03%2013:34:
you'll see "dumb type (Japan)" on Nov 11. This actually doesn't occur on this date. In the db it's a recurring Eventname that happens on 11/7/2003 & 11/8/2003.
here's my complete code:
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>REDCAT: Monthly Calendar</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT TYPE="text/javascript"><!-
function mmLoadMenus() {
if (window.mm_menu_1008112322
window.mm_menu_1008112322_
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.hideO
mm_menu_1008112322_0.bgCol
mm_menu_1008112322_0.menuB
mm_menu_1008112322_0.menuL
mm_menu_1008112322_0.menuB
window.mm_menu_1008114711_
mm_menu_1008114711_0.addMe
mm_menu_1008114711_0.addMe
mm_menu_1008114711_0.addMe
mm_menu_1008114711_0.hideO
mm_menu_1008114711_0.bgCol
mm_menu_1008114711_0.menuB
mm_menu_1008114711_0.menuL
mm_menu_1008114711_0.menuB
window.mm_menu_1008115821_
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.hideO
mm_menu_1008115821_0.bgCol
mm_menu_1008115821_0.menuB
mm_menu_1008115821_0.menuL
mm_menu_1008115821_0.menuB
window.mm_menu_1008120230_
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.hideO
mm_menu_1008120230_0.bgCol
mm_menu_1008120230_0.menuB
mm_menu_1008120230_0.menuL
mm_menu_1008120230_0.menuB
window.mm_menu_1008131452_
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.hideO
mm_menu_1008131452_0.bgCol
mm_menu_1008131452_0.menuB
mm_menu_1008131452_0.menuL
mm_menu_1008131452_0.menuB
window.mm_menu_1008193622_
mm_menu_1008193622_0.addMe
mm_menu_1008193622_0.addMe
mm_menu_1008193622_0.hideO
mm_menu_1008193622_0.bgCol
mm_menu_1008193622_0.menuB
mm_menu_1008193622_0.menuL
mm_menu_1008193622_0.menuB
window.mm_menu_1013175119_
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.hideO
mm_menu_1013175119_0.bgCol
mm_menu_1013175119_0.menuB
mm_menu_1013175119_0.menuL
mm_menu_1013175119_0.menuB
mm_menu_1013175119_0.write
} // mmLoadMenus()
<!--
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.l
document[changeImages.argu
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
about_over = newImage("images/home/abou
doctors_over = newImage("images/home/doct
pated_over = newImage("images/home/pate
appreq_over = newImage("images/home/appr
career_over = newImage("images/home/care
news_over = newImage("images/home/news
preloadFlag = true;
}
}
// -->
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_pre
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&p
d=parent.frames[n.substrin
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;
for(i=0;!x&&d.layers&&id.l
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arg
if ((x=MM_findObj(a[i]))!=nul
}
//-->
function MM_showMenu(menu, x, y, child, imgname) {
if (!window.mmWroteMenu) return;
MM_clearTimeout();
if (menu) {
var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
x = moveXbySlicePos (x, obj);
y = moveYbySlicePos (y, obj);
}
if (document.layers) {
if (menu) {
var l = menu.menuLayer || menu;
l.top = l.left = 1;
hideActiveMenus();
if (this.visibility) l = this;
window.ActiveMenu = l;
} else {
var l = child;
}
if (!l) return;
for (var i=0; i<l.layers.length; i++) {
if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
if (l.layers[i].document.laye
}
if (l.parentLayer) {
if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
if (l.parentLayer.isContainer
l.Menu.xOffset = window.pageXOffset;
l.Menu.yOffset = window.pageYOffset;
l.parentLayer.clip.width = window.ActiveMenu.clip.wid
l.parentLayer.clip.height = window.ActiveMenu.clip.hei
if (l.parentLayer.menuContain
}
}
l.visibility = "inherit";
if (l.Menu) l.Menu.container.visibilit
} else if (FIND("menuItem0")) {
var l = menu.menuLayer || menu;
hideActiveMenus();
if (typeof(l) == "string") l = FIND(l);
window.ActiveMenu = l;
var s = l.style;
s.visibility = "inherit";
if (x != "relative") {
s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
s.left = s.pixelLeft + 'px';
}
if (y != "relative") {
s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
s.top = s.pixelTop + 'px';
}
l.Menu.xOffset = document.body.scrollLeft;
l.Menu.yOffset = document.body.scrollTop;
}
if (menu) window.activeMenus[window.
MM_clearTimeout();
}
function MM_startTimeout() {
if( window.ActiveMenu ) {
mmStart = new Date();
mmDHFlag = true;
mmHideMenuTimer = setTimeout("mmDoHide()", window.ActiveMenu.Menu.hid
}
}
//-->
</SCRIPT>
<SCRIPT language="JavaScript" src="http://calarts.edu/redcat/code/mm_menu.js"></SCRIPT>
<link href="css/testlinks.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<SCRIPT language="JavaScript1.2">m
<TABLE bgcolor="#CCCCCC" border="0" cellpadding="0" cellspacing="0" width="748">
<TR>
<TD valign="top" align="left" background="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r5_c1.gif">
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="26">
<TR>
<TD><IMG name="1" src="http://calarts.edu/images/redcat/mg/mgleftstripe.gif" width="26" height="582" border="0"></TD>
</TR>
<TR>
<TD><IMG name="2" src="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r5_c1.gif" width="26" height="700" border="0"></TD>
</TR>
</TABLE></TD>
<TD valign="top" align="left">
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="722">
<TR>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="722">
<TR>
<TD><IMG name="3" src="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r1_c2.gif" width="41" height="212" border="0"></TD>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="507">
<TR>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="507" height="60">
<TR>
<TD>
<TABLE width=507 border=0 cellpadding=0 cellspacing=0>
<TR>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=47 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=4 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=61 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=7 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=49 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=2 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=42 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=4 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=79 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=52 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=63 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=97 height=0></TD>
</TR>
<TR>
<TD COLSPAN=12><IMG src="http://calarts.edu/images/redcat/main/menu3_01.gif" width=507 height=19></TD>
</TR>
<TR> <!--red fixed link-->
<TD><A href="http://redcatweb.org/contact.html" onMouseOver="MM_swapImage(
<TD COLSPAN=3><A href="http://redcatweb.org/mailinglist.html" onMouseOver="MM_swapImage(
<TD><A href="http://redcatweb.org/sitemap.html" onMouseOver="MM_swapImage(
<TD COLSPAN=3><A href="http://redcatweb.org/search.html" onMouseOver="MM_swapImage(
<TD COLSPAN=4><IMG src="http://calarts.edu/images/redcat/main/menu3_06.gif" width=291 height=15></TD>
</TR>
<TR>
<TD COLSPAN=12><IMG src="http://calarts.edu/images/redcat/main/menu3_07.gif" width=507 height=5></TD>
</TR>
<TR> <!--main navigation-->
<TD COLSPAN=2><A onMouseOver="MM_showMenu(w
<TD><A onMouseOver="MM_showMenu(w
<TD COLSPAN=3><A onMouseOver="MM_showMenu(w
<TD><A href="" onMouseOver="MM_showMenu(w
<TD COLSPAN=2><A onMouseOver="MM_showMenu(w
<TD><A onMouseOver="MM_showMenu(w
<TD><A onMouseOver="MM_showMenu(w
<TD ROWSPAN=2><IMG src="http://calarts.edu/images/redcat/main/menu3_15.gif" width=97 height=20></TD>
</TR>
<TR>
<TD COLSPAN=11><IMG src="http://calarts.edu/images/redcat/main/menu3_16.gif" width=410 height=7></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE> <!--here--></TD>
</TR>
<TR>
<TD><IMG name="rc" src="http://calarts.edu/images/redcat/mg/mgredcat.gif" width="507" height="152" border="0"></TD>
</TR>
</TABLE></TD>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="174">
<TR>
<TD><A href="http://redcatweb.org/" onMouseOut="MM_swapImgRest
</TR>
<TR>
<TD><IMG name="rcl" src="http://calarts.edu/images/redcat/mg/mgredcatleg.gif" width="174" height="98" border="0"></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE><BR>
<cfquery name="craigcal" datasource="calartscalenda
SELECT * FROM calendar
</cfquery>
<CFPARAM name="Curr_Date" default="#now()#">
<CFIF isdefined("MonthChange")>
<CFIF monthchange is 'forward'>
<CFSET curntdate = createodbcdate(dateadd("m"
<CFELSE>
<CFSET curntdate = createodbcdate(dateadd("m"
</CFIF>
</CFIF>
<CFPARAM name="YearSet" default="#year(Curr_Date)#
<CFPARAM name="MonthSet" default="#month(Curr_Date)
<!--- Create the date variables to search the Database by. --->
<CFSET monthstart = createdatetime(#yearset#, #monthset#, 1, 0, 0, 0)>
<CFSET monthend = createdatetime(#yearset#, #monthset#, #daysinmonth(monthstart)#,
<CFQUERY datasource="calartscalenda
Select Eventname, EventDescription, Calendar_ID, CalendarDate From calendar Where CalendarDate >= #CreateODBCDate(monthstart
</CFQUERY>
<CFSET Lst_Eventname = Replace(ValueList(SearchRe
<CFSET Lst_EventDescription = Replace(ValueList(SearchRe
<CFSET Lst_Calendar_ID = ValueList(SearchResults.Ca
<CFSET Lst_CalendarDate = ValueList(SearchResults.Ca
<CFPARAM NAME="curr_date" DEFAULT="#CreateDate(Year(
<!---<CFSET Lst_Eventname = "Event 1~Event 2~ Event 3">
<CFSET Lst_EventDescription = "Event 1 Desc~Event 2 Desc~Event 3 Desc">
<CFSET Lst_Calendar_ID = "1~2~3">
<CFSET Lst_CalendarDate = "5/10/2003~10/10/2003~25/1
<CFSET Lst_CalendarDay = "">
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay
</CFLOOP>
<TABLE width="722" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD align="left" valign="top" width="41"> </TD>
<TD align="left" valign="top" width="630"><BR>
<TABLE width="558" border="0" cellspacing="0" cellpadding="2">
<TR>
<TD align="left">
<SPAN class="calendarbold_big"><
<TD align="right">
<SPAN class="calendarbold_big"><
</TR>
</TABLE><BR>
<TABLE width="600" border="0" cellspacing="0" cellpadding="6">
<TR align="left">
<TD valign="top" width="80" height=""><SPAN class="calendarbold"><FONT
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="80" height="0"><SPAN class="calendarbold"><FONT
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
<TD align="left" valign="top" width="80" height="2"></TD>
</TR>
<TR>
<!--- just change curr_date value as per date passed --->
<CFSET I_ROWCNT = 1>
<CFSET I_ROWNO = 1><!--- WILL HOLD THE N0 0F ROWS DISPLAYED IN CALENDAR. --->
<CFLOOP FROM="1" TO="#Evaluate(DayOfWeek(Cr
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
</CFLOOP>
<CFSET I_ROWCNT = I_EMPTY>
<CFLOOP FROM="1" TO="#DaysInMonth(Curr_Date
<CFIF ListFindNoCase(Lst_Calenda
<TD bgcolor="#F1E39E" align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU
<SPAN class="frontcopy"><cfset myUrl = urlencodedformat(#ListGetA
<cfoutput>
<a href="event.cfm?Eventname=
<CFELSE>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"><CFOU
</CFIF>
<CFIF I_ROWCNT MOD 7 EQ 0>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" colspan="13" height="2"></TD>
</TR>
<TR>
<CFSET I_ROWNO = IncrementValue(I_ROWNO)>
</CFIF>
<CFSET I_ROWCNT = IncrementValue(I_ROWCNT)>
</CFLOOP>
</TR>
<CFIF I_ROWNO LT 6><!--- hide this row in no. of rows is 6 --->
<TR>
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="80" height="80"><SPAN class="calendarbold"> 
</TR>
</CFIF>
</TABLE></TD>
</TR>
</TABLE>
<CENTER><IMG src="http://calarts.edu/images/redcat/buildings/seasondarkgray.gif" width="640" height="359" alt="" border="0"></CENTER></TD>
</TR>
</TABLE>
</BODY>
</HTML>
i need u to check out two things
after these cfsets and the loop is done [i.e] after
<CFSET Lst_Eventname = Replace(ValueList(SearchRe sults.Even tname,'~') ,'~~','~ ~','All')>
<CFSET Lst_EventDescription = Replace(ValueList(SearchRe sults.Even tDescripti on,'~'),'~ ~','~ ~','All')>
<CFSET Lst_Calendar_ID = ValueList(SearchResults.Ca lendar_ID, '~')>
<CFSET Lst_CalendarDate = ValueList(SearchResults.Ca lendarDate ,'~')>
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD ate,'~')#" INDEX="day_index">
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay ,day(datef ormat(List GetAt(Lst_ CalendarDa te,day_ind ex,'~'),'d d/mm/yyyy' )),'~')>
</CFLOOP>
just output these values on the page...
i.e
<cfoutput>
Event : #Lst_EventDescription#<br>
Cal ID : #Lst_Calendar_ID#<br>
Cal Date : #Lst_CalendarDate#<br><br>
Cal Day : #Lst_CalendarDay#
</cfoutput>
this will let me know wether the lists are forming correctly or not and also wether the dates returned are proper or not..
show this for the dates that are coming wrong.
just paste the output here or show it to me online if u can..
hope its clear..
Regards
Hart
after these cfsets and the loop is done [i.e] after
<CFSET Lst_Eventname = Replace(ValueList(SearchRe
<CFSET Lst_EventDescription = Replace(ValueList(SearchRe
<CFSET Lst_Calendar_ID = ValueList(SearchResults.Ca
<CFSET Lst_CalendarDate = ValueList(SearchResults.Ca
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay
</CFLOOP>
just output these values on the page...
i.e
<cfoutput>
Event : #Lst_EventDescription#<br>
Cal ID : #Lst_Calendar_ID#<br>
Cal Date : #Lst_CalendarDate#<br><br>
Cal Day : #Lst_CalendarDay#
</cfoutput>
this will let me know wether the lists are forming correctly or not and also wether the dates returned are proper or not..
show this for the dates that are coming wrong.
just paste the output here or show it to me online if u can..
hope its clear..
Regards
Hart
ASKER
ok -
this is a good month - all one Eventname. looks like the cfoutput below is rendering the correct dates.
see here:
http://redcatweb2.org/calendar/index.cfm?Curr_Date={ts%20'2004-04-04%2010:36: 49'}
i used:
<cfoutput>
Event : #Lst_Eventname#<br>
Cal ID : #Lst_Calendar_ID#<br>
Cal Date : #Lst_CalendarDate#<br><br>
Cal Day : #Lst_CalendarDay#
</cfoutput>
this is a good month - all one Eventname. looks like the cfoutput below is rendering the correct dates.
see here:
http://redcatweb2.org/calendar/index.cfm?Curr_Date={ts%20'2004-04-04%2010:36:
i used:
<cfoutput>
Event : #Lst_Eventname#<br>
Cal ID : #Lst_Calendar_ID#<br>
Cal Date : #Lst_CalendarDate#<br><br>
Cal Day : #Lst_CalendarDay#
</cfoutput>
got ur problem
replace this loop in your code
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD ate,'~')#" INDEX="day_index">
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay ,day(datef ormat(List GetAt(Lst_ CalendarDa te,day_ind ex,'~'),'d d/mm/yyyy' )),'~')>
</CFLOOP>
with
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD ate,'~')#" INDEX="day_index">
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay ,day(datef ormat(List GetAt(Lst_ CalendarDa te,day_ind ex,'~'),'m m/dd/yyyy' )),'~')>
</CFLOOP>
and ur dates will recurr properly..
Regards
Hart
replace this loop in your code
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay
</CFLOOP>
with
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay
</CFLOOP>
and ur dates will recurr properly..
Regards
Hart
hey u did not say anything about that extra 300 points that u owe me
remember ???
if u don't want to just say that u can't, i can understand that...
but do say something about it ;-)
Regards
Hart
remember ???
if u don't want to just say that u can't, i can understand that...
but do say something about it ;-)
Regards
Hart
ASKER
hi hart - i think we have a 2 part misunderstanding here.
i offered to up the pts on this ? from 200 to 300 if you anyone could help me with part b of my ?: (from ?)
"another thing i'm trying to do and i'll raise the pts to 300 if anyone can figure it out, is have all the calendar table cells be 80 X 80 - not smtwtfs just the actual dates with no space imbetween cells."
i thought i raised the pts from 200 to 300 on this but it looks like i didn't (you only got 200) - so i think i owe you 100 pts not 300? let me know if this makes sense to you? or if i'm sadly mistaken. if i am, i will gladly give you 300 more pts - you've been such a huge help to me!
i would never try to rip someone off pts. that's certainly not going to get me anywhere in the ee!
craig
i offered to up the pts on this ? from 200 to 300 if you anyone could help me with part b of my ?: (from ?)
"another thing i'm trying to do and i'll raise the pts to 300 if anyone can figure it out, is have all the calendar table cells be 80 X 80 - not smtwtfs just the actual dates with no space imbetween cells."
i thought i raised the pts from 200 to 300 on this but it looks like i didn't (you only got 200) - so i think i owe you 100 pts not 300? let me know if this makes sense to you? or if i'm sadly mistaken. if i am, i will gladly give you 300 more pts - you've been such a huge help to me!
i would never try to rip someone off pts. that's certainly not going to get me anywhere in the ee!
craig
anywayz forget it, i just wanted to know....
so did my solution do the trick or not...
it was just the dateformat part that had to be changed for ur dates to work properly
Regards
Hart
so did my solution do the trick or not...
it was just the dateformat part that had to be changed for ur dates to work properly
Regards
Hart
ASKER
hi hart - if it's ok with you, and my explanation makes sense, i'd like to give you the addl 100 pts. just have to
figure out how to do it. you helped me out of a real jam with this and i want to show my appreciation.
i've got my daughter this morning - when she goes down for a nap, i'll try your code.
thanks again,
craig
figure out how to do it. you helped me out of a real jam with this and i want to show my appreciation.
i've got my daughter this morning - when she goes down for a nap, i'll try your code.
thanks again,
craig
ur explanation is fair enough...
for awarding points to anyone all u have to do is put an additional post as
points for "hart".
and then award it to the "hart" when he replies on that post, thats how its done in EE.. ;-)
ok have a great parental day.
and try the code whenever u get time ;-)
it should work...
anywayz i will coming online 2mmorow.., its nearly 19:00 out here in India, so shall be leaving now..
Regards
Hart [Harish]
for awarding points to anyone all u have to do is put an additional post as
points for "hart".
and then award it to the "hart" when he replies on that post, thats how its done in EE.. ;-)
ok have a great parental day.
and try the code whenever u get time ;-)
it should work...
anywayz i will coming online 2mmorow.., its nearly 19:00 out here in India, so shall be leaving now..
Regards
Hart [Harish]
ASKER
thanks for everything hart - as always, your code works perfectly.
here's the link to the 100 points page:
https://www.experts-exchange.com/questions/20787382/points-for-hart.html
;-)
craig
here's the link to the 100 points page:
https://www.experts-exchange.com/questions/20787382/points-for-hart.html
;-)
craig
thanx :-)
Regards
Hart
Regards
Hart
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>REDCAT: Monthly Calendar</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT TYPE="text/javascript"><!-
function mmLoadMenus() {
if (window.mm_menu_1008112322
window.mm_menu_1008112322_
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.addMe
mm_menu_1008112322_0.hideO
mm_menu_1008112322_0.bgCol
mm_menu_1008112322_0.menuB
mm_menu_1008112322_0.menuL
mm_menu_1008112322_0.menuB
window.mm_menu_1008114711_
mm_menu_1008114711_0.addMe
mm_menu_1008114711_0.addMe
mm_menu_1008114711_0.addMe
mm_menu_1008114711_0.hideO
mm_menu_1008114711_0.bgCol
mm_menu_1008114711_0.menuB
mm_menu_1008114711_0.menuL
mm_menu_1008114711_0.menuB
window.mm_menu_1008115821_
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.addMe
mm_menu_1008115821_0.hideO
mm_menu_1008115821_0.bgCol
mm_menu_1008115821_0.menuB
mm_menu_1008115821_0.menuL
mm_menu_1008115821_0.menuB
window.mm_menu_1008120230_
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.addMe
mm_menu_1008120230_0.hideO
mm_menu_1008120230_0.bgCol
mm_menu_1008120230_0.menuB
mm_menu_1008120230_0.menuL
mm_menu_1008120230_0.menuB
window.mm_menu_1008131452_
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.addMe
mm_menu_1008131452_0.hideO
mm_menu_1008131452_0.bgCol
mm_menu_1008131452_0.menuB
mm_menu_1008131452_0.menuL
mm_menu_1008131452_0.menuB
window.mm_menu_1008193622_
mm_menu_1008193622_0.addMe
mm_menu_1008193622_0.addMe
mm_menu_1008193622_0.hideO
mm_menu_1008193622_0.bgCol
mm_menu_1008193622_0.menuB
mm_menu_1008193622_0.menuL
mm_menu_1008193622_0.menuB
window.mm_menu_1013175119_
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.addMe
mm_menu_1013175119_0.hideO
mm_menu_1013175119_0.bgCol
mm_menu_1013175119_0.menuB
mm_menu_1013175119_0.menuL
mm_menu_1013175119_0.menuB
mm_menu_1013175119_0.write
} // mmLoadMenus()
<!--
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.l
document[changeImages.argu
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
about_over = newImage("images/home/abou
doctors_over = newImage("images/home/doct
pated_over = newImage("images/home/pate
appreq_over = newImage("images/home/appr
career_over = newImage("images/home/care
news_over = newImage("images/home/news
preloadFlag = true;
}
}
// -->
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_pre
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&p
d=parent.frames[n.substrin
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;
for(i=0;!x&&d.layers&&id.l
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arg
if ((x=MM_findObj(a[i]))!=nul
}
//-->
function MM_showMenu(menu, x, y, child, imgname) {
if (!window.mmWroteMenu) return;
MM_clearTimeout();
if (menu) {
var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
x = moveXbySlicePos (x, obj);
y = moveYbySlicePos (y, obj);
}
if (document.layers) {
if (menu) {
var l = menu.menuLayer || menu;
l.top = l.left = 1;
hideActiveMenus();
if (this.visibility) l = this;
window.ActiveMenu = l;
} else {
var l = child;
}
if (!l) return;
for (var i=0; i<l.layers.length; i++) {
if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
if (l.layers[i].document.laye
}
if (l.parentLayer) {
if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
if (l.parentLayer.isContainer
l.Menu.xOffset = window.pageXOffset;
l.Menu.yOffset = window.pageYOffset;
l.parentLayer.clip.width = window.ActiveMenu.clip.wid
l.parentLayer.clip.height = window.ActiveMenu.clip.hei
if (l.parentLayer.menuContain
}
}
l.visibility = "inherit";
if (l.Menu) l.Menu.container.visibilit
} else if (FIND("menuItem0")) {
var l = menu.menuLayer || menu;
hideActiveMenus();
if (typeof(l) == "string") l = FIND(l);
window.ActiveMenu = l;
var s = l.style;
s.visibility = "inherit";
if (x != "relative") {
s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
s.left = s.pixelLeft + 'px';
}
if (y != "relative") {
s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
s.top = s.pixelTop + 'px';
}
l.Menu.xOffset = document.body.scrollLeft;
l.Menu.yOffset = document.body.scrollTop;
}
if (menu) window.activeMenus[window.
MM_clearTimeout();
}
function MM_startTimeout() {
if( window.ActiveMenu ) {
mmStart = new Date();
mmDHFlag = true;
mmHideMenuTimer = setTimeout("mmDoHide()", window.ActiveMenu.Menu.hid
}
}
//-->
</SCRIPT><LINK rel="stylesheet" href="http://calarts.edu/redcat/code/redcat_text2.css" type="text/css">
<SCRIPT language="JavaScript" src="http://calarts.edu/redcat/code/mm_menu.js"></SCRIPT>
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<SCRIPT language="JavaScript1.2">m
<TABLE bgcolor="#CCCCCC" border="0" cellpadding="0" cellspacing="0" width="748">
<TR>
<TD valign="top" align="left" background="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r5_c1.gif">
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="26">
<TR>
<TD><IMG name="1" src="http://calarts.edu/images/redcat/mg/mgleftstripe.gif" width="26" height="582" border="0"></TD>
</TR>
<TR>
<TD><IMG name="2" src="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r5_c1.gif" width="26" height="700" border="0"></TD>
</TR>
</TABLE></TD>
<TD valign="top" align="left">
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="722">
<TR>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="722">
<TR>
<TD><IMG name="3" src="http://calarts.edu/images/redcat/mg/mgsecondaryitems_r1_c2.gif" width="41" height="212" border="0"></TD>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="507">
<TR>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="507" height="60">
<TR>
<TD>
<TABLE width=507 border=0 cellpadding=0 cellspacing=0>
<TR>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=47 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=4 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=61 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=7 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=49 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=2 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=42 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=4 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=79 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=52 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=63 height=0></TD>
<TD><IMG src="http://calarts.edu/images/redcat/main/spacer.gif" width=97 height=0></TD>
</TR>
<TR>
<TD COLSPAN=12><IMG src="http://calarts.edu/images/redcat/main/menu3_01.gif" width=507 height=19></TD>
</TR>
<TR> <!--red fixed link-->
<TD><A href="http://redcatweb.org/contact.html" onMouseOver="MM_swapImage(
<TD COLSPAN=3><A href="http://redcatweb.org/mailinglist.html" onMouseOver="MM_swapImage(
<TD><A href="http://redcatweb.org/sitemap.html" onMouseOver="MM_swapImage(
<TD COLSPAN=3><A href="http://redcatweb.org/search.html" onMouseOver="MM_swapImage(
<TD COLSPAN=4><IMG src="http://calarts.edu/images/redcat/main/menu3_06.gif" width=291 height=15></TD>
</TR>
<TR>
<TD COLSPAN=12><IMG src="http://calarts.edu/images/redcat/main/menu3_07.gif" width=507 height=5></TD>
</TR>
<TR> <!--main navigation-->
<TD COLSPAN=2><A onMouseOver="MM_showMenu(w
<TD><A onMouseOver="MM_showMenu(w
<TD COLSPAN=3><A onMouseOver="MM_showMenu(w
<TD><A href="" onMouseOver="MM_showMenu(w
<TD COLSPAN=2><A onMouseOver="MM_showMenu(w
<TD><A onMouseOver="MM_showMenu(w
<TD><A onMouseOver="MM_showMenu(w
<TD ROWSPAN=2><IMG src="http://calarts.edu/images/redcat/main/menu3_15.gif" width=97 height=20></TD>
</TR>
<TR>
<TD COLSPAN=11><IMG src="http://calarts.edu/images/redcat/main/menu3_16.gif" width=410 height=7></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE> <!--here--></TD>
</TR>
<TR>
<TD><IMG name="rc" src="http://calarts.edu/images/redcat/mg/mgredcat.gif" width="507" height="152" border="0"></TD>
</TR>
</TABLE></TD>
<TD>
<TABLE bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="174">
<TR>
<TD><A href="http://redcatweb.org/" onMouseOut="MM_swapImgRest
</TR>
<TR>
<TD><IMG name="rcl" src="http://calarts.edu/images/redcat/mg/mgredcatleg.gif" width="174" height="98" border="0"></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE><BR>
<!--- <CFQUERY datasource="calartscalenda
Select EventName, EventDescription, Calendar_ID, CalendarDate From calendar Where CalendarDate >= #CreateODBCDate(monthstart
</CFQUERY>
<CFSET Lst_EventName = Replace(ValueList(SearchRe
<CFSET Lst_EventDescription = Replace(ValueList(SearchRe
<CFSET Lst_Calendar_ID = ValueList(SearchResults.Ca
<CFSET Lst_CalendarDate = ValueList(SearchResults.Ca
<CFPARAM NAME="curr_date" DEFAULT="#CreateDate(Year(
<CFSET Lst_EventName = "Event 1~Event 2~ Event 3">
<CFSET Lst_EventDescription = "Event 1 Desc~Event 2 Desc~Event 3 Desc">
<CFSET Lst_Calendar_ID = "1~2~3">
<CFSET Lst_CalendarDate = "5/10/2003~10/10/2003~25/1
<CFSET Lst_CalendarDay = "">
<CFLOOP FROM="1" TO="#ListLen(Lst_CalendarD
<CFSET Lst_CalendarDay = ListAppend(Lst_CalendarDay
</CFLOOP>
<TABLE width="722" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD align="left" valign="top" width="41"> </TD>
<TD align="left" valign="top" width="630"><BR>
<TABLE width="558" border="0" cellspacing="0" cellpadding="2">
<TR>
<TD align="left">
<SPAN class="calendarbold_big"><
<TD align="right">
<SPAN class="calendarbold_big"><
</TR>
</TABLE><BR>
<TABLE width="600" border="0" cellspacing="0" cellpadding="4">
<TR align="left">
<TD valign="top" width="78" height=""><SPAN class="calendarbold"><FONT
<TD valign="top" width="2" height="0"></TD>
<TD valign="top" width="78" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="2" height="0"></TD>
<TD valign="top" width="78" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="2" height="0"></TD>
<TD valign="top" width="78" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="2" height="0"></TD>
<TD valign="top" width="78" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="2" height="0"></TD>
<TD valign="top" width="78" height="0"><SPAN class="calendarbold"><FONT
<TD valign="top" width="2" height="0"></TD>
<TD valign="top" width="78" height="0"><SPAN class="calendarbold"><FONT
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" width="78" height="2"></TD>
<TD align="left" valign="top" width="2" height="2"></TD>
<TD align="left" valign="top" width="78" height="2"></TD>
<TD align="left" valign="top" width="2" height="2"></TD>
<TD align="left" valign="top" width="78" height="2"></TD>
<TD align="left" valign="top" width="2" height="2"></TD>
<TD align="left" valign="top" width="78" height="2"></TD>
<TD align="left" valign="top" width="2" height="2"></TD>
<TD align="left" valign="top" width="78" height="2"></TD>
<TD align="left" valign="top" width="2" height="2"></TD>
<TD align="left" valign="top" width="78" height="2"></TD>
<TD align="left" valign="top" width="2" height="2"></TD>
<TD align="left" valign="top" width="78" height="2"></TD>
</TR>
<TR>
<!--- just change curr_date value as per date passed --->
<CFSET I_ROWCNT = 1>
<CFSET I_ROWNO = 1><!--- WILL HOLD THE N0 0F ROWS DISPLAYED IN CALENDAR. --->
<CFLOOP FROM="1" TO="#Evaluate(DayOfWeek(Cr
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"> 
<TD align="left" valign="top" width="2" height="80"> </TD>
</CFLOOP>
<CFSET I_ROWCNT = I_EMPTY>
<CFLOOP FROM="1" TO="#DaysInMonth(Curr_Date
<CFIF ListFindNoCase(Lst_Calenda
<TD bgcolor="#F1E39E" align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"><CFOU
<SPAN class="frontcopy"><A href="showevent.cfm?CalID=
<CFELSE>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"><CFOU
</CFIF>
<TD align="left" valign="top" width="2" height="80"> </TD>
<CFIF I_ROWCNT MOD 7 EQ 0>
</TR>
<TR bgcolor="#FFFFFF">
<TD align="left" valign="top" colspan="13" height="2"></TD>
</TR>
<TR>
<CFSET I_ROWNO = IncrementValue(I_ROWNO)>
</CFIF>
<CFSET I_ROWCNT = IncrementValue(I_ROWCNT)>
</CFLOOP>
</TR>
<CFIF I_ROWNO LT 6><!--- hide this row in no. of rows is 6 --->
<TR>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
<TD align="left" valign="top" width="2" height="80"></TD>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
<TD align="left" valign="top" width="2" height="80"></TD>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
<TD align="left" valign="top" width="2" height="80"></TD>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
<TD align="left" valign="top" width="2" height="80"></TD>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
<TD align="left" valign="top" width="2" height="80"></TD>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
<TD align="left" valign="top" width="2" height="80"></TD>
<TD align="left" valign="top" width="78" height="80"><SPAN class="calendarbold"></SPA
</TR>
</CFIF>
</TABLE></TD>
</TR>
</TABLE>
<CENTER><IMG src="http://calarts.edu/images/redcat/buildings/seasondarkgray.gif" width="640" height="359" alt="" border="0"></CENTER></TD>
</TR>
</TABLE>
</BODY>
</HTML>
NB: I think the problem with ur code is in >> << part, u must not be passing the curr_date value when ever u click these..
curr_date is important for the code to wok propely., u will never get an error if it is not passed because, i have set a cfparam curr_date as current date.
since october as 31 days it will always show u 31 days if u don't pass the curr_date accordingly..
first u try this and then i will help u with the formating :-)
and don't worry my codes are never faulty ;-)
Regards
Hart