Affichage de la prévisualisation

This commit is contained in:
Michael RICOIS 2014-08-04 14:04:48 +00:00
parent 99f808fa12
commit e4c1351290

View File

@ -335,16 +335,20 @@ class ComptageController extends Zend_Controller_Action
$liste = array();
if ( count($result)>0 ) {
foreach ($result as $l => $line) {
foreach ( $result as $l => $line ) {
$tmp = array();
foreach($line as $column => $data) {
$valuesPredefine = $enrichissement->getColumnValue($column);
if ($valuesPredefine!==false) {
$tmp[] = $valuesPredefine[$data];
} else {
$tmp[] = $data;
}
}
foreach ( $tabEntete as $item ) {
$data = '';
if ( array_key_exists($item, $line) ) {
$data = $line[$item];
}
$valuesPredefine = $enrichissement->getColumnValue($item);
if ($valuesPredefine!==false) {
$tmp[] = $valuesPredefine[$data];
} else {
$tmp[] = $data;
}
}
$liste[] = $tmp;
}
}