fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16457]


From: nelson . guerra
Subject: [Fmsystem-commits] [16457]
Date: Fri, 17 Mar 2017 23:59:27 -0400 (EDT)

Revision: 16457
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16457
Author:   nelson224
Date:     2017-03-17 23:59:27 -0400 (Fri, 17 Mar 2017)
Log Message:
-----------


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

Modified: branches/dev-syncromind-2/property/inc/class.uireport.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uireport.inc.php       
2017-03-18 03:59:13 UTC (rev 16456)
+++ branches/dev-syncromind-2/property/inc/class.uireport.inc.php       
2017-03-18 03:59:27 UTC (rev 16457)
@@ -40,7 +40,8 @@
                        'add' => true,
                        'edit' => true,
                        'save' => true,
-                       'delete' => true,                       
+                       'delete' => true,       
+                       'get_columns' => true,
                        'download' => true
                );
 
@@ -216,6 +217,15 @@
                                'id' => $id
                        );
                        
+                       $views = $this->bo->get_views();
+                       foreach ($views as $view)
+                       {
+                               $list[] = array('id' => $view['name'], 'name' 
=> $view['name']);
+                       }
+                       
+                       $default_value = array('id' => '', 'name' => 
lang('Select'));
+                       array_unshift($list, $default_value);
+                       
                        $tabs = array();
                        $tabs['generic'] = array('label' => lang('generic'), 
'link' => '#generic');
                        $active_tab = 'generic';
@@ -226,6 +236,7 @@
                                'editable' => $mode == 'edit',
                                'form_action' => 
$GLOBALS['phpgw']->link('/index.php', $link_data),
                                'cancel_action' => 
$GLOBALS['phpgw']->link('/index.php', array('menuaction' => 
'property.uireport.index')),
+                               'views' => array('options' => $list),
                                'tabs' => 
phpgwapi_jquery::tabview_generate($tabs, $active_tab)
                        );
 
@@ -249,4 +260,14 @@
                        
                        return $this->jquery_results($result_data);
                }
+               
+               public function get_columns()
+               {
+                       $view = phpgw::get_var('view');
+
+                       $columns = $this->bo->get_columns($view);
+                       
+                       return $columns;
+               }
+               
        }
\ No newline at end of file




reply via email to

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