Revision: 1247
http://mrbs.svn.sourceforge.net/mrbs/?rev=1247&view=rev
Author: cimorrison
Date: 2009-11-10 11:29:47 +0000 (Tue, 10 Nov 2009)
Log Message:
-----------
Month view now shows provisional bookings with a distinct styling
Modified Paths:
--------------
mrbs/branches/provisional_bookings/web/month.php
Modified: mrbs/branches/provisional_bookings/web/month.php
===================================================================
--- mrbs/branches/provisional_bookings/web/month.php 2009-11-10 11:20:20 UTC
(rev 1246)
+++ mrbs/branches/provisional_bookings/web/month.php 2009-11-10 11:29:47 UTC
(rev 1247)
@@ -296,7 +296,7 @@
for ($day_num = 1; $day_num<=$days_in_month; $day_num++)
{
$sql = "SELECT start_time, end_time, id, name, type,
- private, create_by
+ status, private, create_by
FROM $tbl_entry
WHERE room_id=$room
AND start_time <= $midnight_tonight[$day_num] AND end_time >
$midnight[$day_num]
@@ -354,7 +354,7 @@
}
$d[$day_num]["is_private"][] = $private;
-
+ $d[$day_num]["status"][] = $row['status'];
$d[$day_num]["color"][] = $row['type'];
// Describe the start and end time, accounting for "all day"
@@ -579,6 +579,10 @@
// give the enclosing div the appropriate width: full width if both,
// otherwise half-width (but use 49.9% to avoid rounding problems in
some browsers)
$class = $d[$cday]["color"][$i];
+ if ($d[$cday]["status"][$i] == STATUS_PROVISIONAL)
+ {
+ $class .= " provisional";
+ }
if ($d[$cday]["is_private"][$i])
{
$class .= " private";
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits