fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14636] more on bookingfrontend


From: Sigurd Nes
Subject: [Fmsystem-commits] [14636] more on bookingfrontend
Date: Wed, 13 Jan 2016 09:56:45 +0000

Revision: 14636
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14636
Author:   sigurdne
Date:     2016-01-13 09:56:44 +0000 (Wed, 13 Jan 2016)
Log Message:
-----------
more on bookingfrontend

Modified Paths:
--------------
    branches/dev-syncromind/booking/inc/class.soresource.inc.php
    branches/dev-syncromind/bookingfrontend/inc/class.bosearch.inc.php

Modified: branches/dev-syncromind/booking/inc/class.soresource.inc.php
===================================================================
--- branches/dev-syncromind/booking/inc/class.soresource.inc.php        
2016-01-12 18:55:24 UTC (rev 14635)
+++ branches/dev-syncromind/booking/inc/class.soresource.inc.php        
2016-01-13 09:56:44 UTC (rev 14636)
@@ -194,7 +194,7 @@
 //                             $conditions = $conditions . ' OR ' . implode(' 
OR ', $_conditions);
 //                     }
                        $conditions =  implode(' OR ', $_conditions);
-                       _debug_array($conditions);
+//                     _debug_array($conditions);
                        return $conditions;
                }
        }
\ No newline at end of file

Modified: branches/dev-syncromind/bookingfrontend/inc/class.bosearch.inc.php
===================================================================
--- branches/dev-syncromind/bookingfrontend/inc/class.bosearch.inc.php  
2016-01-12 18:55:24 UTC (rev 14635)
+++ branches/dev-syncromind/bookingfrontend/inc/class.bosearch.inc.php  
2016-01-13 09:56:44 UTC (rev 14636)
@@ -78,7 +78,9 @@
                                                $bui['homepage'] = 'http://' . 
$bui['homepage'];
                                        }
                                }
+                               unset($bui);
                        }
+//                     _debug_array($bui_result);
 
                        if(in_array('organization', $types))
                        {
@@ -135,6 +137,7 @@
                                        "dir" => "asc", "filters" => 
$_filter_resource));
                                foreach($res_result['results'] as &$res)
                                {
+                                       
$_resource_buildings[$res['building_id']] = true;
                                        $res['name']                     = 
$res['building_name'] . ' / ' . $res['name'];
                                        $res['type']                     = 
"resource";
                                        $res['link']                     = 
$GLOBALS['phpgw']->link('/bookingfrontend/', array('menuaction' => 
'bookingfrontend.uiresource.show',
@@ -143,8 +146,26 @@
                                        $res['img_url']                  = 
$GLOBALS['phpgw']->link('/bookingfrontend/', array('menuaction' => 
'bookingfrontend.uidocument_resource.index_images',
                                                'filter_owner_id' => 
$res['id'], 'phpgw_return_as' => 'json', 'results' => '1'));
                                }
+
+                               if($bui_result)
+                               {
+                                       $_bui_result = array(
+                                               'total_records' => 
count($_resource_buildings),
+                                               'start' => $bui_result['start'],
+                                               'sort' => $bui_result['sort'],
+                                               'dir' => $bui_result['dir']
+                                       );
+                                       foreach($bui_result['results'] as $bui)
+                                       {
+                                               
if(in_array($bui['id'],$_resource_buildings ))
+                                               {
+                                                       
$_bui_result['results'][] = $bui;
+                                               }
+                                       }
+                                       $bui_result = $_bui_result;
+                               }
                        }
-
+//                     _debug_array($res_result);
                        if(in_array('event', $types))
                        {
                                $now                             = 
date('Y-m-d');




reply via email to

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