extranet/www/pages/menu.php

280 lines
12 KiB
PHP
Raw Blame History

<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
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 }
if (isset($_SESSION['list_pre']) || $_SESSION['list_pre']!=''){ ?>
<a href="/?page=recherche&vue=list_pre">Derni&egrave;re recherche</a>
<?php
}else{?>
<a href="#"><font color="Gray">Derni&egrave;re recherche</font></a>
<?php
}
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1<>0) {
?>
<a href="<?=IPARI_URL?>?siret=<?=$siret?>" target="_blank">Centrale IparI &copy;</a>
<?php
}else{
?>
<a href="<?=IPARI_URL?>" target="_blank">Centrale IparI &copy;</a>
<?php
}
}
?>
</div>
<div class="collapsed">
<span>IDENTITE</span>
<? if ( $siret*1==0 && $idEntreprise*1==0 ) {?>
<a href="#"><font color="Gray">Fiche d'identit&eacute;</font></a>
<? } else { ?>
<a href="/?page=identite&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Fiche d'identit&eacute;</a>
<? }
if ($siret*1<>0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']) ) {?>
<a href="/?page=etablissements&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liste des &eacute;tablissements</a>
<a href="/?page=liens&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liens inter-entreprises</a>
<? } else { ?>
<a href="#"><font color="Gray">Liste des &eacute;tablissements</font></a>
<a href="#"><font color="Gray">Liens inter-entreprises</font></a>
<? }
if (preg_match('/EVENINSEE/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1<>0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']) ) { ?>
<a href="/?page=evenements&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Modifications Insee</a>
<? } else { ?>
<a href="#"><font color="Gray">Modifications Insee</font></a>
<?
}
}
?>
<!--Identite approfondie-->
</div>
<div class="collapsed">
<span>DIRIGEANTS</span>
<? if ($siret*1<>0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) {?>
<a href="/?page=dirigeants&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liste des dirigeants</a>
<a href="/?page=dirigeants&vue=histo&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Historique des dirigeants</a>
<? } else { ?>
<a href="#"><font color="Gray">Liste des dirigeants</font></a>
<a href="#"><font color="Gray">Historique des dirigeants</font></a>
<? } ?>
</div>
<div class="collapsed">
<span>ELEMENTS FINANCIERS</span>
<? if ($siret*1<>0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) {?>
<a href="/?page=synthese&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Synth<74>se</a>
<a href="/?page=bilans&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Bilans, Compte de r<>sultat</a>
<a href="/?page=ratios&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Ratios</a>
<a href="/?page=liasse&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liasse fiscale</a>
<a href="/?page=bourse&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Bourse &amp; Cotations</a>
<?php
} else {
?>
<a href="#"><font color="Gray">Synth<74>se</font></a>
<a href="#"><font color="Gray">Bilans, Compte de r<>sultat</font></a>
<a href="#"><font color="Gray">Ratios</font></a>
<a href="#"><font color="Gray">Liasse fiscale</font></a>
<a href="#"><font color="Gray">Bourse &amp; Cotations</font></a>
<? } ?>
</div>
<div class="collapsed">
<span>ELEMENTS JURIDIQUES</span>
<?
if ($siret*1==0) {
$source = $_SESSION['tabInfo']['entrep']['Source'];
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
if(!isset($idEntreprise) || $idEntreprise==0){
?>
<a href="#"><font color="Gray">Annonces L&eacute;gales</font></a>
<?php
}else{
?>
<a href="/?page=annonces&idEntreprise=<?=$idEntreprise?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Annonces L&eacute;gales</a>
<?php
}
?>
<? }else if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) { ?>
<a href="/?page=annonces&siret=<?=$siret?>&source=<?=$source?>&idEntreprise=<?=$idEntreprise?>">Annonces L&eacute;gales</a>
<a href="/?page=infosreg&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Information R&egrave;glement&eacute;e</a>
<a href="/?page=competences&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&vue=tous&idEntreprise=<?=$idEntreprise?>">Comp&eacute;tences Territoriales</a>
<a href="/?page=conventions&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&nafEn=<?=$tabEntrep['nafEn']?>&nafEt=<?=$tabEntrep['nafEt']?>&idEntreprise=<?=$idEntreprise?>">Conventions collectives</a>
<? } else { ?>
<a href="#"><font color="Gray">Information R&egrave;glement&eacute;e</font></a>
<a href="#"><font color="Gray">Comp&eacute;tences Territoriales</font></a>
<a href="#"><font color="Gray">Conventions collectives</font></a>
<? }
if (preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) { ?>
<a href="/?page=marques&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Marques d&eacute;pos&eacute;es</a>
<? } else { ?>
<a href="#"><font color="Gray">Marques d&eacute;pos&eacute;es</font></a>
<? }
}
?>
</div>
<div class="collapsed">
<span>EVALUATION</span>
<?
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) {
?>
<a href="/?page=indiscore&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">indiScore &copy;</a>
<?
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 + &copy;</font></a>
<?
if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="/?page=scorescf&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">scoring Credit Safe &copy;</a>
<? }
}
if (preg_match('/enquetec/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="/?page=enquetec&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Enqu<71>te commerciale</a>
<?php
}
} else { ?>
<a href="#"><font color="Gray">indiScore &copy;</font></a>
<?
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 + &copy;</font></a>
<?
if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="#"><font color="Gray">scoring Credit Safe &copy;</font></a>
<? }
}
}
?>
</div>
<div class="collapsed">
<span>PIECES OFFICIELLES</span>
<? if ($siret*1!=0) {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="/?page=kbis2&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">K-Bis</a>
<?
}
?>
<a href="/?page=greffes&vue=bilans&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Comptes annuels</a>
<a href="/?page=greffes&vue=actes&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Actes &amp; Statuts</a>
<? } elseif ($siret==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">K-Bis</font></a>
<? } ?>
<a href="#"><font color="Gray">Comptes annuels</font></a>
<?php
if(!isset($idEntreprise) || $idEntreprise==0){
?>
<a href="#"><font color="Gray">Actes &amp; Status</font></a>
<?php
}else{
?>
<a href="/?page=greffes&vue=actes&idEntreprise=<?=$idEntreprise?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Actes &amp; Statuts</a>
<?php
}
?>
<? } else {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">K-Bis</font></a>
<? } ?>
<a href="#"><font color="Gray">Comptes annuels</font></a>
<a href="#"><font color="Gray">Actes &amp; Statuts</font></a>
<? } ?>
</div>
<div class="collapsed">
<span>OPTIONS</span>
<? if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
<a href="/?page=moncompte&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Mes options</a>
<? }
if (preg_match('/SURVLISTE/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="/?page=surveillance&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Mes surveillances</a>
<?php
}else{
?>
<a href="#"><font color="Gray">Mes surveillances</font></a>
<?php
}
if ($_SESSION['tabInfo']['profil']=='Administrateur') {
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
<a href="/?page=administration&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Administration</a>
<? }
if ($_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>
<? }
}
if ( substr($_SESSION['tabInfo']['login'],0,6)=='cnasea' || $_SESSION['tabInfo']['idClient']==32) { ?>
<a href="/?page=survliste&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Surveillances</a>
<? } ?>
<a href="/?page=main&action=logout">Se d&eacute;connecter</a>
</div>
<?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']);
}
?>
<span>&nbsp;</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>&nbsp;
<?php
//Affichage des impressions seulement pour certaines pages
if ($page=='identite' || $page=='etablissements' || $page=='liens' || $page=='evenements' || $page=='dirigeants' || $page=='synthese' || $page=='bilans' || $page=='liasse' || $page=='bourse' || $page=='annonces'){
?>
<a href="./exportpdf.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" title="PDF"><img src="./img/exporticones/pdf.png" alt="PDF"></a>&nbsp;
<?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>&nbsp;
<?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>&nbsp;
</center>
<?php
}
?>
</div>
</layer>
<script type="text/javascript" src="./js/menubottom.js"></script>