extranet/www/pages/menu.php

298 lines
11 KiB
PHP
Raw Normal View 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 (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'])) {
2009-03-24 08:10:20 +00:00
if ($siret*1<>0) {
?>
<a href="<?=IPARI_URL?>?siret=<?=$siret?>" target="_blank">IparI &copy;</a>
2009-03-24 08:10:20 +00:00
<?php
}else{
?>
<a href="<?=IPARI_URL?>" target="_blank">IparI &copy;</a>
2009-03-24 08:10:20 +00:00
<?php
}
}
?>
</div>
<div class="collapsed">
<span>IDENTITE</span>
2009-03-11 07:51:18 +00:00
<? if ($siret*1==0 && $idEntreprise*1==0) {?>
<a href="#"><font color="Gray">Fiche d'identit&eacute;</font></a>
<? } else { ?>
2009-03-11 07:51:18 +00:00
<a href="/?page=identite&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Fiche d'identit&eacute;</a>
<? }
if ($siret*1<>0) {?>
2009-03-11 07:51:18 +00:00
<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) { ?>
2009-03-11 07:51:18 +00:00
<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) {?>
2009-03-11 07:51:18 +00:00
<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) {?>
2009-03-31 12:39:18 +00:00
<a href="/?page=synthese&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Synth<EFBFBD>se</a>
<a href="/?page=bilans2&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Bilans, Compte de r<EFBFBD>sultat</a>
2009-03-11 07:51:18 +00:00
<a href="/?page=liasse&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Liasse fiscale</a>
<a href="/?page=bourse&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">Bourse &amp; Cotations</a>
<? } else { ?>
2009-03-31 12:39:18 +00:00
<a href="#"><font color="Gray">Synth<EFBFBD>se</font></a>
<a href="#"><font color="Gray">Bilans, Compte de r<EFBFBD>sultat</font></a>
<a href="#"><font color="Gray">Liasse fiscale</font></a>
<a href="#"><font color="Gray">Bourse &amp; Cotations</font></a>
2009-03-31 12:39:18 +00:00
<? } ?>
</div>
<div class="collapsed">
<span>ELEMENTS JURIDIQUES</span>
<?
if ($siret*1==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
2009-03-11 07:51:18 +00:00
if(!isset($idEntreprise) || $idEntreprise==0){
?>
<a href="#"><font color="Gray">Annonces L&eacute;gales</font></a>
<?php
}else{
?>
2009-03-11 07:51:18 +00:00
<a href="/?page=annonces&idEntreprise=<?=$idEntreprise?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Annonces L&eacute;gales</a>
<?php
}
?>
<? }else if ($siret*1<>0) { ?>
2009-03-11 07:51:18 +00:00
<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) { ?>
2009-03-11 07:51:18 +00:00
<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) {?>
2009-03-11 07:51:18 +00:00
<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'])) { ?>
2009-03-11 07:51:18 +00:00
<a href="/?page=scorescf&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">scoring Credit Safe &copy;</a>
<? }
}
} 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']) || $_SESSION['tabInfo']['login']=='mricois') {
?>
2009-03-11 07:51:18 +00:00
<a href="/?page=kbis&siret=<?=$siret?>&idEntreprise=<?=$idEntreprise?>">K-Bis</a>
<?
} ?>
2009-03-11 07:51:18 +00:00
<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
2009-03-11 07:51:18 +00:00
if(!isset($idEntreprise) || $idEntreprise==0){
?>
<a href="#"><font color="Gray">Actes &amp; Status</font></a>
<?php
}else{
?>
2009-03-11 07:51:18 +00:00
<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' ) { ?>
2009-03-11 07:51:18 +00:00
<a href="/?page=moncompte&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Mes options</a>
<? }
if ($_SESSION['tabInfo']['profil']=='Administrateur') {
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
2009-03-11 07:51:18 +00:00
<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' ) { ?>
2009-03-11 07:51:18 +00:00
<a href="/?page=stats&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Statistiques</a>
<? }
}
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea' ) { ?>
2009-03-11 07:51:18 +00:00
<a href="/?page=survliste&idEntreprise=<?=$idEntreprise?>&siret=<?=$siret?>">Surveillances</a>
<? }
?>
<a href="/?page=main&action=logout">Se d&eacute;connecter</a>
</div>
2009-03-09 14:23:25 +00:00
2009-03-06 16:26:26 +00:00
<?php
//Ajout des param<61>tres optionnelles pour la page recherche (lors de la premi<6D>re recherche)
2009-03-06 17:12:26 +00:00
if ($page=='recherche'){
if ($_REQUEST['vue']=='list' ) $_SERVER['QUERY_STRING'] = str_replace('vue=list', 'vue=list_pre', $_SERVER['QUERY_STRING']);
2009-03-06 16:26:26 +00:00
}
?>
2009-03-09 14:23:25 +00:00
<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" alt="Impression" target="_blank">
2009-03-09 17:57:38 +00:00
<img src="./img/exporticones/printer.png"" alt="Impression"/></a>&nbsp;
2009-03-06 16:26:26 +00:00
<?php
//Affichage des impressions seulement pour certaines pages
2009-03-06 17:12:26 +00:00
if ($page=='identite' ||
$page=='etablissements' ||
$page=='liens' ||
$page=='evenements' ||
$page=='dirigeants'){
2009-03-06 16:26:26 +00:00
?>
2009-03-09 17:57:38 +00:00
<a href="./exportpdf.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" alt="PDF"><img src="./img/exporticones/pdf.png" alt="PDF"></a>&nbsp;
<a href="./exportcsv.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" alt="CSV"><img src="./img/exporticones/csv.png" alt="CSV"></a>&nbsp;
<a href="./exportxml.php?<?=$_SERVER['QUERY_STRING'];?>" target="_blank" alt="XML"><img src="./img/exporticones/xml.png" alt="XML"></a>&nbsp;
2009-03-09 14:23:25 +00:00
<center>
2009-03-06 16:26:26 +00:00
<?php
2009-03-06 17:12:26 +00:00
}
2009-03-06 16:26:26 +00:00
?>
</div>
</layer>
<script type="text/javascript">
/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
//Enter "frombottom" or "fromtop"
var verticalpos="fromtop";
if (!document.layers) document.write('</div>');
function JSFX_FloatTopDiv()
{
var startX = getImagePageLeft(document.getElementById("MainPage"))-215;
startY = getImagePageTop(document.getElementById("MainPage"))+20;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();
2009-03-06 16:26:26 +00:00
</script>