Re: [MRBS-general] Administrator Background Colour
Brought to you by:
jberanek
From: Phil D. <pdu...@bt...> - 2007-07-27 09:44:14
|
Thanks John - This does exactly what I wanted! Phil Dunford ----Original Message---- From: jo...@re... Date: 25/07/2007 16:01 To: "General purpose list (support/developers/users)"<mrbs- ge...@li...> Subj: Re: [MRBS-general] Administrator Background Colour Phil Dunford wrote: > Does anyone know if there is a way of assigning a cell background colour > (as with internal and external) that only the administrator can use? > > This would be very useful to me so that users could see which bookings > are made by staff and which are block booked by the adminstrator. Adding something like the following near the top of edit_entry_handler.php should do it: if ($type == 'A' && !getAuthorised(2)) { print_header($day, $month, $year, $area); ?> <H1><?php echo get_vocab('invalid_booking'); ?></H1> You can't book a meeting of this type, you're not an administrator! </BODY> </HTML> <?php exit; } Where 'A' is the booking type you've set aside. You could also edit edit_entry.php to hide the 'A' option for non-administrators, if you like. John. -- John Beranek To generalise is to be an idiot. http://redux.org.uk/ -- William Blake ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ mrbs-general mailing list mrb...@li... https://lists.sourceforge.net/lists/listinfo/mrbs-general .. .. |