export: banque, issue #0000011
This commit is contained in:
parent
c8e5bb474e
commit
c1435981ba
@ -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
|
||||
|
@ -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> ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user