extranet/www/pages/menu2.php

397 lines
16 KiB
PHP
Raw Normal View History

2009-08-31 16:04:51 +00:00
<?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>
2009-08-27 09:28:16 +00:00
<?php
// Recherche internationale
2009-09-28 10:25:27 +00:00
if (preg_match('/INTERNATIONAL/i', $_SESSION['tabInfo']['droits']))
2009-08-31 09:38:00 +00:00
{
2009-08-27 09:28:16 +00:00
?>
<li><a href="./?page=international_recherche">Recherche internationale</a></li>
2009-08-31 09:38:00 +00:00
<?php
}
// Derniere recherche
2009-08-31 09:38:00 +00:00
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&egrave;re recherche<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
// Liste des dernieres recherche
if( count($_SESSION['recherche']['list'])>0 && ( $_SESSION['tabInfo']['idClient']==1 || $_SESSION['tabInfo']['idClient']==2 ) ){
?>
<li><a href="./?page=recherche&vue=histo">Liste des derni&egrave;res recherches</a></li>
<?php
}
// Centrale IparI
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits']))
2009-08-31 09:38:00 +00:00
{
if ($siret*1!=0) { $href = IPARI_URL.'?siret='.$siret; } else { $href = IPARI_URL; }
2009-08-31 09:38:00 +00:00
?>
<li><a href="<?=$href?>" target="_blank">Centrale IparI &copy;</a></li>
2009-08-31 09:38:00 +00:00
<?php
}
?>
</ul>
</div>
<h3><a href="#">IDENTIT&Eacute;</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&eacute;<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
// Liste des etablissements
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
{ $href = './?page=etablissement&siret='.$siret.'&idEntreprise='.$idEntreprise; }else { $href = '#'; }
?>
<li><a href="<?=$href;?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Liste des &eacute;tablisssements<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
// Liens inter-entreprise
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
{ $href = './?page=liens&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#'; }
?>
<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']))
2009-08-31 09:38:00 +00:00
{
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
{ $href = './?page=evenements&siret='.$siret.'&idEntreprise='.$idEntreprise; }else { $href = '#'; }
2009-08-31 09:38:00 +00:00
?>
<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="#">&Eacute;L&Eacute;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&egrave;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&eacute;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 &amp; Cotations<?php if($href=='#'){print '</font>';} ?></a></li>
</ul>
</div>
<h3><a href="#">&Eacute;L&Eacute;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&eacute;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&eacute;gales<?php if($href=='#'){print '</font>';} ?></a></li>
2009-08-31 09:38:00 +00:00
<?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&egrave;glement&eacute;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&eacute;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&eacute;pos&eacute;es<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
}
?>
</ul>
</div>
<h3><a href="#">&Eacute;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 &copy;<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
// IndiScore+
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
2009-08-31 09:38:00 +00:00
{
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' )
2009-08-31 16:04:51 +00:00
{
?>
<li><a href="#"><font color="Gray">IndiScore + &copy;</font></a></li>
2009-08-31 09:38:00 +00:00
<?php
}
}
// Scoring Credit Safe
2009-09-28 10:25:27 +00:00
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 = '#';}
2009-08-31 09:38:00 +00:00
?>
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Scoring Credit Safe &copy;<?php if($href=='#'){print '</font>';} ?></a></li>
2009-08-31 09:38:00 +00:00
<?php
2009-09-28 10:25:27 +00:00
}
//Rapport de synth<74>se
if( ($_SESSION['tabInfo']['idClient']==1) )
{
if ( $siret*1!=0 ) { $href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise; } else { $href = '#';}
?>
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Rapport de synth<74>se<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
}
?>
2009-09-28 10:25:27 +00:00
<?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<EFBFBD>te commerciale</a></li>
<?php
2009-08-31 09:38:00 +00:00
}
?>
</ul>
</div>
<h3><a href="#">PI&Eacute;CES OFFICIELLES</a></h3>
<div>
<ul>
2009-08-31 16:04:51 +00:00
<?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 &amp; 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>
2009-08-27 09:28:16 +00:00
<?php
// Administration
2009-09-28 10:25:27 +00:00
if ($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur') && $_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&eacute;connecter</a></li>
</ul>
</div>
</div>
<div id="icones">
2009-08-27 09:28:16 +00:00
<?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']);
}
?>
2009-08-27 09:28:16 +00:00
<?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;
2009-08-27 09:28:16 +00:00
<?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;
2009-08-27 09:28:16 +00:00
<?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;
2009-08-27 09:28:16 +00:00
<?php
}
?>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
2009-08-27 09:28:16 +00:00
<?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)
2009-09-28 10:25:27 +00:00
<?php }elseif($page=='synthese' || $page=='rsynthese' || $page=='bilans' || $page=='ratios' || $page=='liasse' || $page=='bourse'){ ?>
$('#Menu').accordion('activate', 3)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='annonces' || $page=='infosreg' || $page=='competences' || $page=='conventions' || $page=='marques'){ ?>
$('#Menu').accordion('activate', 4)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='indiscore' || $page=='scorecsf' || $page=='enquetec'){ ?>
$('#Menu').accordion('activate', 5)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='kbis' || $page=='greffes'){ ?>
$('#Menu').accordion('activate', 6)
2009-08-27 09:28:16 +00:00
<?php }elseif($page=='moncompte' || $page=='surveillance' || $page=='administration' || $page=='stats' || $page=='survliste'){ ?>
$('#Menu').accordion('activate', 7)
2009-08-27 09:28:16 +00:00
<?php }?>
});
2009-08-27 09:28:16 +00:00
</script>