3 Nov 2006 01:56
preventing users from booking too far in advance (another request)
David Sam Butler <DAButler <at> riverview.nsw.edu.au>
2006-11-03 00:56:36 GMT
2006-11-03 00:56:36 GMT
Hi guys,
thanks again for the help with this, however now one of my area admins has she needs to be able to book ahead more than two weeks and I don't want her to give her full admin rights to the whole of mrbs, so can this be done easily or is it a bigger issue....?
thanks again,
sam
>>> pgreer+ <at> pitt.edu 27/10/2006 9:35:51 pm >>>
in mrbs_sql.inc under the mrbsCheckFree() function,
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 ----------
$user = getUserName();
$usr_level = authGetUserLevel($user, $auth["admin"]);
$Fourmonth = mktime (0,0,0,date("m")+4,date("d"),date("Y"));
if ($usr_level != 2 && $starttime > $Fourmonth){
$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 Oct 27, 2006, at 2:28 AM, David Sam Butler wrote:
Hi All,My boss wants to stop users from booking rooms more than 2 weeks in advance. could anyone help with this. I've looked in the mailing list archives and can't find anything...thanks in advance,sam
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this e-mail in error please notify the
originator of the message.
Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Saint Ignatius' College, Riverview.
Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software and RBL Scanning is performed by www.spamhous.org-------------------------------------------------------------------------Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimomrbs-general mailing list
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software. |
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the originator of the message. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Saint Ignatius' College, Riverview. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software and RBL Scanning is performed by www.spamhous.org |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ mrbs-general mailing list mrbs-general <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mrbs-general
RSS Feed