fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11383] bkbooking: stavanger update to calendar


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [11383] bkbooking: stavanger update to calendar
Date: Mon, 21 Oct 2013 09:19:00 +0000

Revision: 11383
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11383
Author:   kjell
Date:     2013-10-21 09:18:59 +0000 (Mon, 21 Oct 2013)
Log Message:
-----------
bkbooking: stavanger update to calendar

Modified Paths:
--------------
    branches/stavangerkommune/booking/inc/class.bobooking.inc.php
    branches/stavangerkommune/bookingfrontend/inc/class.uiallocation.inc.php
    branches/stavangerkommune/bookingfrontend/inc/class.uibooking.inc.php
    branches/stavangerkommune/bookingfrontend/setup/phpgw_no.lang

Modified: branches/stavangerkommune/booking/inc/class.bobooking.inc.php
===================================================================
--- branches/stavangerkommune/booking/inc/class.bobooking.inc.php       
2013-10-21 09:17:16 UTC (rev 11382)
+++ branches/stavangerkommune/booking/inc/class.bobooking.inc.php       
2013-10-21 09:18:59 UTC (rev 11383)
@@ -479,6 +479,7 @@
                        $new_bookings = array();
                        foreach($bookings as $b)
                        {
+                
                                $keep = true;
                                foreach($events as &$e)
                                {
@@ -487,7 +488,20 @@
                                           ($b['from_'] <= $e['from_'] && 
$b['to_'] >= $e['to_'])) && (array_intersect($b['resources'], $e['resources']) 
!= array()))
                                        {
                                                $keep = false;
+
                                                $e['conflicts'][] = $b;
+
+                        if ($b['from_'] < $e['from_'] && $b['to_'] < $e['to_'])
+                        {
+                            $b['to_'] = $e['from_'];                       
+                            $new_bookings[] = $b;        
+                        }
+                        if ($e['to_'] < $b['to_'])
+                        {
+                            $b['from_'] = $e['to_'];                       
+                            $new_bookings[] = $b;        
+                        }
+
                                                break;
                                        }
                                }

Modified: 
branches/stavangerkommune/bookingfrontend/inc/class.uiallocation.inc.php
===================================================================
--- branches/stavangerkommune/bookingfrontend/inc/class.uiallocation.inc.php    
2013-10-21 09:17:16 UTC (rev 11382)
+++ branches/stavangerkommune/bookingfrontend/inc/class.uiallocation.inc.php    
2013-10-21 09:18:59 UTC (rev 11383)
@@ -205,7 +205,8 @@
                                $this->flash_form_errors($errors);
                                self::add_javascript('booking', 'booking', 
'allocation.js');
                                $allocation['resources_json'] = 
json_encode(array_map('intval', $allocation['resources']));
-                               $allocation['cancel_link'] = 
self::link(array('menuaction' => 'bookingfrontend.uiallocation.show', 'id' => 
$allocation['id']));
+#                              $allocation['cancel_link'] = 
self::link(array('menuaction' => 'bookingfrontend.uiallocation.show', 'id' => 
$allocation['id']));
+                $allocation['cancel_link'] = self::link(array('menuaction' => 
'bookingfrontend.uibuilding.schedule', 'id' => $allocation['building_id'], 
'date' => $allocation['from_']));
                                $allocation['application_link'] = 
self::link(array('menuaction' => 'bookingfrontend.uiapplication.show', 'id' => 
$allocation['application_id']));
        
                                if ($step < 2) 

Modified: branches/stavangerkommune/bookingfrontend/inc/class.uibooking.inc.php
===================================================================
--- branches/stavangerkommune/bookingfrontend/inc/class.uibooking.inc.php       
2013-10-21 09:17:16 UTC (rev 11382)
+++ branches/stavangerkommune/bookingfrontend/inc/class.uibooking.inc.php       
2013-10-21 09:18:59 UTC (rev 11383)
@@ -803,7 +803,8 @@
                                $this->flash_form_errors($errors);
                                self::add_javascript('booking', 'booking', 
'booking.js');
                                $booking['resources_json'] = 
json_encode(array_map('intval', $booking['resources']));
-                               $booking['cancel_link'] = 
self::link(array('menuaction' => 'bookingfrontend.uibooking.show', 'id' => 
$booking['id']));
+#                              $booking['cancel_link'] = 
self::link(array('menuaction' => 'bookingfrontend.uibooking.show', 'id' => 
$booking['id']));
+                $booking['cancel_link'] = self::link(array('menuaction' => 
'bookingfrontend.uibuilding.schedule', 'id' => $booking['building_id'], 'date' 
=> $booking['from_']));
                                $booking['booking_link'] = 
self::link(array('menuaction' => 'bookingfrontend.uibooking.show', 'id' => 
$booking['id']));
        
                                if ($step < 2) 

Modified: branches/stavangerkommune/bookingfrontend/setup/phpgw_no.lang
===================================================================
--- branches/stavangerkommune/bookingfrontend/setup/phpgw_no.lang       
2013-10-21 09:17:16 UTC (rev 11382)
+++ branches/stavangerkommune/bookingfrontend/setup/phpgw_no.lang       
2013-10-21 09:18:59 UTC (rev 11383)
@@ -351,7 +351,7 @@
 Delete information     bookingfrontend no      Hvis du kun skal slette 
tildeling på valgt dato, velg Slett-knappen nederst og tiden blir vist som 
ledig i kalenderen, og kan tildeles andre klubber/org.
 Delete information2    bookingfrontend no      Skal du slette flere kan du 
velge Ut sesong eller Slett til og velg en dato, du kan også velge intervall 
(f.eks. annen hver uke).
 Booking Delete information     bookingfrontend no      Hvis du skal slette 
booking på valgt dato, velg Slett-knappen nederst. Skal tiden bli vist som 
ledig i kalenderen krysser du av for slett tildeling.
-Booking  Delete information2   bookingfrontend no      Skal du slette flere 
kan du velge Ut sesong eller Slett til og velg en dato, du kan også velge 
intervall (f.eks. annen hver uke).
+Booking Delete information2    bookingfrontend no      Skal du slette flere 
kan du velge Ut sesong eller Slett til og velg en dato, du kan også velge 
intervall (f.eks. annen hver uke).
 Cancel information     bookingfrontend no      Hvis du kun skal avbestille 
tildeling på valgt dato, velg Avbestill-knappen nederst og tiden blir vist som 
ledig i kalenderen, og kan tildeles andre klubber/org. 
 Cancel information2    bookingfrontend no      Skal du Avbestille flere kan du 
velge Ut sesong eller Slett til og velg en dato, du kan også velge intervall 
(f.eks. annen hver uke).
 Booking Cancel information     bookingfrontend no      Hvis du skal avbestille 
booking på valgt dato, velg Avbestill-knappen nederst. Skal tiden bli vist som 
ledig i kalenderen krysser du av for slett tildeling.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]