export: banque, issue #0000011

This commit is contained in:
Sebastien BEAUGRAND 2010-04-06 15:09:58 +00:00
parent c8e5bb474e
commit c1435981ba
2 changed files with 23 additions and 1 deletions

View File

@ -132,6 +132,27 @@ foreach($rbanque as $relation)
?>
</ul>
<?php
// Export
require_once 'export.php';
if (isset($siret) == true) {
$fileName = $page.'-'.$siret;
} 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;
$array2xml->records = $rbanque;
$array2xml->writeXML($fileName);
}
?></div>
<?php

View File

@ -49,7 +49,8 @@ if ($page == 'identite' ||
$page == 'bilans' ||
$page == 'ratios' ||
$page == 'liasse' ||
$page == 'bourse') {
$page == 'bourse' ||
$page == 'banque') {
print '<a href="./exportcsv.php?'.$_SERVER['QUERY_STRING'].
'" target="_blank" title="CSV">'.
'<img src="./img/exporticones/csv.png" alt="CSV" /></a>&nbsp;';