export: conventions, issue #0000011
This commit is contained in:
parent
5e12a12209
commit
32f45186f2
@ -103,12 +103,33 @@ if (count($conventions)>0)
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<p class="confidentiel blockh2">
|
||||
<?php
|
||||
require_once 'cgu/cgu.php';
|
||||
echo afficheCgu();
|
||||
?>
|
||||
</p>
|
||||
// --------------------------------------------------------------------------- //
|
||||
// Export
|
||||
// --------------------------------------------------------------------------- //
|
||||
require_once 'export.php';
|
||||
if (isset($siret) == true) {
|
||||
$fileName = $page.'-'.$siret;
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
</div>
|
||||
$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);
|
||||
$array2xml->records = $conventions;
|
||||
$array2xml->writeXML($fileName);
|
||||
|
||||
require_once 'cgu/cgu.php';
|
||||
print '<p class="confidentiel blockh2">'.afficheCgu();
|
||||
?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
@ -43,7 +43,8 @@ if ($page == 'identite' ||
|
||||
$page == 'indiscore' ||
|
||||
$page == 'bourse' ||
|
||||
$page == 'banque' ||
|
||||
$page == 'scorescf') {
|
||||
$page == 'scorescf' ||
|
||||
$page == 'conventions') {
|
||||
if (($page != 'competences' &&
|
||||
$page != 'marques') ||
|
||||
($page == 'competences' && empty($_GET['vue']) == true) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user