|
From: creedon <icr...@us...> - 2005-08-13 20:35:58
|
Update of /cvsroot/frontierkernel/odbs/mainResponderRoot/mainResponder/calendar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20650 Modified Files: getLinks Log Message: changed maxDate = nil to maxDate == nil, in case it is ever uncommented Index: getLinks =================================================================== RCS file: /cvsroot/frontierkernel/odbs/mainResponderRoot/mainResponder/calendar/getLinks,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** getLinks 26 Mar 2005 21:45:20 -0000 1.1.1.1 --- getLinks 13 Aug 2005 20:35:49 -0000 1.2 *************** *** 1,3 **** FrontierVcsFile:1:scpt:mainResponder.calendar.getLinks ! on getLinks (adrCal, theDate, url, startTime=mainResponder.calendar.getFirstDay (adrCal), maxDate=nil) { ÇGet next month and prev month links for a calendar for this day ÇChanges: ÇMon, 01 Mar 1999 13:01:37 GMT by AR ÇChanged startTime parameter to default to mainResponder.calendar.getFirstDay(adrCal) instead of date("4/1/97") Ç02/08/00; 10:59:25 AM by PBS ÇWhen building the link to the next month, start at the end of the next month, and work backward in time until a day is found. Ç04/03/00; 10:39:29 AM by PBS ÇmaxDate is a new optional parameter, needed to support time zones in Manila. If maxDate is not supplied, the default is clock.now (). Ç03/20/01; 5:01:38 PM by PBS ÇUse the new routines for getting links to prev and next months. These routines avoid looping, and skip empty months. Çon getLink (d, flForwardInTime) Çif maxDate == nil //PBS 04/02/00: maxDate is a new optional parameter needed for time zone support in Manila ÇmaxDate == clock.now () Çif d > maxDate Çd = maxDate Ç Çreturn (mainResponder.calendar.getLink (adrCal, d, url, flForwardInTime, startTime, maxDate)) local (htmlText = "", indentLevel = 0); on add (s) { htmlText = htmlText + string.filledString ("\t", indentLevel) + s + "\r"}; add ("<center><font size=\"-2\"><b>"); indentLevel++; Çadd (getLink (date.lastOfMonth (date.prevMonth (theDate)), false)) add (mainResponder.calendar.getLinkToPrevMonth (adrCal, theDate, url)); //PBS 03/20/01: faster script for getting link to next month -- plus it skips months as needed add (" "); Çadd (getLink (date.lastOfMonth (date.nextMonth (theDate)), false)) //PBS 02/08/00: start at the end of the next month and work backward in time. add (mainResponder.calendar.getLinkToNextMonth (adrCal, theDate, url)); //PBS 03/20/01: faster script for getting link to next month -- plus it skips months as needed add ("</b></font></center>"); indentLevel--; return (htmlText)} \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:mainResponder.calendar.getLinks ! on getLinks (adrCal, theDate, url, startTime=mainResponder.calendar.getFirstDay (adrCal), maxDate=nil) { ÇGet next month and prev month links for a calendar for this day ÇChanges Ç8/13/05; 1:34:07 PM by TAC Çchanged maxDate = nil to maxDate == nil, in case it is ever uncommented ÇMon, 01 Mar 1999 13:01:37 GMT by AR ÇChanged startTime parameter to default to mainResponder.calendar.getFirstDay(adrCal) instead of date("4/1/97") Ç02/08/00; 10:59:25 AM by PBS ÇWhen building the link to the next month, start at the end of the next month, and work backward in time until a day is found. Ç04/03/00; 10:39:29 AM by PBS ÇmaxDate is a new optional parameter, needed to support time zones in Manila. If maxDate is not supplied, the default is clock.now (). Ç03/20/01; 5:01:38 PM by PBS ÇUse the new routines for getting links to prev and next months. These routines avoid looping, and skip empty months. Çon getLink (d, flForwardInTime) Çif maxDate == nil //PBS 04/02/00: maxDate is a new optional parameter needed for time zone support in Manila ÇmaxDate = clock.now () Çif d > maxDate Çd = maxDate Ç Çreturn (mainResponder.calendar.getLink (adrCal, d, url, flForwardInTime, startTime, maxDate)) local (htmlText = "", indentLevel = 0); on add (s) { htmlText = htmlText + string.filledString ("\t", indentLevel) + s + "\r"}; add ("<center><font size=\"-2\"><b>"); indentLevel++; Çadd (getLink (date.lastOfMonth (date.prevMonth (theDate)), false)) add (mainResponder.calendar.getLinkToPrevMonth (adrCal, theDate, url)); //PBS 03/20/01: faster script for getting link to next month -- plus it skips months as needed add (" "); Çadd (getLink (date.lastOfMonth (date.nextMonth (theDate)), false)) //PBS 02/08/00: start at the end of the next month and work backward in time. add (mainResponder.calendar.getLinkToNextMonth (adrCal, theDate, url)); //PBS 03/20/01: faster script for getting link to next month -- plus it skips months as needed add ("</b></font></center>"); indentLevel--; return (htmlText)} \ No newline at end of file |