Réintégration des modifs de la branche 1.5, suppression des ' incompatible avec IE6, suppression export pas joli
This commit is contained in:
parent
0b5503e194
commit
a730a85e5d
@ -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
|
||||
|
@ -590,7 +590,7 @@ else
|
||||
<td class="right"><?php print dPercent(0,'r133','r101'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>+</td><td>Subventions d'exploitation</td>
|
||||
<td>+</td><td>Subventions d'exploitation</td>
|
||||
<?php
|
||||
for($i=1; $i<=$nb_bilans; $i++)
|
||||
{
|
||||
@ -602,7 +602,7 @@ else
|
||||
<td class="right"><?php print dPercent(0,'r131','r101'); ?></td>
|
||||
</tr>
|
||||
<tr class="subhead">
|
||||
<td class="center" colspan="2">EXCÉDENT BRUT D'EXPLOITATION (EBE)</td>
|
||||
<td class="center" colspan="2">EXCÉDENT BRUT D'EXPLOITATION (EBE)</td>
|
||||
<?php
|
||||
for($i=1; $i<=$nb_bilans; $i++)
|
||||
{
|
||||
@ -801,4 +801,4 @@ else
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -206,7 +206,7 @@ else
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Date d'introduction en bourse</td>
|
||||
<td width="200" class="StyleInfoLib">Date d'introduction en bourse</td>
|
||||
<td width="350" class="StyleInfoData"><?=$etab['DateIntroduction']?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -342,7 +342,28 @@ else
|
||||
<td width="350" class="StyleInfoData"><?=number_format($etab['coursMoy'],2,',', ' ')?> €</td>
|
||||
</tr>
|
||||
<?
|
||||
// Export
|
||||
require_once 'export.php';
|
||||
if (isset($siret) == true) {
|
||||
$fileName = $page.'-'.$siret;
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($etab);
|
||||
$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 = $etab;
|
||||
$array2xml->writeXML($fileName);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -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
|
||||
@ -365,4 +365,4 @@ 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
|
||||
**/
|
||||
}
|
||||
?>
|
||||
?>
|
@ -111,4 +111,4 @@ if (count($conventions)>0)
|
||||
<td colspan="4"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
@ -23,7 +23,7 @@ function dRow($lib, $data, $title = '')
|
||||
|
||||
?>
|
||||
<div id="center">
|
||||
<h1 class="titre">IDENTITÉ DE L'ENTREPRISE</h1>
|
||||
<h1 class="titre">IDENTITÉ DE L'ENTREPRISE</h1>
|
||||
|
||||
<table>
|
||||
|
||||
|
@ -8,7 +8,7 @@ else {
|
||||
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
|
||||
|
||||
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1;
|
||||
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1;
|
||||
// Si id=0 alors non communiqué
|
||||
if (($siret*1)==0 && $idEntreprise==0) die('Paramètres incorrects !');
|
||||
$siren=substr($siret,0,9);
|
||||
@ -29,9 +29,6 @@ require_once 'scoresws/scoresws.php';
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
$etab = scoresws_indiscore($siret, $siren, $idEntreprise);
|
||||
echo '<!--';
|
||||
print_r($etab);
|
||||
echo '-->';
|
||||
?>
|
||||
<div id="center">
|
||||
<h1 class="titre">INDISCORE©</h1>
|
||||
@ -46,7 +43,7 @@ echo '-->';
|
||||
<td width="200" class="StyleInfoLib">Numéro identifiant Siret du siège</td>
|
||||
<td width="350" class="StyleInfoData"><?=substr($etab['Siren'],0,3).' '.substr($etab['Siren'],3,3).' '.substr($etab['Siren'],6,3).' '.substr($etab['Siret'],-5)?></td>
|
||||
</tr>
|
||||
<? if ($etab['NumRC']*1<>0) { ?>
|
||||
<? if (isset($etab['NumRC']) == true && $etab['NumRC']*1<>0) { ?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Numéro R.C.</td>
|
||||
@ -62,7 +59,9 @@ echo '-->';
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Raison Sociale</td>
|
||||
<td width="350" class="StyleInfoData"><?=$etab['Nom'];
|
||||
if ($etab['Nom2']<>'') echo '<br/>'.$etab['Nom2'];?></td>
|
||||
if (isset($etab['Nom2']) == true && $etab['Nom2']<>'') {
|
||||
echo '<br/>'.$etab['Nom2'];
|
||||
} ?></td>
|
||||
</tr>
|
||||
<?
|
||||
if ($etab['Enseigne']<>'' && $etab['Sigle']<>'') { $titre='Enseigne / Sigle'; $lib=$etab['Enseigne'].' / '.$etab['Sigle']; }
|
||||
@ -83,9 +82,10 @@ echo '-->';
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
|
||||
<td width="200" class="StyleInfoLib">Date de création de l'entreprise</td>
|
||||
<td width="350" class="StyleInfoData"><? $dateCreation=str_replace('-','',$etab['DateCreaEn']);
|
||||
echo WDate::dateT('Ymd', 'm/Y', $dateCreation);?></td>
|
||||
$date = new WDate;
|
||||
print $date->dateT('Ymd', 'm/Y', $dateCreation);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
@ -138,7 +138,7 @@ echo '-->';
|
||||
<span class="textdegrade">Dirigeance</span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="./img/indiscore/imgscores-<?=formatPct($etab['ScoreDirigeance'])?>.png"/></div>
|
||||
<div class="regle"><img src="./img/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -151,7 +151,7 @@ echo '-->';
|
||||
<span class="textdegrade">Solvabilité</span>
|
||||
<div class="imgdegrade"><img class="borderimg" src="./img/indiscore/imgscores-<?=formatPct($etab['Indiscore'])?>.png"/></div>
|
||||
<div class="regle"><img src="./img/sgradiant2.png" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -174,7 +174,7 @@ if ($etab['NbBilansScore']>0 && $etab['Bilans'][0]['Millesime']>=$millesimeMax)
|
||||
echo 'Cette entreprise est défaillante ou sur le point de le devenir.';
|
||||
//[EquivalenceBDF]
|
||||
?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
@ -212,7 +212,7 @@ if ($etab['NbBilansScore']>0 && $etab['Bilans'][0]['Millesime']>=$millesimeMax)
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoData">
|
||||
Compte tenu des informations disponibles auprès des sources officielles Scores et Décisions présente la conclusion suivante :<br/>
|
||||
<?php
|
||||
<?php
|
||||
switch($_SESSION['tabInfo']['typeScore'])
|
||||
{
|
||||
case '20':
|
||||
@ -248,4 +248,28 @@ if ($etab['NbBilansScore']>0 && $etab['Bilans'][0]['Millesime']>=$millesimeMax)
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------- //
|
||||
// Export
|
||||
// --------------------------------------------------------------------------- //
|
||||
require_once 'export.php';
|
||||
if (isset($siret) == true) {
|
||||
$fileName = $page.'-'.$siret;
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($etab);
|
||||
$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 = $etab;
|
||||
$array2xml->writeXML($fileName);
|
||||
?>
|
@ -230,7 +230,7 @@ foreach ($tabCommandes as $commande) {
|
||||
if ($delivree == true) {
|
||||
print '</b></font>';
|
||||
}
|
||||
print '<br/>Type d'enquête: '.$commande->servicespeed.'<br/>'.
|
||||
print '<br/>Type d\'enquête: '.$commande->servicespeed.'<br/>'.
|
||||
'État: ';
|
||||
if ($delivree == true) {
|
||||
print '<font color="#31659C"><b>';
|
||||
|
@ -124,7 +124,7 @@ if (isset($commande_id) == true) {
|
||||
$message = 'Commande enregistrée.';
|
||||
} else {
|
||||
$message = '<font color="red">'.
|
||||
'Erreur lors de la soumission de l'enquête.</font>';
|
||||
'Erreur lors de la soumission de l\'enquête.</font>';
|
||||
}
|
||||
print '<div id="message">'.$message.'</div>';
|
||||
print '</div>';
|
||||
@ -320,7 +320,7 @@ if ($countryavailability != false) {
|
||||
}
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Type d'enquête</label>
|
||||
<label class="StyleInfoLib">Type d'enquête</label>
|
||||
<div class="field">
|
||||
|
||||
<?php
|
||||
|
@ -26,7 +26,7 @@ if(isset($company))
|
||||
?>
|
||||
<div id="center">
|
||||
|
||||
<h1 class="titre">IDENTITÉ INTERNATIONALE DE L'ENTREPRISE</h1>
|
||||
<h1 class="titre">IDENTITÉ INTERNATIONALE DE L'ENTREPRISE</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
@ -379,7 +379,7 @@ if(isset($company))
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2>Activité(s) de l'entreprise : </h2>
|
||||
<h2>Activité(s) de l'entreprise : </h2>
|
||||
|
||||
<table>
|
||||
<?php
|
||||
|
@ -7,6 +7,10 @@ $vue = isset($_REQUEST['vue']) ? $_REQUEST['vue'] : 'recherche';
|
||||
require_once 'graydon/graydon.php';
|
||||
require_once 'dbbootstrap.php';
|
||||
|
||||
if (isset($_REQUEST['mode']) == false) {
|
||||
$_REQUEST['mode'] = 'normal';
|
||||
}
|
||||
|
||||
/* Affichage du formulaire de recherche */
|
||||
if($vue=='recherche')
|
||||
{
|
||||
@ -37,8 +41,14 @@ $(document).ready(function(){
|
||||
<label>Mode : </label>
|
||||
<div class="field">
|
||||
<select id="mode" name="mode">
|
||||
<option value="normal" <?php $_REQUEST['mode']=='normal' ? print ' selected' : '' ;?>>Normal</option>
|
||||
<option value="demo" <?php $_REQUEST['mode']=='demo' ? print ' selected' : '' ;?>>Démonstration</option>
|
||||
<option value="normal"
|
||||
<?php if ($_REQUEST['mode'] == 'normal') { print ' selected'; } ?> >
|
||||
Normal
|
||||
</option>
|
||||
<option value="demo"
|
||||
<?php if ($_REQUEST['mode'] == 'demo' ) { print ' selected'; } ?> >
|
||||
Démonstration
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -214,7 +224,7 @@ elseif($vue=='list')
|
||||
<?php
|
||||
}elseif(is_array($result) && count($result)==0){
|
||||
?>
|
||||
<br/><p class="StyleInfoLib">Aucun résultat n'a été trouvé. <a href="./index.php?page=international_recherche">Cliquez-ici</a> pour retourner au formulaire de recherche.</p>
|
||||
<br/><p class="StyleInfoLib">Aucun résultat n'a été trouvé. <a href="./index.php?page=international_recherche">Cliquez-ici</a> pour retourner au formulaire de recherche.</p>
|
||||
<?php
|
||||
}else{
|
||||
print $result;
|
||||
|
@ -3,15 +3,15 @@ if(!isset($mode)){
|
||||
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : 'normal';
|
||||
}
|
||||
|
||||
if($mode=='normal')
|
||||
{
|
||||
$pays = $_REQUEST['pays'];
|
||||
$paysCode = $_SESSION['graydon']['paysCode'];
|
||||
$_SESSION['graydon']['mode'] = 'normal';
|
||||
|
||||
if ($mode == 'normal') {
|
||||
if (isset($_SESSION['graydon']['paysCode']) == true) {
|
||||
$paysCode = $_SESSION['graydon']['paysCode'];
|
||||
}
|
||||
$_SESSION['graydon']['mode'] = 'normal';
|
||||
|
||||
require_once 'dbbootstrap.php';
|
||||
|
||||
//Récupération de la liste de tous les pays (bdd : sdv1)
|
||||
|
||||
//Récupération de la liste de tous les pays (bdd : sdv1)
|
||||
setDbConn('sdv1');
|
||||
$q = Doctrine_Query::Create()
|
||||
->select('codPays, libPaysEN')
|
||||
@ -28,9 +28,9 @@ if($mode=='normal')
|
||||
->where('status = "actif"')
|
||||
->setHydrationMode(Doctrine::HYDRATE_ARRAY);
|
||||
$result = $q->execute();
|
||||
$tabPaysGraydon == array();
|
||||
$tabPaysGraydon = array();
|
||||
if(count($result)>0) foreach($result as $item){ $tabPaysGraydon[] = $item['code']; }
|
||||
|
||||
|
||||
//Lecture des pays intersud
|
||||
setDbConn('intersud');
|
||||
$q = Doctrine_Query::Create()
|
||||
@ -39,14 +39,14 @@ if($mode=='normal')
|
||||
->where('status = "actif"')
|
||||
->setHydrationMode(Doctrine::HYDRATE_ARRAY);
|
||||
$result = $q->execute();
|
||||
$tabPaysIntersud == array();
|
||||
$tabPaysIntersud = array();
|
||||
if(count($result)>0) foreach($result as $item){ $tabPaysIntersud[] = $item['code']; }
|
||||
?>
|
||||
<div class="fieldgrp">
|
||||
<label class="StyleInfoLib">Pays : </label>
|
||||
<div class="field">
|
||||
<select id="pays" name="frmRecherche[CountryCode]" size="10">
|
||||
<?php
|
||||
<?php
|
||||
//lecture des pays dans la bdd
|
||||
foreach($tabPaysComplete as $kPays){
|
||||
$selected = '';
|
||||
@ -55,7 +55,7 @@ foreach($tabPaysComplete as $kPays){
|
||||
$intersudPays = FALSE;
|
||||
if(count($tabPaysGraydon)>0 && in_array($kPays['codPays'], $tabPaysGraydon)){ $graydonPays = TRUE; }
|
||||
if(count($tabPaysIntersud)>0 && in_array($kPays['codPays'], $tabPaysIntersud)){ $intersudPays = TRUE; }
|
||||
|
||||
|
||||
if($graydonPays || $intersudPays){
|
||||
if( isset($paysCode) && $paysCode==$kPays['codPays'] ){ $selected = ' selected'; }
|
||||
print '<option value="'.$kPays['codPays'].'"'.$selected.'>'.$kPays['libPaysEN'].'</option>\n';
|
||||
@ -66,16 +66,17 @@ foreach($tabPaysComplete as $kPays){
|
||||
</div>
|
||||
</div>
|
||||
<div id="method">
|
||||
<?php
|
||||
if(isset($method) || $_SESSION['graydon']['paysCode'])
|
||||
{
|
||||
require_once './pages/graydon/methodfield.php';
|
||||
<?php
|
||||
if(isset($method) ||
|
||||
(isset($_SESSION['graydon']['paysCode']) == true &&
|
||||
$_SESSION['graydon']['paysCode'])) {
|
||||
require_once './pages/graydon/methodfield.php';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="submit"><p class="submit-button"><input type="submit" value="Rechercher"/></p></div>
|
||||
|
||||
<?php
|
||||
|
||||
<?php
|
||||
}elseif($mode=='demo'){
|
||||
?>
|
||||
|
||||
@ -89,34 +90,34 @@ if(isset($method) || $_SESSION['graydon']['paysCode'])
|
||||
<option value="Croatia">Croatia</option>
|
||||
<option value="Czech Republic">Czech Republic</option>
|
||||
<option value="Denmark">Denmark</option>
|
||||
<option value="Estonia">Estonia</option>
|
||||
<option value="France">France</option>
|
||||
<option value="Estonia">Estonia</option>
|
||||
<option value="France">France</option>
|
||||
<option value="Germany">Germany</option>
|
||||
<option value="Greece">Greece</option>
|
||||
<option value="Greece">Greece</option>
|
||||
<option value="Hungary">Hungary</option>
|
||||
<option value="Irish Republic">Irish Republic</option>
|
||||
<option value="Italy">Italy</option>
|
||||
<option value="Japan">Japan</option>
|
||||
<option value="Latvia">Latvia</option>
|
||||
<option value="Lithuania">Lithuania</option>
|
||||
<option value="Netherlands">Netherlands</option>
|
||||
<option value="Lithuania">Lithuania</option>
|
||||
<option value="Netherlands">Netherlands</option>
|
||||
<option value="Poland">Poland</option>
|
||||
<option value="Portugal">Portugal</option>
|
||||
<option value="Romania">Romania</option>
|
||||
<option value="Russia">Russia</option>
|
||||
<option value="Saudi Arabia">Saudi Arabia</option>
|
||||
<option value="Slovakia">Slovakia</option>
|
||||
<option value="Slovenia">Slovenia</option>
|
||||
<option value="Slovenia">Slovenia</option>
|
||||
<option value="Spain">Spain</option>
|
||||
<option value="Sweden">Sweden</option>
|
||||
<option value="Switzerland">Switzerland</option>
|
||||
<option value="Switzerland">Switzerland</option>
|
||||
<option value="United Kingdom">United Kingdom</option>
|
||||
<option value="USA">USA</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="submit"><p class="submit-button"><input type="submit" class="submit" value="Rechercher" /></p></div>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -5,7 +5,12 @@ $siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14)
|
||||
die('Paramètres incorrects !');
|
||||
|
||||
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1;
|
||||
if (isset($_REQUEST['idEntreprise']) == true) {
|
||||
$idEntreprise = trim(preg_replace('/[^0-9]/', '',
|
||||
$_REQUEST['idEntreprise'])) * 1;
|
||||
} else {
|
||||
$idEntreprise = 0;
|
||||
}
|
||||
// Si id=0 alors non communiqué
|
||||
if (($siret*1)==0 && $idEntreprise==0)
|
||||
die('Paramètres incorrects !');
|
||||
@ -72,9 +77,6 @@ if( cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
$firephp->log($tabBilans, 'tabBilans');
|
||||
$firephp->log($tabBilan, 'tabBilan');
|
||||
?>
|
||||
<style type="text/css">
|
||||
.tabLiasse { font-size:1em;}
|
||||
@ -169,17 +171,38 @@ foreach($tabUnit as $unit)
|
||||
<div class="blockh2">
|
||||
<?php
|
||||
/** Si un bilan est sélectionné dans la liste, on affiche le bilan **/
|
||||
if(isset($_REQUEST['mil']))
|
||||
{
|
||||
$mil = $_REQUEST['mil'];
|
||||
if($mil[0]=='A'){
|
||||
include 'liasse/bilan_assurance.php';
|
||||
}elseif($mil[0]=='B'){
|
||||
include 'liasse/bilan_banque.php';
|
||||
}else{
|
||||
include 'liasse/bilan_normal.php';
|
||||
} // Fin test bilan banque ou assurance et autres
|
||||
} // Fin if "pas de bilan choisit"
|
||||
if(isset($_REQUEST['mil']) == true) {
|
||||
$mil = $_REQUEST['mil'];
|
||||
if ($mil[0] == 'A') {
|
||||
include 'liasse/bilan_assurance.php';
|
||||
} else if ($mil[0] == 'B') {
|
||||
include 'liasse/bilan_banque.php';
|
||||
} else {
|
||||
include 'liasse/bilan_normal.php';
|
||||
} // Fin test bilan banque ou assurance et autres
|
||||
|
||||
// Export
|
||||
require_once 'export.php';
|
||||
if (isset($siret) == true) {
|
||||
$fileName = $page.'-'.$siret;
|
||||
} else {
|
||||
$fileName = $page.'-'.$idEntreprise;
|
||||
}
|
||||
|
||||
$parseTab = new tabExport;
|
||||
$parseTab->tab = array($tabBilans);
|
||||
$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 = $tabBilans;
|
||||
$array2xml->writeXML($fileName);
|
||||
} // Fin if "pas de bilan choisit"
|
||||
?>
|
||||
</div>
|
||||
<table>
|
||||
@ -193,4 +216,8 @@ if(isset($_REQUEST['mil']))
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
@ -2,9 +2,13 @@
|
||||
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
|
||||
|
||||
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1; // Si id=0 alors non communiqué
|
||||
$id=trim(preg_replace('/[^0-9]/', '', $_REQUEST['id']))*1;
|
||||
if (($siret*1)==0 && $id==0) die('Paramètres incorrects !');
|
||||
$idEntreprise = (isset($_GET['idEntreprise']) == true) ?
|
||||
trim(preg_replace('/[^0-9]/', '', $_GET['idEntreprise'])) * 1 : 0;
|
||||
$id = (isset($_GET['id']) == true) ?
|
||||
trim(preg_replace('/[^0-9]/', '', $_GET['id'])) * 1 : 0;
|
||||
if (($siret*1)==0 && $id==0) {
|
||||
die('Paramètres incorrects !');
|
||||
}
|
||||
$siren=substr($siret,0,9);
|
||||
$raisonSociale = etabSession($siren, $idEntreprise);
|
||||
$mil=false;
|
||||
@ -25,7 +29,7 @@ else {
|
||||
//Générer un nom de fichier pour le cache et l'export des fichiers
|
||||
if (($siret*1)==0 || ($siren*1)<100){ $fileName = $page2.'-'.$idEntreprise;
|
||||
}else{ $fileName = $page2.'-'.$siret; }
|
||||
if(isset($id)) $fileName = $fileName.'-'.$id;
|
||||
if ($id > 0) $fileName = $fileName.'-'.$id;
|
||||
cache_filename($fileName);
|
||||
|
||||
if( cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits']) || $_SESSION['tabInfo']['mode_edition']==1 ) ){
|
||||
@ -93,7 +97,12 @@ if( cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="230" class="StyleInfoData">
|
||||
Dépôt n°<?=$marque['Depot']?> du <?=WDate::dateT('Y-m-d','d/m/Y',$marque['Date'])?> <a idobjet="<?=$marque['Depot']?>" href="#" title="Voir le détail de l'inscription au BOPI"><img src="./img/exporticones/pdf.png" alt="PDF"></a>
|
||||
Dépôt n°<?=$marque['Depot']?> du
|
||||
<?php
|
||||
$date = new WDate;
|
||||
print $date->dateT('Y-m-d', 'd/m/Y', $marque['Date']);
|
||||
?>
|
||||
<a idobjet="<?=$marque['Depot']?>" href="#" title="Voir le détail de l'inscription au BOPI"><img src="./img/exporticones/pdf.png" alt="PDF"></a>
|
||||
<div id="document<?=$marque['Depot']?>"></div>
|
||||
</td>
|
||||
<td width="340" class="StyleInfoLib"><?=$aff?></td>
|
||||
@ -113,7 +122,7 @@ if( cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="3" class="StyleInfoLib">Aucune marque n'a été déposée par cette entreprise depuis 1982.</td>
|
||||
<td width="550" colspan="3" class="StyleInfoLib">Aucune marque n'a été déposée par cette entreprise depuis 1982.</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
@ -122,4 +131,4 @@ if( cache_exist() && !( preg_match('/\bsaisie\b/i', $_SESSION['tabInfo']['droits
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -44,15 +44,24 @@ if ($page == 'identite' ||
|
||||
$page == 'liens' ||
|
||||
$page == 'evenements' ||
|
||||
$page == 'dirigeants' ||
|
||||
$page == 'annonces') {
|
||||
?>
|
||||
<a href="./exportcsv.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" title="CSV"><img src="./img/exporticones/csv.png" alt="CSV" /></a>
|
||||
<?php
|
||||
}
|
||||
if ($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements' || $page=='dirigeants' || $page=='annonces'){
|
||||
?>
|
||||
<a href="./exportxml.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" title="XML"><img src="./img/exporticones/xml.png" alt="XML" /></a>
|
||||
<?php
|
||||
$page == 'annonces' ||
|
||||
$page == 'bourse' ||
|
||||
$page == 'banque' ||
|
||||
$page == 'scorescf' ||
|
||||
$page == 'conventions') {
|
||||
if (($page != 'competences' &&
|
||||
$page != 'marques') ||
|
||||
($page == 'competences' && empty($_GET['vue']) == true) ||
|
||||
($page == 'marques' && empty($_GET['id']) == true)) {
|
||||
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> ';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@ -60,39 +69,10 @@ if ($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='ev
|
||||
<script type="text/javascript">
|
||||
<?php
|
||||
require_once 'user/user.php';
|
||||
$activeMenu = array();
|
||||
//Recherche
|
||||
$activeMenu[] = array('recherche', 'international_recherche');
|
||||
//Identite
|
||||
$activeMenu[] = array('identite', 'etablissements', 'liens', 'evenements');
|
||||
//Dirigeants
|
||||
$activeMenu[] = array('dirigeants');
|
||||
//Elements Financier
|
||||
$activeMenu[] = array('synthese', 'bilans', 'ratios', 'liasse', 'bourse', 'banque');
|
||||
//Elements Juridiques
|
||||
$activeMenu[] = array('annonces', 'infosreg', 'competences', 'conventions', 'marques');
|
||||
//Banque De France
|
||||
if ( hasPerm('bdf') ) $activeMenu[] = array('bdf');
|
||||
//Evaluation
|
||||
$activeMenu[] = array('indiscore', 'scorescf', 'enquetec', 'rsynthese', 'rsynthesemin');
|
||||
//Pieces officielles
|
||||
$activeMenu[] = array('pieces', 'kbis', 'greffes');
|
||||
//Options
|
||||
$activeMenu[] = array('moncompte', 'surveillance', 'portefeuille',
|
||||
'greffescmd', 'international_commandes', 'administration',
|
||||
'stats', 'survliste');
|
||||
require_once 'menu/defineMenu.php';
|
||||
?>
|
||||
$(document).ready(function()
|
||||
{
|
||||
<?php
|
||||
$menuIndex = 0;
|
||||
|
||||
foreach($activeMenu as $key => $pages)
|
||||
{
|
||||
if( in_array($page, $pages)) { $menuIndex = $key; break; }
|
||||
}
|
||||
if($menuIndex==0){?> $('#Menu').accordion(); <?php }
|
||||
else{?> $('#Menu').accordion('activate', <?=$menuIndex?>); <?php }
|
||||
?>
|
||||
$('#Menu').accordion(<?=activeMenu($page)?>);
|
||||
});
|
||||
</script>
|
@ -104,9 +104,14 @@ else
|
||||
<table>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200" class="StyleInfoLib">Secteur d'activité :</td>
|
||||
<td width="200" class="StyleInfoLib">Secteur d'activité :</td>
|
||||
<td width="340" class="StyleInfoData">
|
||||
<?php print $_SESSION['tabInfo']['entrep']['nafEn']; ?> - <?php print $_SESSION['tabInfo']['entrep']['nafEnLib']; ?>
|
||||
<?php
|
||||
print $_SESSION['tabInfo']['entrep']['nafEn'];
|
||||
if (isset($_SESSION['tabInfo']['entrep']['nafEnLib']) == true) {
|
||||
print ' - '.$_SESSION['tabInfo']['entrep']['nafEnLib'];
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
|
@ -1644,7 +1644,7 @@ require_once 'scoresws/scoresws.php';
|
||||
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
$etab = scoresws_indiscore($siret, $siren, $idEntreprise);
|
||||
$etab = scoresws_indiscore($siret, $siren, $idEntreprise, $niveau);
|
||||
$tabCommentaires = $etab['tabCommentaires'];
|
||||
//=> BLOC COMMENTAIRES
|
||||
?>
|
||||
|
@ -16,36 +16,6 @@ require_once 'user/user.php';
|
||||
|
||||
$etab = scoresws_identite($siret, $siren, $idEntreprise);
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('.scoreTip').each(function()
|
||||
{
|
||||
$(this).qtip(
|
||||
{
|
||||
content: {
|
||||
text: 'Chargement...',
|
||||
url: $(this).attr('rel'),
|
||||
title: { text: $(this).attr('titre')}
|
||||
},
|
||||
position: {
|
||||
corner: {
|
||||
target: 'leftMiddle',
|
||||
tooltip: 'rightMiddle'
|
||||
}
|
||||
},
|
||||
show: { solo: true},
|
||||
style: {
|
||||
tip: true,
|
||||
border: { width: 1, radius: 0 },
|
||||
name: 'light',
|
||||
width: 400
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<div id="center">
|
||||
<h1>RAPPORT DE SYNTHESE</h1>
|
||||
<table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user