phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.uis_agreement.inc.php, 1.4


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.uis_agreement.inc.php, 1.4
Date: Fri, 18 Jun 2004 15:38:44 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.uis_agreement.inc.php

date: 2004/06/18 13:38:44;  author: sigurdne;  state: Exp;  lines: +22 -2

Log Message:
no message
=====================================================================
Index: property/inc/class.uis_agreement.inc.php
diff -u property/inc/class.uis_agreement.inc.php:1.3 
property/inc/class.uis_agreement.inc.php:1.4
--- property/inc/class.uis_agreement.inc.php:1.3        Mon Jun 14 19:58:29 2004
+++ property/inc/class.uis_agreement.inc.php    Fri Jun 18 13:38:44 2004
@@ -37,7 +37,8 @@
                        'columns'               => True,
                        'edit_item'             => True,
                        'view_item'             => True,
-                       'view_file'             =>True
+                       'view_file'             => True,
+                       'excel'                 => True
                );
 
                function uis_agreement()
@@ -722,10 +723,21 @@
                                
$s_agreement['files'][$i]['file_name']=urlencode($s_agreement['files'][$i]['name']);
                        }
 
+                       $link_excel = array
+                       (
+                               'menuaction'    => 
$this->currentapp.'.uis_agreement.excel',
+                                               'id'                            
=>$id
+                       );
+
 
                        $data = array
                        (
 
+                               'lang_excel'                            => 
'excel',
+                               'link_excel'                            => 
$GLOBALS['phpgw']->link('/index.php',$link_excel),
+                               'lang_excel_help'                       => 
lang('Download table to MS Excel'),
+                               'overlib_source'                                
=> './'.$this->currentapp.'/inc/overlib.js',
+
                                'fileupload'                                    
=> True,
                                'link_view_file'                                
=> $GLOBALS['phpgw']->link('/index.php',$link_file_data),
                                'link_to_files'                                 
=> $link_to_files,
@@ -811,6 +823,14 @@
                        
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('edit' => $data));
                }
 
+               function excel()
+               {
+                       $id     = get_var('id',array('POST','GET'));
+                       $list = $this->bo->read_details($id);
+                       $uicols         = $this->bo->uicols;
+                       
$this->bocommon->excel($list,$uicols['name'],$uicols['descr']);
+               }
+
                function edit_item()
                {
                        $s_agreement_id = 
get_var('s_agreement_id',array('POST','GET'));




reply via email to

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