Intégration des changements du menu

This commit is contained in:
Michael RICOIS 2009-09-28 10:25:27 +00:00
parent 2baddbf1d0
commit 67305e429e

View File

@ -14,13 +14,7 @@ $idEntreprise = $_REQUEST['idEntreprise'];
<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' )
if (preg_match('/INTERNATIONAL/i', $_SESSION['tabInfo']['droits']))
{
?>
<li><a href="./?page=international_recherche">Recherche internationale</a></li>
@ -226,12 +220,26 @@ if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthor
}
// 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 = '#';}
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 = '#';}
?>
<li><a href="<?=$href?>"><?php if($href=='#'){ print '<font color="gray">';} ?>Scoring Credit Safe &copy;<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
}
//Rapport de synthè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èse<?php if($href=='#'){print '</font>';} ?></a></li>
<?php
}
?>
<?php
// Enquete commerciale
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
{
@ -300,7 +308,7 @@ if (preg_match('/SURVLISTE/i', $_SESSION['tabInfo']['droits']))
<?php
// Administration
if ($_SESSION['tabInfo']['profil']=='Administrateur' && $_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats')
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>
@ -374,7 +382,7 @@ $('#Menu').accordion('activate', 0)
$('#Menu').accordion('activate', 1)
<?php }elseif($page=='dirigeants'){ ?>
$('#Menu').accordion('activate', 2)
<?php }elseif($page=='synthese' || $page=='bilans' || $page=='ratios' || $page=='liasse' || $page=='bourse'){ ?>
<?php }elseif($page=='synthese' || $page=='rsynthese' || $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)