phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] [18582] fix: better csv formatting


From: Pascal Vilarem
Subject: [Phpgroupware-cvs] [18582] fix: better csv formatting
Date: Mon, 02 Jun 2008 11:17:41 +0000

Revision: 18582
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18582
Author:   maat
Date:     2008-06-02 11:17:41 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
fix: better csv formatting

Modified Paths:
--------------
    trunk/ged/inc/class.ged_ui.inc.php

Modified: trunk/ged/inc/class.ged_ui.inc.php
===================================================================
--- trunk/ged/inc/class.ged_ui.inc.php  2008-06-02 10:47:29 UTC (rev 18581)
+++ trunk/ged/inc/class.ged_ui.inc.php  2008-06-02 11:17:41 UTC (rev 18582)
@@ -2093,15 +2093,16 @@
                                {
                                        foreach($chrono_type as $chrono)
                                        {
-                                               $link_data=null;
-                                               
$link_data['menuaction']='ged.ged_ui.browse';
-                                               
$link_data['focused_id']=$chrono['element_id'];
-                                               
$link_data['version_id']=$chrono['version_id'];
-                                               
-                                               
print($chrono['reference'].",".$chrono['name'].",".$chrono['version_label'].
-                                               
",".$GLOBALS['phpgw']->common->grab_owner_name($chrono['creator_id']).
-                                               
",".$chrono['status'].",".$GLOBALS['phpgw']->common->show_date($chrono['date']).
-                                               
",\"http://".$_SERVER['SERVER_NAME'].$GLOBALS['phpgw']->link('/index.php', 
$link_data)."\"\n");
+          $link_data=null;
+          $link_data['menuaction']='ged.ged_ui.browse';
+          $link_data['focused_id']=$chrono['element_id'];
+          $link_data['version_id']=$chrono['version_id'];
+          
$url="http://".$_SERVER['SERVER_NAME'].$GLOBALS['phpgw']->link('/index.php', 
$link_data);
+
+          
print($chrono['reference'].";".$chrono['name'].";".$chrono['version_label'].
+          
";".$GLOBALS['phpgw']->common->grab_owner_name($chrono['creator_id']).
+          
";".$chrono['status'].";".$GLOBALS['phpgw']->common->show_date($chrono['date']).
+          ";\"".str_replace("&","&",$url)."\"\n");
                                        }
                                }
                        }
@@ -2117,17 +2118,16 @@
                                //readfile($version['file_full_path']);
                                foreach ($chronos as $chrono_type)
                                {
-                                       foreach($chrono_type as $chrono)
-                                       {
-                                               $link_data=null;
-                                               
$link_data['menuaction']='ged.ged_ui.browse';
-                                               
$link_data['focused_id']=$chrono['element_id'];
-                                               
$link_data['version_id']=$chrono['version_id'];
-                                               
-                                               
print($chrono['reference'].",".$chrono['name'].",".$chrono['version_label'].
-                                               
",".$GLOBALS['phpgw']->common->grab_owner_name($chrono['creator_id']).
-                                               
",".$chrono['status'].",".$GLOBALS['phpgw']->common->show_date($chrono['date']).
-                                               
",\"http://".$_SERVER['SERVER_NAME'].$GLOBALS['phpgw']->link('/index.php', 
$link_data)."\"\n");
+          $link_data=null;
+          $link_data['menuaction']='ged.ged_ui.browse';
+          $link_data['focused_id']=$chrono['element_id'];
+          $link_data['version_id']=$chrono['version_id'];
+          
$url="http://".$_SERVER['SERVER_NAME'].$GLOBALS['phpgw']->link('/index.php', 
$link_data);
+
+          
print($chrono['reference'].";".$chrono['name'].";".$chrono['version_label'].
+          
";".$GLOBALS['phpgw']->common->grab_owner_name($chrono['creator_id']).
+          
";".$chrono['status'].";".$GLOBALS['phpgw']->common->show_date($chrono['date']).
+          ";\"".str_replace("&","&",$url)."\"\n");
                                        }
                                }
                }






reply via email to

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