Re: [MRBS-general] Repeat Bookings each 9 days
Brought to you by:
jberanek
From: Andrew S. <an...@st...> - 2004-03-30 00:20:46
|
Thanks for this. The tricky part is when adding 9 to a day makes it fall on a weekend, as then that day would be on the Monday. ie: Monday = day 1, Tuesday = day 2, Wednesday = day 3, Thursday = day 4, Friday = day 5, Monday = day 6, Tuesday = day 7, Thursday = day 1 . . . ============================= Andrew Sidebottom I.T. Support Officer St Stephen's School Carramar Campus =============================== 50 St Stephens Crescent Tapping WA 6065 =============================== PO BOX 246 Joondalup WA 6919 =============================== Phone = 9306 7100 Fax = 9307 7101 Email = an...@st... =============================== >>> Gavin Walker <ga...@th...> 30/03/04 4:44:29 am >>> A suggestion would be as follows: 1) in lang.en define a new rep_type after line 71 e.g. $vocab["rep_type_7"] = "7 day cycle"; 2) in mrbs_sql.inc add a new case statement to the function mrbsGetRepeatEntryList to handle your new rep_type after line 317 e.g. case 7: $day += 9; break; Line numbers are correct for code in cvs repository. I think that this may be all that is required. Note: I haven't tested this. Regards Gavin On Fri, 2004-03-26 at 02:54, Andrew Sidebottom wrote: > We have implemented the mrbs program in a school setting that runs on a > 7 day cycle. This means that we word on day 1, 2, 3, 4, 5, 6 & 7 > instead of Monday - Friday. So if a class is on a Monday one week it > will not be on again until Wed the following week. What I am needing to > do is modify the code so I can easily do this. Any suggestions?? > Pointers etc?? ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ mrbs-general mailing list mrb...@li... https://lists.sourceforge.net/lists/listinfo/mrbs-general |