2009-03-03 16:09:27 +00:00
|
|
|
|
<?
|
|
|
|
|
require_once(FWK_PATH.'/FirePHPCore/FirePHP.class.php');
|
|
|
|
|
ob_start();
|
|
|
|
|
$firephp = FirePHP::getInstance(true);
|
|
|
|
|
|
2009-02-26 17:56:35 +00:00
|
|
|
|
if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
|
2009-03-03 16:09:27 +00:00
|
|
|
|
//Affectation de valeur par d<>faut pour arriver sur la page de recherche
|
2009-02-26 17:56:35 +00:00
|
|
|
|
if (!isset($page2)){
|
|
|
|
|
$page2='recherche.php';
|
|
|
|
|
$vueRecherche = 'ent';
|
|
|
|
|
}
|
2009-03-03 16:09:27 +00:00
|
|
|
|
|
2009-02-26 17:56:35 +00:00
|
|
|
|
function valideSiren($siren, $nic='', $erreur=false) {
|
2009-02-19 16:28:12 +00:00
|
|
|
|
|
|
|
|
|
$lenSIREN=strlen($siren);
|
|
|
|
|
if (!valideData($siren, 9, 9,'N')) //Siren non pr<70>cis<69> ou incorrect.
|
|
|
|
|
return $erreur;
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (!isset($nic) || trim($nic)=='')
|
|
|
|
|
{
|
|
|
|
|
$somme=0;
|
|
|
|
|
for ($i=0; $i<=8; $i+=2) // Traitement IMPAIR
|
|
|
|
|
$somme+=(integer)substr($siren,$i,1);
|
|
|
|
|
|
|
|
|
|
for ($i=1; $i<=7; $i+=2)
|
|
|
|
|
{ // Traitement PAIR
|
|
|
|
|
$var_tmp=(string)(2*((integer)substr($siren,$i,1)));
|
|
|
|
|
$som_tmp=0;
|
|
|
|
|
for($j=0;$j<strlen($var_tmp);$j++)
|
|
|
|
|
$som_tmp+=(integer)substr($var_tmp,$j,1);
|
|
|
|
|
$somme+=$som_tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((integer)($somme/10)!=($somme/10))
|
|
|
|
|
{ // Le Siren est faux
|
|
|
|
|
if (substr($siren,0,3)!='200') // Les siren d<>butant par 200 sont toujours valides (sirens provisoires de la BDF?!)
|
|
|
|
|
return $erreur;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (!valideData($nic,1,5,'N')) // Nic de format incorrect.
|
|
|
|
|
return $erreur;
|
|
|
|
|
|
|
|
|
|
$SIRET=$siren.$nic;
|
|
|
|
|
$somme=0;
|
|
|
|
|
for ($i=0; $i<=12; $i+=2)
|
|
|
|
|
{ // Traitement PAIR
|
|
|
|
|
$var_tmp=(string)(2*((integer)substr($SIRET,$i,1)));
|
|
|
|
|
$som_tmp=0;
|
|
|
|
|
for($j=0;$j<strlen($var_tmp);$j++)
|
|
|
|
|
$som_tmp+=(integer)substr($var_tmp,$j,1);
|
|
|
|
|
$somme+=$som_tmp;
|
|
|
|
|
}
|
|
|
|
|
for ($i=1; $i<=13; $i+=2) // Traitement IMPAIR
|
|
|
|
|
$somme+=(integer)substr($SIRET,$i,1);
|
|
|
|
|
|
|
|
|
|
if ((integer)($somme/10)!=($somme/10))// Le Siret est faux
|
|
|
|
|
return $erreur;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
2009-02-26 17:56:35 +00:00
|
|
|
|
}
|
2009-02-19 16:28:12 +00:00
|
|
|
|
|
2009-02-26 17:56:35 +00:00
|
|
|
|
function replace_siren($matches) {
|
|
|
|
|
$client = new SoapClient(null, array( 'trace' => 1,
|
|
|
|
|
'soap_version' => SOAP_1_1,
|
|
|
|
|
'location' => WEBSERVICE_URL,
|
|
|
|
|
'uri' => WEBSERVICE_URI,
|
|
|
|
|
'login' => $_SESSION['tabInfo']['login'],
|
|
|
|
|
'password' => $_SESSION['tabInfo']['password']));
|
|
|
|
|
foreach ($matches as $i=>$sirenBrut) {
|
|
|
|
|
$siren=strtr($sirenBrut, array(' '=>'', '.'=>'', '-'=>''));
|
|
|
|
|
if (strlen($sirenBrut)==9) $sirenBrut=implode(' ', str_split($sirenBrut, 3));
|
|
|
|
|
if (valideSiren($siren)) {
|
|
|
|
|
try {
|
|
|
|
|
$O = $client->isSirenExistant($siren);
|
|
|
|
|
} catch (SoapFault $fault) {
|
|
|
|
|
return $sirenBrut;
|
|
|
|
|
}
|
|
|
|
|
if ($O>0) {
|
|
|
|
|
return '<a href="/?page=identite&siret='.$siren.'" title="Voir la fiche d\'identité de cette entreprise">'.$sirenBrut.'</a>';
|
2009-02-19 16:28:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2009-02-26 17:56:35 +00:00
|
|
|
|
return $sirenBrut;
|
2009-02-19 16:28:12 +00:00
|
|
|
|
}
|
2009-02-26 17:56:35 +00:00
|
|
|
|
}
|
2009-02-19 16:28:12 +00:00
|
|
|
|
|
2009-02-26 17:56:35 +00:00
|
|
|
|
if ($sortie=='pdf') {
|
|
|
|
|
//Le fichier n'est pas pr<70>sent
|
|
|
|
|
require_once(realpath(dirname(__FILE__).'/../html2pdf/html2fpdf.php'));
|
|
|
|
|
ob_start();//'html2pdf');
|
|
|
|
|
}
|
2009-02-27 10:06:54 +00:00
|
|
|
|
|
2009-02-26 17:16:11 +00:00
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<html>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<head>
|
|
|
|
|
<title>Extranet Scores & Décisions - <?=$title?></title>
|
2009-03-02 14:25:00 +00:00
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/main.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/menu.css" />
|
2009-02-27 14:49:40 +00:00
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/infogreffe_base.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/infogreffe.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete.css" />
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<?php
|
|
|
|
|
if($sortie!='prt'){
|
|
|
|
|
?>
|
2009-02-23 11:08:09 +00:00
|
|
|
|
<script type="text/javascript" src="./js/jquery.js"></script>
|
|
|
|
|
<script type="text/javascript" src="./js/jquery.bgiframe.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="./js/jquery.autocomplete.js"></script>
|
2009-03-02 14:25:00 +00:00
|
|
|
|
<script type="text/javascript" src="./js/menu.js"></script>
|
|
|
|
|
<script type="text/javascript" src="./js/dropDownOverlapping.js"></script>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<script type="text/javascript" src="./js/scripts.js"></script>
|
|
|
|
|
<?php
|
2009-02-19 16:28:12 +00:00
|
|
|
|
}
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
</head>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<?php
|
|
|
|
|
if ($sortie!='prt')
|
2009-02-26 17:56:35 +00:00
|
|
|
|
{
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
|
|
|
|
<body onResize="JSFX_FloatTopDiv()">
|
|
|
|
|
<?php
|
|
|
|
|
} elseif ($sortie=='prt') {
|
|
|
|
|
?>
|
|
|
|
|
<body onLoad="window.print();window.close();">
|
|
|
|
|
<?php
|
2009-03-02 14:25:00 +00:00
|
|
|
|
}
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
|
|
|
|
<center>
|
|
|
|
|
<table border="0" width="800" height="600">
|
|
|
|
|
<tr>
|
|
|
|
|
<?php
|
2009-03-02 14:25:00 +00:00
|
|
|
|
if ($sortie<>'pdf' && $sortie<>'prt') {
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
|
|
|
|
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />--> </td>
|
|
|
|
|
<td width="580"><table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%"><tr><td valign="top"><?include($page2)?></td></tr></table></td>
|
|
|
|
|
<?php
|
2009-03-02 14:25:00 +00:00
|
|
|
|
} else {
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
|
|
|
|
<td width="800"><table id="MainPage" cellSpacing="0" border="0" cellPadding="0" align="left" height="100%"><tr><td valign="top"><?include($page2)?></td></tr></table></td>
|
|
|
|
|
<?php } ?>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</table><br/>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<font size="1" face="Arial, Helvetica, sans-serif">
|
|
|
|
|
© 2006-<?=date('Y')?> Scores & Décisions SAS -
|
|
|
|
|
Tous droits réservés - <a href="<?=SITEINST_URL2?>mentions.htm" target="_blank">Mentions légales</a>
|
|
|
|
|
<?
|
|
|
|
|
if ($sortie!='prt') {
|
|
|
|
|
$params = "&";
|
|
|
|
|
//Param<61>tres n<>cessaires pour la recherche
|
|
|
|
|
if($_REQUEST['action']=='rechercher' && isset($_REQUEST['formR'])){
|
|
|
|
|
foreach($_REQUEST['formR'] as $key => $value){
|
|
|
|
|
$params .= 'formR['.$key.']='.urlencode($value).'&';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$params .= 'sortie=prt';
|
|
|
|
|
$firephp->log($_REQUEST, 'REQUEST');
|
2009-03-03 16:36:37 +00:00
|
|
|
|
$firephp->log($_SERVER, 'SERVER');
|
2009-03-03 16:09:27 +00:00
|
|
|
|
$firephp->log($params, 'Param<61>tres');
|
|
|
|
|
?>
|
|
|
|
|
- <a href="<?=$_SERVER['REQUEST_URI']?><?=$params?>" target="_blank"><img src="./img/icone_print.png"/></a>
|
2009-03-03 16:36:37 +00:00
|
|
|
|
- <a href="./page2pdf.php?url=http://<?=$_SERVER['SERVER_NAME']?><?=$_SERVER['REQUEST_URI']?><?=$params?>" target="_blank"><img src="./img/icone_pdf.gif"/></a>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<?php } ?>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
|
|
|
|
|
</font>
|
|
|
|
|
</center>
|
|
|
|
|
|
|
|
|
|
<?php
|
2009-03-03 16:09:27 +00:00
|
|
|
|
if ($sortie<>'pdf' && $sortie<>'prt') {
|
|
|
|
|
?>
|
|
|
|
|
<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>
|
|
|
|
|
<a href="/?page=recherche&vue=list_pre">Dernière recherche</a>
|
|
|
|
|
<?php
|
|
|
|
|
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits'])) {
|
|
|
|
|
?>
|
|
|
|
|
<a href="<?=IPARI_URL?>?siret=<?=$siret?>" target="_blank">IparI ©</a>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="collapsed">
|
|
|
|
|
|
|
|
|
|
<span>IDENTITE</span>
|
2009-02-27 10:06:54 +00:00
|
|
|
|
<? if ($siret*1==0 && $iden*1==0) {?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Fiche d'identité</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } else { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=identite&siret=<?=$siret?>&iden=<?=$iden?>">Fiche d'identité</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
if ($siret*1<>0) {?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=etablissements&siret=<?=$siret?>">Liste des établissements</a>
|
|
|
|
|
<a href="/?page=liens&siret=<?=$siret?>">Liens inter-entreprises</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } else { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Liste des établissements</font></a>
|
|
|
|
|
<a href="#"><font color="Gray">Liens inter-entreprises</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
|
|
|
|
|
if (preg_match('/EVENINSEE/i', $_SESSION['tabInfo']['droits'])) {
|
|
|
|
|
if ($siret*1<>0) { ?>
|
|
|
|
|
<a href="/?page=evenements&siret=<?=$siret?>">Modifications Insee</a>
|
|
|
|
|
<? } else { ?>
|
|
|
|
|
<a href="#"><font color="Gray">Modifications Insee</font></a>
|
|
|
|
|
<?
|
|
|
|
|
}
|
|
|
|
|
}
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
|
|
|
|
<!--Identite approfondie-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="collapsed">
|
|
|
|
|
<span>DIRIGEANTS</span>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($siret*1<>0) {?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=dirigeants&siret=<?=$siret?>">Liste des dirigeants</a>
|
|
|
|
|
<a href="/?page=dirigeants&vue=histo&siret=<?=$siret?>">Historique des dirigeants</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } else { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<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>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($siret*1<>0) {?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=bilans&siret=<?=$siret?>">Bilans, Ratios & S.I.G.</a>
|
|
|
|
|
<a href="/?page=liasse&siret=<?=$siret?>">Liasse fiscale</a>
|
|
|
|
|
<a href="/?page=bourse&siret=<?=$siret?>">Bourse & Cotations</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } else { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Bilans, Ratios & S.I.G.</font></a>
|
|
|
|
|
<a href="#"><font color="Gray">Liasse fiscale</font></a>
|
|
|
|
|
<a href="#"><font color="Gray">Bourse & Cotations</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="collapsed">
|
|
|
|
|
<span>ELEMENTS JURIDIQUES</span>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<?
|
|
|
|
|
if ($siret*1==0) {
|
|
|
|
|
$source=$_SESSION['tabInfo']['entrep']['Source'];
|
|
|
|
|
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
|
2009-02-27 16:54:04 +00:00
|
|
|
|
|
|
|
|
|
if(!isset($iden) || $iden==0){
|
|
|
|
|
?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Annonces Légales</font></a>
|
2009-02-27 16:54:04 +00:00
|
|
|
|
<?php
|
|
|
|
|
}else{
|
|
|
|
|
?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=annonces&iden=<?=$iden?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Annonces Légales</a>
|
2009-02-27 16:54:04 +00:00
|
|
|
|
<?php
|
|
|
|
|
}
|
2009-02-27 10:06:54 +00:00
|
|
|
|
?>
|
|
|
|
|
<? }else if ($siret*1<>0) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=annonces&siret=<?=$siret?>&source=<?=$source?>">Annonces Légales</a>
|
|
|
|
|
<a href="/?page=infosreg&siret=<?=$siret?>">Information Règlementée</a>
|
|
|
|
|
<a href="/?page=competences&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&vue=tous">Compétences Territoriales</a>
|
|
|
|
|
<a href="/?page=conventions&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&nafEn=<?=$tabEntrep['nafEn']?>&nafEt=<?=$tabEntrep['nafEt']?>">Conventions collectives</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } else { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Information Règlementée</font></a>
|
|
|
|
|
<a href="#"><font color="Gray">Compétences Territoriales</font></a>
|
|
|
|
|
<a href="#"><font color="Gray">Conventions collectives</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
|
|
|
|
|
if (preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits'])) {
|
|
|
|
|
if ($siret*1<>0) { ?>
|
|
|
|
|
<a href="/?page=marques&siret=<?=$siret?>">Marques déposées</a>
|
|
|
|
|
<? } else { ?>
|
|
|
|
|
<a href="#"><font color="Gray">Marques déposées</font></a>
|
|
|
|
|
<?
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="collapsed">
|
|
|
|
|
|
|
|
|
|
<span>EVALUATION</span>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($siret*1<>0) {?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=indiscore&siret=<?=$siret?>">indiScore ©</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($_SESSION['tabInfo']['login']=='reunicacsf' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='testreunica' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='ylenaour' ||
|
2009-02-23 18:40:34 +00:00
|
|
|
|
$_SESSION['tabInfo']['login']=='mheitz' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='mricois' ||
|
2009-02-19 16:28:12 +00:00
|
|
|
|
$_SESSION['tabInfo']['login']=='jmartory' ) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">indiScore + ©</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=scorescf&siret=<?=$siret?>">scoring Credit Safe ©</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
}
|
|
|
|
|
} else { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">indiScore ©</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($_SESSION['tabInfo']['login']=='reunicacsf' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='testreunica' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='ylenaour' ||
|
2009-02-23 18:40:34 +00:00
|
|
|
|
$_SESSION['tabInfo']['login']=='mheitz' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='mricois' ||
|
2009-02-19 16:28:12 +00:00
|
|
|
|
$_SESSION['tabInfo']['login']=='jmartory' ) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">indiScore + ©</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">scoring Credit Safe ©</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
}
|
|
|
|
|
} ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="collapsed">
|
|
|
|
|
<span>PIECES OFFICIELLES</span>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($siret*1<>0) {
|
|
|
|
|
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) {
|
2009-03-03 16:09:27 +00:00
|
|
|
|
?>
|
|
|
|
|
<a href="/?page=kbis&siret=<?=$siret?>">K-Bis</a>
|
|
|
|
|
<?
|
2009-02-19 16:28:12 +00:00
|
|
|
|
} ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=greffes&vue=bilans&siret=<?=$siret?>">Comptes annuels</a>
|
|
|
|
|
<a href="/?page=greffes&vue=actes&siret=<?=$siret?>">Actes & Statuts</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } elseif ($siret==0) {
|
|
|
|
|
$source=$_SESSION['tabInfo']['entrep']['Source'];
|
|
|
|
|
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
|
|
|
|
|
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">K-Bis</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Comptes annuels</font></a>
|
2009-02-27 16:54:04 +00:00
|
|
|
|
<?php
|
|
|
|
|
if(!isset($iden) || $iden==0){
|
|
|
|
|
?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Actes & Status</font></a>
|
2009-02-27 16:54:04 +00:00
|
|
|
|
<?php
|
|
|
|
|
}else{
|
|
|
|
|
?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=greffes&vue=actes&iden=<?=$iden?>&idan=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Actes & Statuts</a>
|
2009-02-27 16:54:04 +00:00
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } else {
|
|
|
|
|
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">K-Bis</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="#"><font color="Gray">Comptes annuels</font></a>
|
|
|
|
|
<a href="#"><font color="Gray">Actes & Statuts</font></a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? } ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="collapsed">
|
|
|
|
|
<span>OPTIONS</span>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=moncompte&iden=<?=$iden?>&siret=<?=$siret?>">Mes options</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
if ($_SESSION['tabInfo']['profil']=='Administrateur') {
|
|
|
|
|
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=administration&iden=<?=$iden?>&siret=<?=$siret?>">Administration</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
if ($_SESSION['tabInfo']['login']=='ylenaour' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='mheitz' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='jmartory' ||
|
|
|
|
|
$_SESSION['tabInfo']['login']=='reunicastats' ) { ?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=stats&iden=<?=$iden?>&siret=<?=$siret?>">Statistiques</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
}
|
|
|
|
|
|
2009-03-03 16:09:27 +00:00
|
|
|
|
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea' ) { ?>
|
|
|
|
|
<a href="/?page=survliste&iden=<?=$iden?>&siret=<?=$siret?>">Surveillances</a>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<? }
|
|
|
|
|
?>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
<a href="/?page=main&action=logout">Se déconnecter</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2009-02-19 16:28:12 +00:00
|
|
|
|
</layer>
|
2009-03-03 16:09:27 +00:00
|
|
|
|
|
2009-02-19 16:28:12 +00:00
|
|
|
|
<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"
|
2009-03-03 16:09:27 +00:00
|
|
|
|
var verticalpos="fromtop";
|
2009-02-19 16:28:12 +00:00
|
|
|
|
|
2009-03-03 16:09:27 +00:00
|
|
|
|
if (!document.layers) document.write('</div>');
|
2009-02-19 16:28:12 +00:00
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
</script>
|
|
|
|
|
<? } ?>
|
|
|
|
|
</body>
|
2009-02-17 13:14:53 +00:00
|
|
|
|
</html>
|