[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18584] clean: removing ugly csv hacks step 1 (thanks
From: |
Pascal Vilarem |
Subject: |
[Phpgroupware-cvs] [18584] clean: removing ugly csv hacks step 1 (thanks skwashd) |
Date: |
Mon, 02 Jun 2008 12:37:18 +0000 |
Revision: 18584
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18584
Author: maat
Date: 2008-06-02 12:37:18 +0000 (Mon, 02 Jun 2008)
Log Message:
-----------
clean: removing ugly csv hacks step 1 (thanks skwashd)
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 11:19:44 UTC (rev 18583)
+++ trunk/ged/inc/class.ged_ui.inc.php 2008-06-02 12:37:18 UTC (rev 18584)
@@ -2093,16 +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'];
-
$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");
+ $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=$GLOBALS['phpgw']->link('/index.php', $link_data, true);
+
+
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']).
+ ";\"".$url."\"\n");
}
}
}
@@ -2120,16 +2120,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'];
-
$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");
+ $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=$GLOBALS['phpgw']->link('/index.php', $link_data, true);
+
+
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']).
+ ";\"".$url."\"\n");
}
}
}
@@ -2215,11 +2215,12 @@
$link_data['menuaction']='ged.ged_ui.browse';
$link_data['focused_id']=$version['element_id'];
$link_data['version_id']=$version['version_id'];
+
$url=$GLOBALS['phpgw']->link('/index.php', $link_data, true);
-
print($version['reference'].",".$version['name'].",".$version['version_label'].
-
",".$GLOBALS['phpgw']->common->grab_owner_name($version['creator_id']).
-
",".$version['status'].",".$GLOBALS['phpgw']->common->show_date($version['date']).
-
",http://".$_SERVER['SERVER_NAME'].$GLOBALS['phpgw']->link('/index.php',
$link_data)."\n");
+
print($version['reference'].";".$version['name'].";".$version['version_label'].
+
";".$GLOBALS['phpgw']->common->grab_owner_name($version['creator_id']).
+
";".$version['status'].";".$GLOBALS['phpgw']->common->show_date($version['date']).
+ ";\"".$url."\"\n");
}
}
}
@@ -2238,11 +2239,12 @@
$link_data['menuaction']='ged.ged_ui.browse';
$link_data['focused_id']=$version['element_id'];
$link_data['version_id']=$version['version_id'];
+
$url=$GLOBALS['phpgw']->link('/index.php', $link_data, true);
-
print($version['reference'].",".$version['name'].",".$version['version_label'].
-
",".$GLOBALS['phpgw']->common->grab_owner_name($version['creator_id']).
-
",".$version['status'].",".$GLOBALS['phpgw']->common->show_date($version['date']).
-
",http://".$_SERVER['SERVER_NAME'].$GLOBALS['phpgw']->link('/index.php',
$link_data)."\n");
+
print($version['reference'].";".$version['name'].";".$version['version_label'].
+
";".$GLOBALS['phpgw']->common->grab_owner_name($version['creator_id']).
+
";".$version['status'].";".$GLOBALS['phpgw']->common->show_date($version['date']).
+ ";\"".$url."\"\n");
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18584] clean: removing ugly csv hacks step 1 (thanks skwashd),
Pascal Vilarem <=