Suppression de l'export CSV
This commit is contained in:
parent
1a118da1cd
commit
22e092ca49
@ -18,11 +18,6 @@ switch ($page)
|
||||
}
|
||||
$tabTemp = htmldecode($etab);
|
||||
$tabForExport[0] = $tabTemp;
|
||||
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -33,18 +28,14 @@ switch ($page)
|
||||
case 'etablissements':
|
||||
if (count($etabs>0)) {
|
||||
$tabForExport = htmldecode($etabs);
|
||||
FB::log($tabForExport,'tabForExport');
|
||||
//@TODO a tester
|
||||
if (($siret*1)==0 || ($siren*1)<100) {
|
||||
$fileName = 'etablissements-'.$idEntreprise;
|
||||
} else {
|
||||
$fileName = 'etablissements-'.$siret;
|
||||
}
|
||||
|
||||
if(count($tabForExport)>0) {
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -61,14 +52,7 @@ switch ($page)
|
||||
$fileName = 'liens-'.$siret;
|
||||
}
|
||||
$tabForExport = htmldecode($liens['actionnaires']);
|
||||
|
||||
if(count($tabForExport)>0){
|
||||
require_once 'export.php';
|
||||
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
if(count($tabForExport)>0) {
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -88,10 +72,6 @@ switch ($page)
|
||||
$tabForExport = htmldecode($evens);
|
||||
if(count($tabForExport)>0)
|
||||
{
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -112,10 +92,6 @@ switch ($page)
|
||||
}
|
||||
$tabForExport = htmldecode($dirs);
|
||||
if(count($tabForExport)>0){
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -137,29 +113,6 @@ switch ($page)
|
||||
$fileName = $page.'-'.$siret;
|
||||
}
|
||||
if($vue!=''){$fileName.= '-'.$idan;}
|
||||
|
||||
$parseTab = new tabExport();
|
||||
$parseTab->tab = $annonces;
|
||||
$parseTab->notdisplay = array('id');
|
||||
$parseTab->title = array('BodaccCode' => 'Code Bodacc',
|
||||
'BodaccNum' => 'Numéro Bodacc',
|
||||
'NumAnnonce' => 'Numéro annonce',
|
||||
'DateParution' => 'Date de parution',
|
||||
'TribunalSiret' => 'Siret du tribunal',
|
||||
'typeAnnonce' => 'Type annonce',
|
||||
'texteRectificatif' => 'Texte rectificatif',
|
||||
'texteAnnonce' => 'Texte annonce',
|
||||
'dateEffet' => 'Date effet',
|
||||
'dateJugement' => 'Date jugement',
|
||||
'dateInsertionSD' => 'Date insertion',
|
||||
'evenements' => 'Evenements');
|
||||
$parseTab->type = array();
|
||||
$tabForExport = $parseTab->convertTable();
|
||||
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$tabForExport = $annonces;
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
@ -194,16 +147,6 @@ switch ($page)
|
||||
'duree' => $bilansInfos[0]['duree'],
|
||||
'valeur' => dRatio(0, $ratio)));
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($export);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
$array2xml = new ExportXML;
|
||||
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = 'elem';
|
||||
$array2xml->records = $export;
|
||||
@ -223,15 +166,6 @@ switch ($page)
|
||||
'actif' => ajouteExport($actif),
|
||||
'passif' => ajouteExport($passif),
|
||||
'sig' => ajouteExport($sig));
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($export);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = 'elem';
|
||||
@ -252,15 +186,6 @@ switch ($page)
|
||||
$bilansInfos[$bilan]['dateCloture'],
|
||||
$bilansInfos[$bilan]['duree'],
|
||||
$ratiosInfos, $bilan, $result['nbEntNaf'], $ratio);
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($export);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = 'elem';
|
||||
@ -274,20 +199,10 @@ switch ($page)
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$liasse['Liasse']['raisonSociale'] = $raisonSociale;
|
||||
$liasse['Liasse']['type'] = $mil[0];
|
||||
$liasse['Liasse']['date'] = $annee;
|
||||
liasse2xml($tabLiasseN, $liasse, $tableTexteBilan);
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($liasse['Liasse']);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = 'elem';
|
||||
@ -325,14 +240,6 @@ switch ($page)
|
||||
'tendance' => $etab['TendanceIndiscore'],
|
||||
'encoursMaxConseille' => $etab['encours']);
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($export);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->records = $export;
|
||||
@ -345,15 +252,6 @@ switch ($page)
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($etab);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -367,15 +265,6 @@ switch ($page)
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($rbanque);
|
||||
$parseTab->type = array();
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
@ -394,14 +283,6 @@ switch ($page)
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise.'-'.$type;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($competences);
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page.$type;
|
||||
$array2xml->defaultTagName = substr($page, 0 , -1).$type;
|
||||
@ -417,13 +298,6 @@ switch ($page)
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($conventions);
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = substr($page, 0 , -1);
|
||||
@ -442,14 +316,7 @@ switch ($page)
|
||||
for ($i = 0; $i < count($marques); ++$i) {
|
||||
unset($marques[$i]['IdLien']);
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = $marques;
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page;
|
||||
$array2xml->defaultTagName = substr($page, 0 , -1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user