fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12206] prepare for tinybox on lookup


From: Sigurd Nes
Subject: [Fmsystem-commits] [12206] prepare for tinybox on lookup
Date: Sun, 19 Oct 2014 14:42:56 +0000

Revision: 12206
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12206
Author:   sigurdne
Date:     2014-10-19 14:42:56 +0000 (Sun, 19 Oct 2014)
Log Message:
-----------
prepare for tinybox on lookup

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

Modified: branches/dev-syncromind/property/inc/class.bolocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.bolocation.inc.php       
2014-10-19 14:05:18 UTC (rev 12205)
+++ branches/dev-syncromind/property/inc/class.bolocation.inc.php       
2014-10-19 14:42:56 UTC (rev 12206)
@@ -272,6 +272,9 @@
                                }
                        }
 
+                       $GLOBALS['phpgw']->js->validate_file( 'tinybox2', 
'packed', 'phpgwapi' );
+                       
$GLOBALS['phpgw']->css->add_external_file('phpgwapi/js/tinybox2/style.css');
+
                        $filter_location        = 
isset($data['filter_location']) ? $data['filter_location'] : '';
                        $block_query            = !!$filter_location;
                        $location_link          = 
"menuaction:'property.uilocation.index',lookup:1";
@@ -335,6 +338,7 @@
                                                        'filter_level'          
                => $i,
                                                        'link'                  
                        => $location_link .',type_id:' . ($i+1) . 
',lookup_name:' . $i,
                                                        'action'                
                        => 
'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");'
+//                                                     'action'                
                        => 'TINY.box.show({iframe:strURL, 
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
 mask:true, animate:true, close: true});'
                                                );
                                }
 //_debug_array($data['no_link']);
@@ -346,6 +350,7 @@
                                        
$location['location'][$i]['lookup_link']                                        
        = false;
                                        $lookup_functions[$i]['link']           
                                                        = $location_link 
.',type_id:' . ($data['no_link']-1) . ',lookup_name:' . ($data['no_link']-2);
                                        $lookup_functions[$i]['action']         
                                                        = 
'Window1=window.open(strURL,"Search","left=50,top=100,width=1000,height=700,toolbar=no,scrollbars=yes,resizable=yes");';
+//                                     $lookup_functions[$i]['action']         
                                                        = 
'TINY.box.show({iframe:strURL, 
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
 mask:true, animate:true, close: true});';
                                        $location['location'][$i]['statustext'] 
                                                = lang('click this link to 
select') . ' ' . $location_types[($data['no_link']-2)]['name'];
                                }
 
@@ -449,6 +454,7 @@
                                                                'filter_level'  
                        => $m,
                                                                'link'          
                                => $location_link .',lookup_tenant:1,type_id:' 
. $config[$j]['location_type'] . ',lookup_name:' . $i,
                                                                'action'        
                                => 
'Window1=window.open(strURL,"Search","left=50,top=100,width=1600,height=700,toolbar=no,scrollbars=yes,resizable=yes");'
+//                                                             'action'        
                                => 'TINY.box.show({iframe:strURL, 
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
 mask:true, animate:true, close: true});'
                                                        );
 
                                                
$location['location'][$i]['lookup_link']                        = $_lookup_link;
@@ -546,6 +552,7 @@
                                                        'name'                  
        => 'lookup_entity_' . $entity['id'] .'()',
                                                        'link'                  
        => 
"menuaction:'property.uilookup.entity',location_type:{$data['type_id']},entity_id:{$entity['id']},cat_id:'{$p_cat_id}',location_code:'{$filter_location}',block_query:'{$block_query}'",
                                                        'action'                
        => 
'Window1=window.open(strURL,"Search","left=50,top=100,width=1200,height=700,toolbar=no,scrollbars=yes,resizable=yes");'
+//                                                     'action'                
                        => 'TINY.box.show({iframe:strURL, 
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
 mask:true, animate:true, close: true});'
                                                );
 
                                        $location['location'][$i]['input_type'] 
                                        = 'text';




reply via email to

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