930 lines
23 KiB
PHP
930 lines
23 KiB
PHP
<?php
|
|
require_once 'user/user.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(
|
|
'list' => array( '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(
|
|
'list' => array( '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' => 'Fiche AGS',
|
|
'href' => 'menu_href_identite_profil',
|
|
'profil' => array('name'=>'identite','hidden'=>true));
|
|
$children[] = array('data' => 'Liste des établissements',
|
|
'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(
|
|
'list' => array( '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(
|
|
'list' => array( 'MARQUES' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
$menu[] = array( 'data'=>'ELEMENTS JURIDIQUES', 'children'=>$children);
|
|
|
|
// Banque de France
|
|
$children = array();
|
|
$children[] = array('data' => '27. Panorama',
|
|
'href' => 'menu_href_bdf27');
|
|
$children[] = array('data' => '28. Concours Bancaires',
|
|
'href' => 'menu_href_bdf28');
|
|
$children[] = array('data' => '29. Impayés',
|
|
'href' => 'menu_href_bdf29');
|
|
$children[] = array('data' => '37. Cotation',
|
|
'href' => 'menu_href_bdf37');
|
|
$children[] = array('data' => '40. Relations Bancaires',
|
|
'href' => 'menu_href_bdf40');
|
|
$children[] = array('data' => '51. Dirigeants',
|
|
'href' => 'menu_href_bdf51');
|
|
$children[] = array('data' => 'Autres',
|
|
'href' => 'menu_href_bdfautres');
|
|
$menu[] = array( 'data' => 'BANQUE DE FRANCE', 'children'=>$children,
|
|
'perm' =>
|
|
array(
|
|
'list' => array('BDF'),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
|
|
// Evaluation
|
|
$children = array();
|
|
$children[] = array('data' => 'IndiScore ©',
|
|
'href' => 'menu_href_indiscore',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'INDISCORE' ),
|
|
'hidden' => false
|
|
)
|
|
);
|
|
$children[] = array('data' => 'IndiScore + ©',
|
|
'href' => 'menu_href_indiscoreplus');
|
|
$children[] = array('data' => 'Rapport synthétique',
|
|
'href' => 'menu_href_rsynthesemin',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'INDISCORE2' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
$children[] = array('data' => 'Rapport complet A',
|
|
'href' => 'menu_href_rsynthesea',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'INDISCORE3' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
$children[] = array('data' => 'Rapport complet B',
|
|
'href' => 'menu_href_rsyntheseb',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'INDISCORE3' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
$children[] = array('data' => 'Scoring Credit Safe ©',
|
|
'href' => 'menu_href_creditsafe',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'SCORECSF' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
$children[] = array('data' => 'Enquête commerciale',
|
|
'href' => 'menu_href_enquetec',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'ENQUETEC' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
$menu[] = array( 'data'=>'EVALUATION', 'children'=>$children);
|
|
|
|
//Pieces officielles
|
|
$children = array();
|
|
$children[] = array('data' => 'Commande de Pièces',
|
|
'href' => 'menu_href_pieces',
|
|
'perm' =>
|
|
array(
|
|
'list' => array( 'kbis', 'privileges' ),
|
|
'hidden' => true
|
|
)
|
|
);
|
|
/*$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('list' => array('SURVLISTE'),
|
|
'hidden' => true));
|
|
$children[] = array('data' => 'Mon portefeuille',
|
|
'href' => 'menu_href_portefeuille',
|
|
'perm' => array('list' => array( 'PORTEFEUILLE' ),
|
|
'hidden' => true));
|
|
$children[] = array('data' => 'Administration',
|
|
'href' => 'menu_href_administration');
|
|
$children[] = array('data' => 'Commandes Greffe',
|
|
'href' => 'menu_href_greffescmd');
|
|
$children[] = array('data' => 'Commandes Greffe Courrier',
|
|
'href' => 'menu_href_greffescmdcourrier');
|
|
$children[] = array('data' => 'Commandes International',
|
|
'href' => 'menu_href_internationalcmd');
|
|
$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, $firephp;
|
|
$html = '';
|
|
foreach($menu as $item)
|
|
{
|
|
$href = false;
|
|
//Gestion des permissions sur le menu
|
|
$displayMenu = true;
|
|
if( isset($item['perm']) )
|
|
{
|
|
$permStatut = false;
|
|
foreach($item['perm']['list'] as $perm)
|
|
{
|
|
$permStatut = $permStatut || hasPerm($perm);
|
|
}
|
|
if(!$permStatut)
|
|
{
|
|
if( !isset($item['perm']['hidden']) ||
|
|
$item['perm']['hidden']===false )
|
|
{
|
|
$displayMenu = true;
|
|
}
|
|
elseif( isset($item['perm']['hidden']) &&
|
|
$item['perm']['hidden']===true )
|
|
{
|
|
$displayMenu = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
if($displayMenu)
|
|
{
|
|
$html.= '<h3><a href="#">'.$item['data'].'</a></h3>'."\n";
|
|
$html.= '<div>'."\n";
|
|
$html.= '<ul>'."\n";
|
|
foreach($item['children'] as $children)
|
|
{
|
|
$html.= menu_children($children);
|
|
}
|
|
$html.= '</ul>'."\n";
|
|
$html.= '</div>'."\n";
|
|
}
|
|
}
|
|
return $html;
|
|
}
|
|
|
|
function menu_children($children)
|
|
{
|
|
global $firephp;
|
|
//Génération du lien
|
|
$href = false;
|
|
if( $children['href']!='' && function_exists($children['href']) )
|
|
{
|
|
$href = $children['href']();
|
|
}
|
|
//Traitement des permissions
|
|
if( isset($children['perm']) )
|
|
{
|
|
$permStatut = false;
|
|
foreach($children['perm']['list'] as $perm)
|
|
{
|
|
$permStatut = $permStatut || hasPerm($perm);
|
|
}
|
|
if(!$permStatut)
|
|
{
|
|
if( !isset($children['perm']['hidden']) ||
|
|
$children['perm']['hidden']===false )
|
|
{
|
|
$href = '#';
|
|
}
|
|
elseif( isset($children['perm']['hidden']) &&
|
|
$children['perm']['hidden']===true )
|
|
{
|
|
$href = false;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
//Traitement profil
|
|
if(isset($children['profil']))
|
|
{
|
|
if( ( !isset($children['profil']['hidden']) ||
|
|
$children['profil']['hidden']===false ) &&
|
|
hasProfil($children['profil']['name'])===false )
|
|
{
|
|
$href = '#';
|
|
}
|
|
elseif( isset($children['profil']['hidden']) &&
|
|
$children['profil']['hidden'] &&
|
|
hasProfil($children['profil']['name'])===false )
|
|
{
|
|
$href = false;
|
|
}
|
|
}
|
|
|
|
//Output
|
|
$html = '';
|
|
if($href!==false)
|
|
{
|
|
$html.= '<li><a href="'.$href.'">';
|
|
if($href=='#'){
|
|
$html.= '<font color="gray">'.
|
|
$children['data'].
|
|
'</font>';
|
|
}
|
|
else{ $html.= $children['data']; }
|
|
$html.= '</a></li>';
|
|
$html.= "\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 (empty($_SESSION['list_pre']) == false) {
|
|
return './?page=recherche&vue=list_pre';
|
|
} else {
|
|
return '#';
|
|
}
|
|
}
|
|
|
|
function menu_href_list_derniere_recherche()
|
|
{
|
|
$href = false;
|
|
if (isset($_SESSION['recherche']) &&
|
|
count($_SESSION['recherche']['list']) > 0) {
|
|
$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_identite_profil()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
if ($siret*1==0 && $idEntreprise*1==0){
|
|
return '#';
|
|
} else{
|
|
return './?page=identite&profil=1&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, $firephp;
|
|
$href = '#';
|
|
if ($_SESSION['tabInfo']['idClient'] != 34 ||
|
|
$_SESSION['nowAuthorized']) {
|
|
if ($siret * 1 != 0) {
|
|
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
|
$href = './?page=annonces&siret='.$siret.'&source='.$source.
|
|
'&idEntreprise='.$idEntreprise;
|
|
}
|
|
else if ($siret * 1 == 0 && // Est-ce vraiement utile ?
|
|
isset($idEntreprise) && $idEntreprise != 0) {
|
|
$source = $_SESSION['tabInfo']['entrep']['Source'];
|
|
$sourceId = $_SESSION['tabInfo']['entrep']['SourceId'];
|
|
$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;
|
|
$usersAuthorized = array('ylenaour','jmartory','mricois','mheitz','testreunica','reunicacsf');
|
|
if ($siret*1!=0 && ($_SESSION['tabInfo']['idClient']!=34 || $_SESSION['nowAuthorized']))
|
|
{
|
|
if (in_array($_SESSION['tabInfo']['login'], $usersAuthorized))
|
|
{
|
|
$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 ( $siret*1!=0 ) {
|
|
$href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise;
|
|
}else{
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_rsynthesea()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ( $siret*1!=0 ) {
|
|
$href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise.'&niveau=2';
|
|
}else{
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_rsyntheseb()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ( $siret*1!=0 ) {
|
|
$href = './?page=rsynthese&siret='.$siret.'&idEntreprise='.$idEntreprise.'&niveau=5';
|
|
}else{
|
|
$href = '#';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_rsynthesemin()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
if ( $siret*1!=0 ) {
|
|
$href = './?page=rsynthesemin&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_pieces()
|
|
{
|
|
global $siret;
|
|
if ($siret != 0) {
|
|
$href = './?page=pieces&siret='.$siret;
|
|
if (empty($idEntreprise) == false) {
|
|
$href .= '&idEntreprise='.$idEntreprise;
|
|
}
|
|
return $href;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
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;
|
|
$usersNotAuthorized = array('testreunica','reunicacsf','reunicastats');
|
|
if ( !in_array($_SESSION['tabInfo']['login'], $usersNotAuthorized) )
|
|
{
|
|
$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;
|
|
$usersNotAuthorized = array('testreunica','reunicacsf','reunicastats');
|
|
if (($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur') &&
|
|
!in_array($_SESSION['tabInfo']['login'], $usersNotAuthorized) )
|
|
{
|
|
$href = './?page=administration&idEntreprise='.$idEntreprise.'&siret='.$siret;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_greffescmd()
|
|
{
|
|
$href = false;
|
|
if(hasModeEdition())
|
|
{
|
|
$href = './?page=greffescmd';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_greffescmdcourrier()
|
|
{
|
|
$href = false;
|
|
if(hasModeEdition())
|
|
{
|
|
$href = './?page=greffescmd_courrier';
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_internationalcmd()
|
|
{
|
|
return './?page=international_commandes';
|
|
}
|
|
|
|
function menu_href_stats()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = false;
|
|
$usersAuthorized = array('fzicaro','jmartory','mheitz','mricois','ylenaour','reunicastats');
|
|
if (($_SESSION['tabInfo']['profil']=='Administrateur' || $_SESSION['tabInfo']['profil']=='SuperAdministrateur' ) &&
|
|
in_array($_SESSION['tabInfo']['login'], $usersAuthorized))
|
|
{
|
|
$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_portefeuille()
|
|
{
|
|
global $siret, $idEntreprise;
|
|
$href = './?page=portefeuille';
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_logout()
|
|
{
|
|
return './?page=main&action=logout';
|
|
}
|
|
|
|
function menu_href_bdf27()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = '#';
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=bdf&module=27&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_bdf28()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = '#';
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=bdf&module=28&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
}
|
|
return $href;;
|
|
}
|
|
|
|
function menu_href_bdf29()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = '#';
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=bdf&module=29&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_bdf37()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = '#';
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=bdf&module=37&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_bdf40()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = '#';
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=bdf&module=40&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_bdf51()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = '#';
|
|
if ($siret*1!=0)
|
|
{
|
|
$href = './?page=bdf&module=51&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
}
|
|
return $href;
|
|
}
|
|
|
|
function menu_href_bdfautres()
|
|
{
|
|
global $siret, $idEntreprise, $req;
|
|
$href = './?page=bdf&module=autres&idEntreprise='.$idEntreprise.'&siret='.$siret.'&req='.$req;
|
|
return $href;
|
|
}
|