Colonne presentRCS déplacé après le SIREN NIC

This commit is contained in:
Michael RICOIS 2015-01-27 10:40:28 +00:00
parent 801993cd0b
commit 0a7f3b7c6d

View File

@ -125,6 +125,12 @@ $fields = $dico->getFields();
$tabEntete = array('siren', 'nic');
$tabEnteteLabel = array('SIREN', 'NIC');
$columns = array('LPAD(siren, 9, 000000000) AS siren', 'LPAD(nic,5,00000) AS nic');
// --- Ajouter le champ presentRcs
$columns[] = 'presentRcs';
$tabEntete[] = 'presentRcs';
$tabEnteteLabel[] = "Présent au RNCS";
$joins = array();
foreach ( $dataProfil as $item ) {
@ -160,10 +166,6 @@ foreach ( $dataProfil as $item ) {
}
}
// --- Ajouter le champ presentRcs
$columns[] = 'presentRcs';
$tabEntete[] = 'presentRcs';
$tabEnteteLabel[] = "Présent au RNCS";
$outFile = $profil->login.'_'.$id.'_'.date('YmdHis').'.csv';
$fp = fopen($path.'/'.$outFile, 'w');