fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10932] rental - property integration


From: Sigurd Nes
Subject: [Fmsystem-commits] [10932] rental - property integration
Date: Sat, 23 Feb 2013 17:51:53 +0000

Revision: 10932
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10932
Author:   sigurdne
Date:     2013-02-23 17:51:52 +0000 (Sat, 23 Feb 2013)
Log Message:
-----------
rental - property integration

Modified Paths:
--------------
    trunk/rental/inc/class.uiproperty_location.inc.php

Modified: trunk/rental/inc/class.uiproperty_location.inc.php
===================================================================
--- trunk/rental/inc/class.uiproperty_location.inc.php  2013-02-22 14:24:53 UTC 
(rev 10931)
+++ trunk/rental/inc/class.uiproperty_location.inc.php  2013-02-23 17:51:52 UTC 
(rev 10932)
@@ -28,8 +28,12 @@
                        $sort_ascending = phpgw::get_var('dir') == 'desc' ? 
false : true;
                        
                        $property_bolocation =  new property_bolocation();
+                       $property_bolocation->order = $sort_field;
+                       $property_bolocation->sort = phpgw::get_var('dir');
+                       $property_bolocation->start = $start_index;
                        
-                       if($search_type == 'gab'){
+                       if($search_type == 'gab')
+                       {
                                $q = phpgw::get_var('query');
                                $query = explode('/', $q);
                                //GAB search
@@ -43,7 +47,8 @@
                                
                                //var_dump($gabinfo);
                                
-                               foreach ($gabinfo as $gabelement){
+                               foreach ($gabinfo as $gabelement)
+                               {
                                        $row = 
$property_bolocation->read_single($gabelement['location_code']);
                                        $row['gab'] = 
rental_uicommon::get_nicely_formatted_gab_id($gabelement['gab_id']);  
                                        $rows[] = $row;
@@ -51,15 +56,16 @@
                                        //TODO: Add gabno for element 
                                }
                        }
-                       else{
+                       else
+                       {
                                if(!isset($type_id) || $type_id < 1)
                                {
                                        $type_id = 2;
                                }
                                $user_rows_per_page = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'];
-                               $property_bolocation->start = $start_index;
                                $tmp_count = phpgw::get_var('results', 'int', 
'GET', 0);
-                               if(isset($tmp_count) && $tmp_count > 0){
+                               if(isset($tmp_count) && $tmp_count > 0)
+                               {
                                        
$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'] = 
$num_of_objects;
                                }
                                $rows_total = 
$property_bolocation->read(array('type_id' => $type_id, 'allrows' => true));
@@ -103,4 +109,4 @@
                        
                }
        }
-?>
\ No newline at end of file
+?>




reply via email to

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