extranet/www/pages/menu2.php
2009-09-02 12:12:45 +00:00

315 lines
13 KiB
PHP
Raw Blame History

<?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']!='')
{
?>
<li><a href="/?page=recherche&vue=list_pre">Derni&egrave;re recherche</a></li>
<?php
}
else
{
?>
<li><a href="#"><font color="gray">Derni&egrave;re recherche</font></a></li>
<?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&egrave;res recherches</a>
<?php
}
// Centrale IparI
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits']))
{
if ($siret*1!=0)
{
?>
<li><a href="<?=IPARI_URL?>?siret=<?=$siret?>" target="_blank">Centrale IparI &copy;</a></li>
<?php
}
else
{
?>
<li><a href="<?=IPARI_URL?>" target="_blank">Centrale IparI &copy;</a></li>
<?php
}
}
?>
</ul>
</div>
<h3><a href="#">IDENTIT&Eacute;</a></h3>
<div>
<ul>
<?php
//Fiche d'indentite
if ($siret*1==0 && $idEntreprise*1==0)
{?>
<li><a href="#"><font color="Gray">Fiche d'identit&eacute;</font></a></li>
<?php
}
else
{
?>
<li><a href="/?page=identite&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Fiche d'identit&eacute;</a></li>
<?php
}
if ($siret*1!=0)
{
?>
<li><a href="/?page=etablissements&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liste des &eacute;tablisssements</a></li>
<li><a href="/?page=liens&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liens inter-entreprise</a></li>
<?php } else { ?>
<li><a href="#"><font color="Gray">Liste des &eacute;tablisssements</font></a></li>
<li><a href="#"><font color="Gray">Liens inter-entreprise</font></a></li>
<?php }
if (preg_match('/EVENINSEE/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1<>0) { ?>
<li><a href="/?page=evenements&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Modifications Insee</a></li>
<?php } else { ?>
<li><a href="#"><font color="Gray">Modifications Insee</font></a></li>
<?php }
}?>
</ul>
</div>
<h3><a href="#">DIRIGEANTS</a></h3>
<div>
<ul>
<?php if ($siret*1<>0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) {?>
<li><a href="/?page=dirigeants&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liste des dirigeants</a></li>
<li><a href="/?page=dirigeants&vue=histo&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Historique des dirigeants</a></li>
<?php }else{ ?>
<li><a href="#"><font color="Gray">Liste des dirigeants</font></a></li>
<li><a href="#"><font color="Gray">Historique des dirigeants</font></a></li>
<?php } ?>
</ul>
</div>
<h3><a href="#">&Eacute;L&Eacute;MENTS FINANCIERS</a></h3>
<div>
<ul>
<?php if ($siret*1<>0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) {?>
<li><a href="/?page=synthese&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Synth&egrave;se</a></li>
<li><a href="/?page=bilans&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Bilans, Compte de r&eacute;sultat</a></li>
<li><a href="/?page=ratios&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Ratios</a></li>
<li><a href="/?page=liasse&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liasse fiscale</a></li>
<li><a href="/?page=bourse&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Bourse &amp; Cotations</a></li>
<?php }else{ ?>
<li><a href=""><font color="Gray">Synth&egrave;se</font></a></li>
<li><a href=""><font color="Gray">Bilans, Compte de r&eacute;sultat</font></a></li>
<li><a href=""><font color="Gray">Ratios</font></a></li>
<li><a href=""><font color="Gray">Liasse fiscale</font></a></li>
<li><a href=""><font color="Gray">Bourse &amp; Cotations</font></a></li>
<?php } ?>
</ul>
</div>
<h3><a href="#">&Eacute;L&Eacute;MENTS JURIDIQUES</a></h3>
<div>
<ul>
<?php
if ($siret*1==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
if(!isset($idEntreprise) || $idEntreprise==0){
?>
<li><a href="#"><font color="Gray">Annonces L&eacute;gales</font></a></li>
<?php }else{?>
<li><a href="/?page=annonces&idEntreprise=<?=$idEntreprise?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Annonces L&eacute;gales</a></li>
<?php }
}else if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) { ?>
<li><a href="/?page=annonces&siret=<?=$siret?>&source=<?=$source?>&idEntreprise=<?=$idEntreprise?>">Annonces L&eacute;gales</a></li>
<li><a href="/?page=infosreg&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Information R&egrave;glement&eacute;e</a></li>
<li><a href="/?page=competences&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&vue=tous&idEntreprise=<?=$idEntreprise?>">Comp&eacute;tences Territoriales</a></li>
<li><a href="/?page=conventions&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&nafEn=<?=$tabEntrep['nafEn']?>&nafEt=<?=$tabEntrep['nafEt']?>&idEntreprise=<?=$idEntreprise?>">Conventions collectives</a></li>
<?php
} else { ?>
<li><a href="#"><font color="Gray">Information R&eacute;glement&eacute;e</font></a></li>
<li><a href="#"><font color="Gray">Comp&eacute;tences Territoriales</font></a></li>
<li><a href="#"><font color="Gray">Conventions collectives</font></a></li>
<?php
}
if (preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) { ?>
<li><a href="/?page=marques&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Marques d&eacute;pos&eacute;es</a></li>
<?php } else { ?>
<li><a href="#"><font color="Gray">Marques d&eacute;pos&eacute;es</font></a></li>
<?php }
}?>
</ul>
</div>
<h3><a href="#">&Eacute;VALUATION</a></h3>
<div>
<ul>
<?php
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])) {?>
<li><a href="/?page=indiscore&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">IndiScore &copy;</a></li>
<?php 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 + &copy;</font></a></li>
<?php if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
<li><a href="/?page=scorescf&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Scoring Credit Safe &copy;</a></li>
<?php }
}
if (preg_match('/enquetec/i', $_SESSION['tabInfo']['droits'])) {?>
<li><a href="/?page=enquetec&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Enqu<71>te commerciale</a></li>
<?php }
}else{
?>
<li><a href="#"><font color="Gray">IndiScore &copy;</font></a></li>
<?php 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 + &copy;</font></a></li>
<?php if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
<li><a href="#"><font color="Gray">Scoring Credit Safe &copy;</font></a></li>
<?php }
}
}?>
</ul>
</div>
<h3><a href="#">PI&Eacute;CES OFFICIELLES</a></h3>
<div>
<ul>
<?php
if ($siret*1!=0) {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) {?>
<li><a href="/?page=kbis2&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">K-Bis</a></li>
<?php }?>
<li><a href="/?page=greffes&vue=bilans&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Comptes annuels</a></li>
<li><a href="/?page=greffes&vue=actes&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Actes &amp; Statuts</a></li>
<?php
} elseif ($siret==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) {
?>
<li><a href="#"><font color="Gray">K-Bis</font></a></li>
<?php } ?>
<li><a href="#"><font color="Gray">Comptes annuels</font></a></li>
<?php if(!isset($idEntreprise) || $idEntreprise==0){?>
<li><a href="#"><font color="Gray">Actes &amp; Status</font></a></li>
<?php }else{ ?>
<li><a href="/?page=greffes&vue=actes&idEntreprise=<?=$idEntreprise?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Actes &amp; Statuts</a></li>
<?php }
} else {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<li><a href="#"><font color="Gray">K-Bis</font></a></li>
<?php } ?>
<li><a href="#"><font color="Gray">Comptes annuels</font></a></li>
<li><a href="#"><font color="Gray">Actes &amp; Statuts</font></a></li>
<?php
}?>
</ul>
</div>
<h3><a href="#">OPTIONS</a></h3>
<div>
<ul>
<?php 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 }
if (preg_match('/SURVLISTE/i', $_SESSION['tabInfo']['droits'])) { ?>
<li><a href="/?page=surveillance">Mes surveillances</a></li>
<?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' ) { ?>
<li><a href="/?page=administration&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Administration</a></li>
<?php }
if ($_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 }
}
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 } ?>
<li><a href="/?page=main&action=logout">Se d&eacute;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>&nbsp;
<?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>&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;
<?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>