363 lines
15 KiB
PHP
363 lines
15 KiB
PHP
<script> if (!document.layers){ document.write('<div id="divStayTopLeft" style="position:absolute">'); }</script>
|
|
<layer id="divStayTopLeft">
|
|
<div style="float:left" id="my_menu" class="sdmenu">
|
|
<img src="./img/logo_menu.gif" width="200" height="65">
|
|
|
|
<div class="collapsed">
|
|
<span>RECHERCHES</span>
|
|
<a href="/?page=recherche&vue=ent">Rechercher une entreprise</a>
|
|
<a href="/?page=recherche&vue=dir">Rechercher par dirigeant</a>
|
|
<?php
|
|
// Recherche internationale
|
|
if ($_SESSION['tabInfo']['login']=='mricois'
|
|
|| $_SESSION['tabInfo']['login']=='mheitz'
|
|
|| $_SESSION['tabInfo']['login']=='jmartory'
|
|
|| $_SESSION['tabInfo']['login']=='ylenaour'
|
|
|| $_SESSION['tabInfo']['login']=='fzicaro'
|
|
|| $_SESSION['tabInfo']['login']=='mcochet'
|
|
|| $_SESSION['tabInfo']['login']=='olecce' ){
|
|
?>
|
|
<a href="/?page=international_recherche">Recherche Internationale</a>
|
|
<?php
|
|
}
|
|
|
|
// Derniere recherche
|
|
if (isset($_SESSION['list_pre']) || $_SESSION['list_pre']!='')
|
|
{ $href = './?page=recherche&vue=list_pre'; } else { $href='#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){print '<font color="gray">';} ?>Dernière recherche<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Liste des dernieres recherche
|
|
if( count($_SESSION['recherche']['list'])>0 && ( $_SESSION['tabInfo']['idClient']==1 || $_SESSION['tabInfo']['idClient']==2 ) ){
|
|
?>
|
|
<a href="/?page=recherche&vue=histo">Liste des dernières recherches</a>
|
|
<?php
|
|
}
|
|
|
|
// Centrale IparI
|
|
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits']))
|
|
{
|
|
if ($siret*1!=0) { $href = IPARI_URL.'?siret='.$siret; } else { $href = IPARI_URL; }
|
|
?>
|
|
<a href="<?=$href?>" target="_blank">Centrale IparI ©</a>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<div class="collapsed">
|
|
<span>IDENTITE</span>
|
|
<?php
|
|
// Fiche d'identite
|
|
if ($siret*1==0 && $idEntreprise*1==0)
|
|
{ $href = '#'; } else{ $href = './?page=identite&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Fiche d'identité<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Liste des etablissements
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=etablissements&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liste des établisssements<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Liens inter-entreprise
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=liens&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liens inter-entreprise<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Modifications INSEE
|
|
if (preg_match('/EVENINSEE/i', $_SESSION['tabInfo']['droits']))
|
|
{
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=evenements&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Modifications Insee<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}
|
|
?>
|
|
<!--Identite approfondie-->
|
|
</div>
|
|
|
|
<div class="collapsed">
|
|
<span>DIRIGEANTS</span>
|
|
<?php
|
|
// Liste des dirigeants
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=dirigeants&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liste des dirigeants<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Historique des dirigeants
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=dirigeants&vue=histo&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Historique des dirigeants<?php if($href=='#'){print '</font>';} ?></a>
|
|
</div>
|
|
|
|
<div class="collapsed">
|
|
<span>ELEMENTS FINANCIERS</span>
|
|
<?php
|
|
// Synthese
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Synthèse<?php if($href=='#'){print '</font>';} ?></a>
|
|
|
|
<?php
|
|
// Bilans, Compte de résultat
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=bilans&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Bilans, Compte de résultat<?php if($href=='#'){print '</font>';} ?></a>
|
|
|
|
<?php
|
|
// Ratios
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=ratios&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Ratios<?php if($href=='#'){print '</font>';} ?></a>
|
|
|
|
<?php
|
|
// Liasse fiscale
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=liasse&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liasse fiscale<?php if($href=='#'){print '</font>';} ?></a>
|
|
|
|
<?php
|
|
// Bourse et Cotations
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=bourse&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
|
?>
|
|
<a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Bourse & Cotations<?php if($href=='#'){print '</font>';} ?></a>
|
|
</div>
|
|
|
|
<div class="collapsed">
|
|
<span>ELEMENTS JURIDIQUES</span>
|
|
<?php
|
|
// Annonces Legales
|
|
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
|
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
$href = './?page=annonces&siret='.$siret.'&source='.$source.'&idEntreprise='.$idEntreprise;
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Annonces Légales<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}elseif ($siret*1==0){
|
|
if (!isset($idEntreprise) || $idEntreprise==0){ $href = '#'; } else { $href = './?page=annonces&idEntreprise='.$idEntreprise.'&idan='.$sourceId.'&siret='.$siret.'&source='.$source; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Annonces Légales<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}
|
|
|
|
// Information Réglementée
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=infosreg&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Information Règlementée<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Competences territoriales
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=competences&siret='.$siret.'&codcom='.$tabEntrep['codeCommune'].'&vue=tous&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Compétences Territoriales<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Convention collective
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=conventions&siret='.$siret.'&codcom='.$tabEntrep['codeCommune'].'&nafEn='.$tabEntrep['nafEn'].'&nafEt='.$tabEntrep['nafEt'].'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Conventions collectives<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Marques déposés
|
|
if (preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits'])) {
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=marques&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Marques déposées<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="collapsed">
|
|
|
|
<span>EVALUATION</span>
|
|
<?php
|
|
// IndiScore
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{ $href = './?page=indiscore&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>IndiScore ©<?php if($href=='#'){print '</font>';} ?></a>
|
|
|
|
<?php
|
|
// IndiScore+
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
if ($_SESSION['tabInfo']['login']=='reunicacsf' || $_SESSION['tabInfo']['login']=='testreunica' || $_SESSION['tabInfo']['login']=='ylenaour' || $_SESSION['tabInfo']['login']=='mheitz' || $_SESSION['tabInfo']['login']=='mricois' || $_SESSION['tabInfo']['login']=='jmartory' )
|
|
{
|
|
?>
|
|
<a href="#"><font color="Gray">IndiScore + ©</font></a>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
// Scoring Credit Safe
|
|
if ( preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits']) )
|
|
{
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']) ) { $href = './?page=scorescf&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#';}
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Scoring Credit Safe ©<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}
|
|
|
|
//Rapport de synthèse
|
|
if( ($_SESSION['tabInfo']['login']=='mricois') )
|
|
{
|
|
if ( $siret*1!=0 ) { $href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#';}
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Rapport de synthèse<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
// Enquete commerciale
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
if (preg_match('/enquetec/i', $_SESSION['tabInfo']['droits']))
|
|
{ $href = './?page=enquetec&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>">Enquête commerciale</a>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<div class="collapsed">
|
|
<span>PIECES OFFICIELLES</span>
|
|
<?php
|
|
// Kbis
|
|
if ($siret*1!=0)
|
|
{ $href = './?page=kbis2&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
if(preg_match('/KBIS/i', $_SESSION['tabInfo']['droits']))
|
|
{
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>K-Bis<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
}
|
|
|
|
// Compte annuels
|
|
if ($siret*1!=0)
|
|
{ $href = './?page=greffes&vue=bilans&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Comptes annuels<?php if($href=='#'){print '</font>';} ?></a>
|
|
<?php
|
|
|
|
// Actes et statuts
|
|
if ($siret*1!=0) { $href = './?page=greffes&vue=actes&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
|
elseif ( $siret==0 && isset($idEntreprise) && $idEntreprise!=0 )
|
|
{
|
|
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
|
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
|
|
$href = '/?page=greffes&vue=actes&idEntreprise='.$idEntreprise.'&idan='.$sourceId.'&siret='.$siret.'&source='.$source;
|
|
}
|
|
else { $href = '#'; }
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Actes & Statuts<?php if($href=='#'){print '</font>';} ?></a>
|
|
</div>
|
|
|
|
<div class="collapsed">
|
|
<span>OPTIONS</span>
|
|
<?php
|
|
// Mes Options
|
|
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' )
|
|
{
|
|
?>
|
|
<a href="/?page=moncompte&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Mes options</a>
|
|
<?php
|
|
}
|
|
|
|
// Mes Surveillances
|
|
if (preg_match('/SURVLISTE/i', $_SESSION['tabInfo']['droits']))
|
|
{ $href = './?page=surveillance'; } else { $href = '#';}
|
|
?>
|
|
<a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Mes surveillances<?php if($href=='#'){print '</font>';} ?></a>
|
|
|
|
<?php
|
|
// Administration
|
|
if ( ($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur') && $_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats')
|
|
{
|
|
?>
|
|
<a href="/?page=administration&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Administration</a>
|
|
<?php
|
|
}
|
|
|
|
// Statistiques
|
|
if (($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur' ) && $_SESSION['tabInfo']['login']=='ylenaour' || $_SESSION['tabInfo']['login']=='mheitz' || $_SESSION['tabInfo']['login']=='jmartory' || $_SESSION['tabInfo']['login']=='reunicastats' )
|
|
{
|
|
?>
|
|
<a href="/?page=stats&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Statistiques</a>
|
|
<?php
|
|
}
|
|
|
|
// Surveillances
|
|
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea' || $_SESSION['tabInfo']['idClient']==32 )
|
|
{
|
|
?>
|
|
<a href="/?page=survliste&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Surveillances</a>
|
|
<?php
|
|
}
|
|
|
|
// Logout
|
|
?>
|
|
<a href="/?page=main&action=logout">Se déconnecter</a>
|
|
</div>
|
|
|
|
<?php
|
|
//Ajout des paramètres optionnelles pour la page recherche (lors de la première recherche)
|
|
if ($page=='recherche'){
|
|
if ($_REQUEST['vue']=='list' ) $_SERVER['QUERY_STRING'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['QUERY_STRING']);
|
|
}
|
|
?>
|
|
<span> </span>
|
|
<center>
|
|
<?php
|
|
$printUrl = $_SERVER['QUERY_STRING'];
|
|
if ($page=='bilans' && isset($_REQUEST['type']) && $_REQUEST['type']!=''){
|
|
$printUrl.= '&type='.$_REQUEST['type'];
|
|
}
|
|
|
|
?>
|
|
<a href="/?<?=$printUrl;?>&sortie=prt" title="Impression" target="_blank">
|
|
<img src="./img/exporticones/printer.png"" alt="Impression"/></a>
|
|
<?php
|
|
if($page!='recherche' || $page=='')
|
|
{
|
|
?>
|
|
<a href="./?<?=$_SERVER['QUERY_STRING'];?>&sortie=pdf" target="_blank" title="PDF"><img src="./img/exporticones/pdf.png" alt="PDF"></a>
|
|
<?php
|
|
}
|
|
if ($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements' || $page=='dirigeants'){
|
|
?>
|
|
<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>
|
|
</center>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
</layer>
|
|
<script type="text/javascript" src="./js/menubottom.js"></script>
|