fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15440]


From: nelson . guerra
Subject: [Fmsystem-commits] [15440]
Date: Wed, 10 Aug 2016 01:02:06 +0000 (UTC)

Revision: 15440
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15440
Author:   nelson224
Date:     2016-08-10 01:02:06 +0000 (Wed, 10 Aug 2016)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php

Modified: 
branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php    
2016-08-10 01:01:10 UTC (rev 15439)
+++ branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php    
2016-08-10 01:02:06 UTC (rev 15440)
@@ -76,8 +76,9 @@
                {
                        $values = array();
                        $get_identificator = true;
+                       $location_code = phpgw::get_var('location_code');
                        
-                       $components = 
$GLOBALS['phpgw']->session->appsession('components', 'property');
+                       $components_added = 
$GLOBALS['phpgw']->session->appsession('components', 'property');
                        
                        //$query = '+VZ=330.0001-UZ0010T - Sprinklerhoder';
                        //$values = $this->get_component($query);
@@ -95,6 +96,13 @@
                                $data[$row[0]][] = $row[(count($row)-1)];
                        }
                        
+                       $data_generic = array();
+                       foreach ($data as $k => $v) 
+                       {
+                               $data_generic[$k]['ids'] = 
$components_added[$k];
+                               $data_generic[$k]['files'] = $v;
+                       }
+                       
                        /*foreach ($data as $k => $v)
                        {
                                if (!empty($k))
@@ -105,7 +113,9 @@
                                }
                        }*/
                        
-                       print_r($data); die;
+                       
+                       print_r($data_generic); die;
+                       
                        /*require_once PHPGW_SERVER_ROOT . 
"/property/inc/import/server/php/UploadHandler.php";
                        $options['upload_dir'] = 
$GLOBALS['phpgw_info']['server']['files_dir'];
                        $options['script_url'] = 
$GLOBALS['phpgw']->link('/index.php', array('menuaction' => 
'property.uiimport_components.delete_file_upload'));
@@ -128,7 +138,6 @@
                        $get_identificator = false;
 
                        $location_code = phpgw::get_var('location_code');
-                       $location_code = (!empty($location_code)) ? 
explode('-', $location_code) : '';
                        
                        $entity_categories_in_xml = array();
 
@@ -161,13 +170,9 @@
                                        array('name' => 'benevnelse', 'value' 
=> trim($post['Egenskaper']['Egenskap']['Verdi'])),
                                        array('name' => 'beskrivelse', 'value' 
=> trim($post['Tekst']['Uformatert']))
                                );
-
-                               
//$buildingpart_in_xml[$post['Postnrdeler']['Postnrdel'][1]['Kode']] = 
$post['Postnrdeler']['Postnrdel'][1]['Kode'];
                        }
 
-                       //echo '<li class="info">Import: finished step ' . 
print_r($buildingpart) . '</li>';
 
-
                        require_once PHPGW_SERVER_ROOT . 
"/property/inc/import/import_update_components.php";
 
                        $import_components = new import_components();
@@ -224,7 +229,8 @@
                        
                        $GLOBALS['phpgw']->session->appsession('components', 
'property', $components_added);
 
-                       print_r($entity_categories_in_xml); die;
+                       echo count($components_added).'<br><br>';
+                       print_r($components_added); die;
 
                }
                
@@ -257,8 +263,9 @@
                {
                        $tabs = array();
                        $tabs['locations'] = array('label' => 
lang('Locations'), 'link' => '#locations');
-                       $tabs['upload_components'] = array('label' => 
lang('Components'), 'link' => '#upload_components', 'disable' => 1);
-                       $tabs['upload_files'] = array('label' => lang('Files'), 
'link' => '#upload_files', 'disable' => 0);
+                       $tabs['components'] = array('label' => 
lang('Components'), 'link' => '#components', 'disable' => 1);
+                       $tabs['files'] = array('label' => lang('Files'), 'link' 
=> '#files', 'disable' => 0);
+                       $tabs['relations'] = array('label' => 
lang('Relations'), 'link' => '#relations', 'disable' => 0);
                        
                        $active_tab = 'locations';
 




reply via email to

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