export: conventions, issue #0000011

This commit is contained in:
Sebastien BEAUGRAND 2010-05-24 14:23:31 +00:00
parent 5e12a12209
commit 32f45186f2
2 changed files with 30 additions and 8 deletions

View File

@ -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>

View File

@ -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) ||