390 lines
15 KiB
PHP
390 lines
15 KiB
PHP
<?php
|
||
$siret = $_REQUEST['siret'];
|
||
$idEntreprise = $_REQUEST['idEntreprise'];
|
||
?>
|
||
<div id="floatMenu">
|
||
|
||
<div id="logo"><img src="./img/logo_menu.gif" width="200" height="65"/></div>
|
||
|
||
<div id="Menu">
|
||
<h3><a href="#">RECHERCHE</a></h3>
|
||
<div>
|
||
<ul>
|
||
<li><a href="./?page=recherche&vue=ent">Rechercher une entreprise</a></li>
|
||
<li><a href="./?page=recherche&vue=dir">Rechercher par dirigeant</a></li>
|
||
<?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' )
|
||
{
|
||
?>
|
||
<li><a href="./?page=international_recherche">Recherche internationale</a></li>
|
||
<?php
|
||
}
|
||
|
||
// Derniere recherche
|
||
if (isset($_SESSION['list_pre']) || $_SESSION['list_pre']!='')
|
||
{ $href = './?page=recherche&vue=list_pre'; } else { $href='#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){print '<font color="gray">';} ?>Dernière recherche<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
//Fin Derniere recherche
|
||
|
||
// 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; }
|
||
?>
|
||
<li><a href="<?=$href?>" target="_blank">Centrale IparI ©</a></li>
|
||
<?php
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">IDENTITÉ</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?php
|
||
// Fiche d'identite
|
||
if ($siret*1==0 && $idEntreprise*1==0)
|
||
{ $href = '#'; } else{ $href = './?page=identite&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Fiche d'identité<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
|
||
// Liste des etablissements
|
||
if ($siret*1==0)
|
||
{ $href = '#'; } else{ $href = './?page=etablissement&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liste des établisssements<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
|
||
// Liens inter-entreprise
|
||
if ($siret*1==0)
|
||
{ $href = '#'; } else{ $href = './?page=liens&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liens inter-entreprise<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
|
||
// Modifications INSEE
|
||
if (preg_match('/EVENINSEE/i', $_SESSION['tabInfo']['droits']))
|
||
{
|
||
if ($siret*1==0)
|
||
{ $href = '#'; } else{ $href = './?page=evenements&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Modifications Insee<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">DIRIGEANTS</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?php
|
||
// Liste des dirigeants
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=dirigeants&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liste des dirigeants<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?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 = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Historique des dirigeants<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">ÉLÉMENTS FINANCIERS</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?php
|
||
// Synthese
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Synthèse<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
|
||
<?php
|
||
// Bilans, Compte de r<>sultat
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Bilans, Compte de résultat<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
|
||
<?php
|
||
// Ratios
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Ratios<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
|
||
<?php
|
||
// Liasse fiscale
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liasse fiscale<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
|
||
<?php
|
||
// Bourse et Cotations
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else{ $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Bourse & Cotations<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">ÉLÉMENTS JURIDIQUES</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?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;
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Annonces Légales<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
}elseif ($siret*1==0){
|
||
if (!isset($idEntreprise) || $idEntreprise==0){ $href = '#'; } else { $href = './?page=annonces&idEntreprise='.$idEntreprise.'&idan='.$sourceId.'&siret='.$siret.'&source='.$source; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Annonces Légales<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
}
|
||
|
||
// Information R<>glement<6E>e
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=infosreg&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Information Règlementée<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?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 = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Compétences Territoriales<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?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 = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Conventions collectives<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
|
||
// Marques d<>pos<6F>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 = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Marques déposées<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">ÉVALUATION</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?php
|
||
// IndiScore
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
||
{ $href = './?page=indiscore&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>IndiScore ©<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
|
||
<?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' )
|
||
{
|
||
?>
|
||
<li><a href="#"><font color="Gray">IndiScore + ©</font></a></li>
|
||
<?php
|
||
}
|
||
}
|
||
|
||
// Scoring Credit Safe
|
||
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']) && preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits']))
|
||
{ $href = './?page=scorescf&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#';}
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Scoring Credit Safe ©<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?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 = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>">Enqu<71>te commerciale</a></li>
|
||
<?php
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">PIÉCES OFFICIELLES</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?php
|
||
// Kbis
|
||
if ($siret*1!=0)
|
||
{ $href = './?page=kbis2&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
||
if(preg_match('/KBIS/i', $_SESSION['tabInfo']['droits']))
|
||
{
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>K-Bis<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?php
|
||
}
|
||
|
||
// Compte annuels
|
||
if ($siret*1!=0)
|
||
{ $href = './?page=greffes&vue=bilans&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Comptes annuels<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
<?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 = '#'; }
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Actes & Statuts<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3><a href="#">OPTIONS</a></h3>
|
||
<div>
|
||
<ul>
|
||
<?php
|
||
// Mes Options
|
||
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' )
|
||
{
|
||
?>
|
||
<li><a href="/?page=moncompte&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Mes options</a></li>
|
||
<?php
|
||
}
|
||
|
||
// Mes Surveillances
|
||
if (preg_match('/SURVLISTE/i', $_SESSION['tabInfo']['droits']))
|
||
{ $href = './?page=surveillance'; } else { $href = '#';}
|
||
?>
|
||
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Mes surveillances<?php if($href=='#'){print '</font>';} ?></a></li>
|
||
|
||
<?php
|
||
// Administration
|
||
if ($_SESSION['tabInfo']['profil']=='Administrateur' && $_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats')
|
||
{
|
||
?>
|
||
<li><a href="/?page=administration&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Administration</a></li>
|
||
<?php
|
||
}
|
||
|
||
// Statistiques
|
||
if ($_SESSION['tabInfo']['profil']=='Administrateur' && $_SESSION['tabInfo']['login']=='ylenaour' || $_SESSION['tabInfo']['login']=='mheitz' || $_SESSION['tabInfo']['login']=='jmartory' || $_SESSION['tabInfo']['login']=='reunicastats' )
|
||
{
|
||
?>
|
||
<li><a href="/?page=stats&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Statistiques</a></li>
|
||
<?php
|
||
}
|
||
|
||
// Surveillances
|
||
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea' || $_SESSION['tabInfo']['idClient']==32 )
|
||
{
|
||
?>
|
||
<li><a href="/?page=survliste&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Surveillances</a></li>
|
||
<?php
|
||
}
|
||
|
||
// Logout
|
||
?>
|
||
<li><a href="/?page=main&action=logout">Se déconnecter</a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="icones">
|
||
<?php
|
||
//Ajout des param<61>tres optionnelles pour la page recherche (lors de la premi<6D>re recherche)
|
||
if ($page=='recherche'){
|
||
if ($_REQUEST['vue']=='list' ) $_SERVER['QUERY_STRING'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['QUERY_STRING']);
|
||
}
|
||
?>
|
||
<?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
|
||
//Affichage des impressions seulement pour certaines pages
|
||
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>
|
||
<?php
|
||
}
|
||
?>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
<?php if($page=='recherche' || $page=='international_recherche'){?>
|
||
$('#Menu').accordion('activate', 0)
|
||
<?php }elseif($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements'){ ?>
|
||
$('#Menu').accordion('activate', 1)
|
||
<?php }elseif($page=='dirigeants'){ ?>
|
||
$('#Menu').accordion('activate', 2)
|
||
<?php }elseif($page=='synthese' || $page=='bilans' || $page=='ratios' || $page=='liasse' || $page=='bourse'){ ?>
|
||
$('#Menu').accordion('activate', 3)
|
||
<?php }elseif($page=='annonces' || $page=='infosreg' || $page=='competences' || $page=='conventions' || $page=='marques'){ ?>
|
||
$('#Menu').accordion('activate', 4)
|
||
<?php }elseif($page=='indiscore' || $page=='scorecsf' || $page=='enquetec'){ ?>
|
||
$('#Menu').accordion('activate', 5)
|
||
<?php }elseif($page=='kbis' || $page=='greffes'){ ?>
|
||
$('#Menu').accordion('activate', 6)
|
||
<?php }elseif($page=='moncompte' || $page=='surveillance' || $page=='administration' || $page=='stats' || $page=='survliste'){ ?>
|
||
$('#Menu').accordion('activate', 7)
|
||
<?php }?>
|
||
});
|
||
</script>
|