From 63318c2abdf39385e847f43824e0c5e72468456e Mon Sep 17 00:00:00 2001 From: sparkyx Date: Tue, 1 Feb 2005 22:16:52 +0000 Subject: [PATCH] Change tab by coma --- html/fiche_csv.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/html/fiche_csv.php b/html/fiche_csv.php index 9f36aa44d..9c4eb536a 100644 --- a/html/fiche_csv.php +++ b/html/fiche_csv.php @@ -44,13 +44,25 @@ if ( isset ($_POST['fd_id'])) { $e=$fiche->GetByType($fiche_def->id); // Heading $fiche_def->GetAttribut(); - foreach ($fiche_def->attribut as $attribut) - printf("%s\t",$attribut->ad_text); + $o=0 + foreach ($fiche_def->attribut as $attribut) { + if ( $o == 0 ) { + printf("%s",$attribut->ad_text); + $o=1; + }else + printf(";%s",$attribut->ad_text); + } printf("\n"); + $o=0 foreach ($e as $detail) { - foreach ( $detail->attribut as $dattribut ) - printf ("%s\t",$dattribut->av_text); + foreach ( $detail->attribut as $dattribut ) { + if ( $o == 0 ) { + printf("%s",$dattribut->av_text); + $o=1; + } else + printf (";%s",$dattribut->av_text); + } printf("\n"); }