[opencourrier-Commits] r706 - branches/test_4.2.0/obj

0 views
Skip to first unread message

jbas...@adullact.net

unread,
Oct 1, 2015, 10:50:27 AM10/1/15
to openmairie-...@googlegroups.com
Author: jbastide
Date: 2015-10-01 16:40:23 +0200 (Thu, 01 Oct 2015)
New Revision: 706

Modified:
branches/test_4.2.0/obj/om_formulaire.class.php
Log:
affichage cvs dans navigateur


Modified: branches/test_4.2.0/obj/om_formulaire.class.php
===================================================================
--- branches/test_4.2.0/obj/om_formulaire.class.php 2015-10-01 14:16:49 UTC (rev 705)
+++ branches/test_4.2.0/obj/om_formulaire.class.php 2015-10-01 14:40:23 UTC (rev 706)
@@ -76,11 +76,21 @@
$fichier=fopen($scan_pdf, "r");
$contenu = fread($fichier, 10000);
$flag_separateur=0;
- //chr(59)-> point virgule
+ //chr(59)-> ;
+ //chr(41)-> tabulation
+ //chr(58)-> :
+ //chr(32)-> espace
+ //chr(44)-> ,
+ $separateur="";
if(strstr($contenu, chr(59))){
$separateur=chr(59);
$flag_separateur=1;
+ }else{
+ if(strstr($contenu, chr(41))){
+ $separateur=chr(41);
+ $flag_separateur=1;
}
+ }
if($flag_separateur==1){
$flagentete=1;
$tmp=explode("\n",$contenu);
@@ -91,7 +101,7 @@
echo "<tr>";
foreach ($tmp1 as &$value1) {
if ($flagentete==1){
- echo "<td id='entete-table-csv' >".$value1."</td>";
+ echo "<td align='center' id='entete-table-csv' >".$value1."</td>";
}else{
echo "<td id='td-table-csv' >".$value1."</td>";
}

Reply all
Reply to author
Forward
0 new messages