Re: [MRBS-general] Putting restrictions on recurring bookings
Brought to you by:
jberanek
From: Phil G. <pg...@pi...> - 2007-04-18 13:00:00
|
this has come up many times before... here is the definitive code snippet. in mrbs_sql.inc under the mrbsCheckFree() function, after the variables are defined, add a new variable for me it is called $Fourmonth because I do not want people scheduling out to infinity. Four Months is enough advance notice. then the if statement below that states that if you are not admin and it is over four months from now you cannot book this slot. have fun.... --------begin snippet ---------- $Fourmonth = mktime (0,0,0,date("m")+4,date("d"),date("Y")); if (($starttime > $Fourmonth) && !getAuthorised(2)){ $err = " You cannot schedule anything more than 4 months in advance.<BR> "; return $err; } # Select any meetings which overlap ($starttime,$endtime) for this room: --------end snippet ---------- -Phil Greer On Apr 18, 2007, at 6:32 AM, Amod Phadke wrote: > Hi All, > > This is= my first post to the newsgroup. I am trying to find > solution for one particular problem. > > We are u= sing MRBS for conference room booking for more than 4 > years now. The system works just= fine. But people do recursive > booking for very long duration (sometimes more= than an year) which > blocks other users from utilizing the rooms. > > Can I pu= t some restrictions on recurring booking so that the user > should not be able to boo= k the room for more than 3 months ? > > Any help= in this regard will be appreciated. > > > Regards, > Amod Phadke > DISCLAIMER=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= This e-mail may > contain privileged and confidential information which is the= > property of Persistent Systems Pvt. Ltd. It is intended only for > the use of= the individual or entity to which it is addressed. If > you are not the inten= ded recipient, you are not authorized to > read, retain, copy, print, distribu= te or use this message. If you > have received this communication in error, pl= ease notify the > sender and delete all copies of this message. Persistent Sys= tems > Pvt. Ltd. does not accept any liability for virus infected mails. > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > mrbs-general mailing list > mrb...@li... > https://lists.sourceforge.net/lists/listinfo/mrbs-general |