export: competences, issue #0000011
This commit is contained in:
parent
d4911c728c
commit
d165b337f1
@ -13,10 +13,14 @@ if (($siret*1)==0 || ($siren*1)<100){
|
||||
}
|
||||
|
||||
//Gestion des cas particulier
|
||||
if($page=='dirigeants' && $_REQUEST['vue']=='histo'){
|
||||
$fileName.= '-histo';
|
||||
}elseif($page=='annonces'){
|
||||
if(isset($_REQUEST['vue']) && $$_REQUEST['vue']!=''){$fileName.= '-'.$_REQUEST['idan'];}
|
||||
if ($page == 'dirigeants' && $_REQUEST['vue'] == 'histo'){
|
||||
$fileName .= '-histo';
|
||||
} else if ($page == 'annonces') {
|
||||
if (isset($_REQUEST['vue']) && $$_REQUEST['vue'] != '') {
|
||||
$fileName .= '-'.$_REQUEST['idan'];
|
||||
}
|
||||
} else if ($page == 'competences' && isset($_GET['type'])) {
|
||||
$fileName .= '-'.$_GET['type'];
|
||||
}
|
||||
|
||||
//Ajout de l'extension
|
||||
|
@ -113,7 +113,7 @@ if ($_SERVER['REMOTE_ADDR']=='83.206.102.217' || $_SERVER['REMOTE_ADDR']=='88.18
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="3" class="StyleInfoData"><a href="./?page=competences&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>&type=jal">Journaux d'Annonces Légales</a></td>
|
||||
<td colspan="3" class="StyleInfoData"><a href="./?page=competences&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>&type=jal">Journaux d'Annonces Légales</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
@ -233,7 +233,7 @@ if ($type=='tri')
|
||||
<?php
|
||||
} elseif ($type=='jal') {
|
||||
?>
|
||||
<h2>Jounaux d'Annonces Légales</h2>
|
||||
<h2>Jounaux d'Annonces Légales</h2>
|
||||
<table>
|
||||
<?php foreach ($competences as $comp) {?>
|
||||
<tr>
|
||||
@ -365,4 +365,29 @@ elseif ($comp['Type']=='M') echo '<i>Mandataire judiciaire</i><br/>';
|
||||
* Faire des scripts génériques qui à partir de l'INSEE et de la création, maj ou suppression de de SIREN/SIRET dans certaines CJ ou NAF
|
||||
**/
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------- //
|
||||
// Export
|
||||
// --------------------------------------------------------------------------- //
|
||||
if (empty($competences) == false) {
|
||||
require_once 'export.php';
|
||||
if (isset($siret) == true) {
|
||||
$fileName = $page.'-'.$siret.'-'.$type;
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise.'-'.$type;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($competences);
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
$array2xml = new ExportXML;
|
||||
$array2xml->rootName = $page.$type;
|
||||
$array2xml->defaultTagName = substr($page, 0 , -1).$type;
|
||||
$array2xml->records = $competences;
|
||||
$array2xml->writeXML($fileName);
|
||||
}
|
||||
?>
|
||||
|
@ -125,7 +125,7 @@ if (isset($siret) == true) {
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($conventions);
|
||||
$parseTab->tab = array($conventions);
|
||||
|
||||
$array2csv = new ExportCSV;
|
||||
$array2csv->records = $parseTab->convertTable();
|
||||
|
@ -53,15 +53,20 @@ if ($page == 'identite' ||
|
||||
$page == 'banque' ||
|
||||
$page == 'indiscore' ||
|
||||
$page == 'scorescf' ||
|
||||
$page == 'conventions') {
|
||||
if ($page != 'scorescf') {
|
||||
print '<a href="./exportcsv.php?'.$_SERVER['QUERY_STRING'].
|
||||
'" target="_blank" title="CSV">'.
|
||||
'<img src="./img/exporticones/csv.png" alt="CSV" /></a> ';
|
||||
$page == 'conventions' ||
|
||||
$page == 'competences') {
|
||||
if ($page != 'competences' ||
|
||||
isset($_GET['vue']) == false ||
|
||||
$_GET['vue'] != 'tous') {
|
||||
if ($page != 'scorescf') {
|
||||
print '<a href="./exportcsv.php?'.$_SERVER['QUERY_STRING'].
|
||||
'" target="_blank" title="CSV">'.
|
||||
'<img src="./img/exporticones/csv.png" alt="CSV" /></a> ';
|
||||
}
|
||||
print '<a href="./exportxml.php?'.$_SERVER['QUERY_STRING'].
|
||||
'" target="_blank" title="XML">'.
|
||||
'<img src="./img/exporticones/xml.png" alt="XML" /></a> ';
|
||||
}
|
||||
print '<a href="./exportxml.php?'.$_SERVER['QUERY_STRING'].
|
||||
'" target="_blank" title="XML">'.
|
||||
'<img src="./img/exporticones/xml.png" alt="XML" /></a> ';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user