583 lines
16 KiB
PHP
583 lines
16 KiB
PHP
<?php
|
|
|
|
|
|
$menu = array();
|
|
|
|
// Recherche
|
|
$children = array();
|
|
$children[] = array('data' => 'Rechercher une entreprise',
|
|
'href' => 'menu_href_recherche_ent');
|
|
$children[] = array('data' => 'Rechercher par dirigeant',
|
|
'href' => 'menu_href_recherche_dir');
|
|
$children[] = array('data' => 'Recherche Internationale',
|
|
'href' => 'menu_href_international',
|
|
'perm' => array( 'name'=>'INTERNATIONAL', 'hidden'=>true ) );
|
|
$children[] = array('data' => 'Rechercher une annonce',
|
|
'href' => 'menu_href_annonce');
|
|
$children[] = array('data' => 'Dernière recherche',
|
|
'href' => 'menu_href_list_pre');
|
|
$children[] = array('data' => 'Liste des dernières recherches',
|
|
'href' => 'menu_href_list_derniere_recherche');
|
|
$children[] = array('data' => 'Centrale IparI ©',
|
|
'href' => 'menu_href_ipari',
|
|
'perm' => array( 'name'=>'IPARI', 'hidden'=>true ) );
|
|
$menu[] = array( 'data'=> 'RECHERCHES', 'children'=>$children );
|
|
|
|
// Identité
|
|
$children = array();
|
|
$children[] = array('data' => 'Fiche d\'identité',
|
|
'href' => 'menu_href_identite');
|
|
$children[] = array('data' => 'Liste des établisssements',
|
|
'href' => 'menu_href_etablissement' );
|
|
$children[] = array('data' => 'Liens inter-entreprise',
|
|
'href' => 'menu_href_lienentreprise');
|
|
$children[] = array('data' => 'Modifications Insee',
|
|
'href' => 'menu_href_insee',
|
|
'perm' => array( 'name'=>'EVENINSEE', 'hidden'=>true ) );
|
|
$menu[] = array( 'data'=>'IDENTITÉ', 'children'=>$children);
|
|
|
|
// Dirigeants
|
|
$children = array();
|
|
$children[] = array('data' => 'Liste des dirigeants',
|
|
'href' => 'menu_href_dirigeants');
|
|
$children[] = array('data' => 'Historique des dirigeants',
|
|
'href' => 'menu_href_histodirigeants');
|
|
$menu[] = array( 'data'=>'DIRIGEANTS', 'children'=>$children);
|
|
|
|
// ELEMENTS FINANCIERS
|
|
$children = array();
|
|
$children[] = array('data' => 'Synthèse',
|
|
'href' => 'menu_href_synthese');
|
|
$children[] = array('data' => 'Bilans, Compte de résultat',
|
|
'href' => 'menu_href_bilans');
|
|
$children[] = array('data' => 'Ratios',
|
|
'href' => 'menu_href_ratios');
|
|
$children[] = array('data' => 'Liasse fiscale',
|
|
'href' => 'menu_href_liasse');
|
|
$children[] = array('data' => 'Bourse & Cotations',
|
|
'href' => 'menu_href_bourse');
|
|
$children[] = array('data' => 'Relations bancaires',
|
|
'href' => 'menu_href_banque');
|
|
$menu[] = array( 'data'=>'ELEMENTS FINANCIERS', 'children'=>$children);
|
|
|
|
// Elements juridiques
|
|
$children = array();
|
|
$children[] = array('data' => 'Annonces Légales',
|
|
'href' => 'menu_href_annonces');
|
|
$children[] = array('data' => 'Information Règlementée',
|
|
'href' => 'menu_href_infosreg');
|
|
$children[] = array('data' => 'Compétences Territoriales',
|
|
'href' => 'menu_href_competences');
|
|
$children[] = array('data' => 'Conventions collectives',
|
|
'href' => 'menu_href_conventions');
|
|
$children[] = array('data' => 'Marques déposées',
|
|
'href' => 'menu_href_marques',
|
|
'perm' => array( 'name'=>'MARQUES', 'hidden'=>true ) );
|
|
$menu[] = array( 'data'=>'ELEMENTS JURIDIQUES', 'children'=>$children);
|
|
|
|
// Evaluation
|
|
$children = array();
|
|
$children[] = array('data' => 'IndiScore ©',
|
|
'href' => 'menu_href_indiscore');
|
|
$children[] = array('data' => 'IndiScore + ©',
|
|
'href' => 'menu_href_indiscoreplus');
|
|
$children[] = array('data' => 'Scoring Credit Safe ©',
|
|
'href' => 'menu_href_creditsafe',
|
|
'perm' => array( 'name'=>'SCORECSF', 'hidden'=>true ) );
|
|
$children[] = array('data' => 'Rapport',
|
|
'href' => 'menu_href_rsynthese');
|
|
$children[] = array('data' => 'Enquête commerciale',
|
|
'href' => 'menu_href_enquetec',
|
|
'perm' => array( 'name'=>'ENQUETEC', 'hidden'=>true ) );
|
|
$menu[] = array( 'data'=>'EVALUATION', 'children'=>$children);
|
|
|
|
//Pieces officielles
|
|
$children = array();
|
|
$children[] = array('data' => 'K-Bis',
|
|
'href' => 'menu_href_kbis',
|
|
'perm' => array( 'name'=>'KBIS', 'hidden'=>true ) );
|
|
$children[] = array('data' => 'Comptes annuels',
|
|
'href' => 'menu_href_greffesbilans');
|
|
$children[] = array('data' => 'Actes & Statuts',
|
|
'href' => 'menu_href_greffesactes');
|
|
$menu[] = array( 'data'=>'PIECES OFFICIELLES', 'children'=>$children);
|
|
|
|
//Options
|
|
$children = array();
|
|
$children[] = array('data' => 'Mes options',
|
|
'href' => 'menu_href_mesoptions');
|
|
$children[] = array('data' => 'Mes surveillances',
|
|
'href' => 'menu_href_surveillances',
|
|
'perm' => array( 'name'=>'SURVLISTE', 'hidden'=>true ) );
|
|
$children[] = array('data' => 'Administration',
|
|
'href'=>'menu_href_administration');
|
|
$children[] = array('data' => 'Statistiques',
|
|
'href' => 'menu_href_stats');
|
|
$children[] = array('data' => 'Surveillances',
|
|
'href'=>'menu_href_survliste');
|
|
$children[] = array('data' => 'Se déconnecter',
|
|
'href'=>'menu_href_logout');
|
|
$menu[] = array( 'data'=>'OPTIONS', 'children'=>$children);
|
|
|
|
function menu()
|
|
{
|
|
global $menu;
|
|
$html = '';
|
|
foreach($menu as $item)
|
|
{
|
|
$href = false;
|
|
$html.= '<div class="collapsed">'."\n";
|
|
$html.= '<span>'.$item['data'].'</span>'."\n";
|
|
foreach($item['children'] as $children)
|
|
{
|
|
$href = $children['href']();
|
|
if( isset($children['perm']) )
|
|
{
|
|
if( !preg_match('/'.$children['perm']['name'].'/i', $_SESSION['tabInfo']['droits']) &&
|
|
(!isset($children['perm']['hidden']) || $children['perm']['hidden']===false) )
|
|
{
|
|
$href = '#';
|
|
}
|
|
elseif( !preg_match('/'.$children['perm']['name'].'/i', $_SESSION['tabInfo']['droits']) &&
|
|
isset($children['perm']['hidden']) && $children['perm']['hidden']===true )
|
|
{
|
|
$href = false;
|
|
}
|
|
}
|
|
if($href!==false)
|
|
{
|
|
$html.= '<a href='.$href.'>';
|
|
if($href=='#'){ $html.= '<font color="gray">'.$children['data'].'</font>'; }
|
|
else{ $html.= $children['data']; }
|
|
$html.= '</a>';
|
|
$html.= "\n";
|
|
}
|
|
}
|
|
$html.='</div>'."\n";
|
|
}
|
|
return $html;
|
|
}
|
|
|
|
function menu_href_recherche_ent()
|
|
{
|
|
return './?page=recherche&vue=ent';
|
|
}
|
|
|
|
function menu_href_recherche_dir()
|
|
{
|
|
return './?page=recherche&vue=dir';
|
|
}
|
|
|
|
function menu_href_international()
|
|
{
|
|
return './?page=international_recherche';
|
|
}
|
|
|
|
function menu_href_list_pre()
|
|
{
|
|
$href = false;
|
|
if (isset($_SESSION['list_pre']) || $_SESSION['list_pre']!=''){
|
|
return './?page=recherche&vue=list_pre';
|
|
}else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_list_derniere_recherche()
|
|
{
|
|
$href = false;
|
|
if( count($_SESSION['recherche']['list'])>0 && ( $_SESSION['tabInfo']['idClient']==1 || $_SESSION['tabInfo']['idClient']==2 ) ){
|
|
$href = './?page=recherche&vue=histo';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_annonce()
|
|
{
|
|
$href = false;
|
|
if( $_SESSION['tabInfo']['idClient']==1 ){
|
|
$href = './?page=recherche&vue=annonce';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_ipari()
|
|
{
|
|
global $siret;
|
|
if ($siret*1!=0){
|
|
return IPARI_URL.'?siret='.$siret;
|
|
} else {
|
|
return IPARI_URL;
|
|
}
|
|
}
|
|
|
|
function menu_href_identite()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1==0 && $idEntreprise*1==0){
|
|
return '#';
|
|
} else{
|
|
return './?page=identite&siret='.$siret.'&idEntreprise='.$idEntreprise; }
|
|
}
|
|
|
|
function menu_href_etablissement()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=etablissements&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_lienentreprise()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=liens&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_insee()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=evenements&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_dirigeants()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=dirigeants&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_histodirigeants()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=dirigeants&vue=histo&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_synthese()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=synthese&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_bilans()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
$href = './?page=bilans&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
}else{
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_ratios()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=ratios&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
}else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_liasse()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
$href = './?page=liasse&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_bourse()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=bourse&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_banque()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if( $_SESSION['tabInfo']['idClient']==1 ){
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
$href = './?page=banque&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else{
|
|
$href = '#';
|
|
}
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_annonces()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
|
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
|
|
$href = '#';
|
|
if(($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized'])){
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=annonces&siret='.$siret.'&source='.$source.'&idEntreprise='.$idEntreprise;
|
|
}
|
|
elseif ($siret*1==0 && (isset($idEntreprise) || $idEntreprise!=0) )
|
|
{
|
|
$href = './?page=annonces&idEntreprise='.$idEntreprise.'&idan='.$sourceId.'&siret='.$siret.'&source='.$source;
|
|
}
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_infosreg()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=infosreg&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_competences()
|
|
{
|
|
global $siret, $idEntreprise, $tabEntrep;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=competences&siret='.$siret.'&codcom='.$tabEntrep['codeCommune'].'&vue=tous&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_conventions()
|
|
{
|
|
global $siret, $idEntreprise, $tabEntrep;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=conventions&siret='.$siret.'&codcom='.$tabEntrep['codeCommune'].'&nafEn='.$tabEntrep['nafEn'].'&nafEt='.$tabEntrep['nafEt'].'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_marques()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=marques&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_indiscore()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
return './?page=indiscore&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_indiscoreplus()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
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' )
|
|
{
|
|
$href = '#';
|
|
}
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_creditsafe()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']) )
|
|
{
|
|
$href = './?page=scorescf&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
}else {
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_rsynthese()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if( ($_SESSION['tabInfo']['idClient']==1) )
|
|
{
|
|
if ( $siret*1!=0 ) {
|
|
$href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
}else{
|
|
$href = '#';
|
|
}
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_enquetec()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
$href = './?page=enquetec&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_kbis()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=kbis2&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_greffesbilans()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=greffes&vue=bilans&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
} else {
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_greffesactes()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
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 = '#'; }
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_mesoptions()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' )
|
|
{
|
|
$href = './?page=moncompte&idEntreprise='.$idEntreprise.'&siret='.$siret;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_surveillances()
|
|
{
|
|
$href = './?page=surveillance';
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_administration()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ( ($_SESSION['tabInfo']['profil']=='Administrateur' ||
|
|
$_SESSION['tabInfo']['profil']=='SuperAdministrateur') &&
|
|
$_SESSION['tabInfo']['login']<>'testreunica' &&
|
|
$_SESSION['tabInfo']['login']<>'reunicacsf' &&
|
|
$_SESSION['tabInfo']['login']<>'reunicastats')
|
|
{
|
|
$href = './?page=administration&idEntreprise='.$idEntreprise.'&siret='.$siret;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_stats()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if (($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur' ) && $_SESSION['tabInfo']['login']=='ylenaour' || $_SESSION['tabInfo']['login']=='mheitz' || $_SESSION['tabInfo']['login']=='jmartory' || $_SESSION['tabInfo']['login']=='reunicastats' )
|
|
{
|
|
$href = './?page=stats&idEntreprise='.$idEntreprise.'&siret='.$siret;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_survliste()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea' || $_SESSION['tabInfo']['idClient']==32 )
|
|
{
|
|
$href = './?page=survliste&idEntreprise='.$idEntreprise.'&siret='.$siret;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_logout()
|
|
{
|
|
return './?page=main&action=logout';
|
|
}
|