Mise à jour fichier provenant de la prod

This commit is contained in:
Michael RICOIS 2009-02-19 16:28:12 +00:00
parent 41e99c3579
commit d4d7832a00
4 changed files with 2258 additions and 2205 deletions

View File

@ -1,313 +1,339 @@
<?if (!$_SESSION['connected']) die();
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
if (isset($_REQUEST['id']) && $_REQUEST['id']*1<>0) $id=$_REQUEST['id'];
else $id=false;
if (($siret*1)==0 && $id==0) die('Paramètres incorrects !');
$siren=substr($siret,0,9);
//annonces&action=logon&login=mederic&checkIp=only&siret=552144503&id=6415277&vue=bodacc
$vue=$_REQUEST['vue'];
/** Utilisation du WS **/
$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']));
$message='';
$action=$_REQUEST['action'];
if ($action<>'' && $action<>'surv' && $action<>'logon') die('Paramètres incorrects !');
if ($action=='surv') {
if (preg_match('#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,5}$#',$_REQUEST['email'])) {
$message='Entreprise sous surveillance Annonces L&eacute;gales';
mail( 'contact@scores-decisions.com',"Demande de surveillance pour $siren à ".$_REQUEST['email'],
'REQUEST='.EOL.print_r($_REQUEST,true).'EOL'.
'SERVER='.EOL.print_r($_SERVER,true).'EOL'.
'SESSION='.EOL.print_r($_SESSION,true).'EOL'.
'ENV='.EOL.print_r($_ENV,true).'EOL'.
'tabInfo='.print_r($tabInfo,true));
$fp=fopen(PATH_LOGS.'surveillances.csv', 'a');
fwrite($fp, date('Y/m/d H:i:s').";$siren;".$_REQUEST['email'].';'.$tabInfo['login'].';'.$tabInfo['email'].';'.$tabInfo['ip']."\n");
fclose($fp);
try {
$O = $client->setSurveillanceAnnoncesLegales($siren, $_REQUEST['email'], $_REQUEST['ref']);
//$annonces=$O['result'];
} catch (SoapFault $fault) {
echo '<pre>'.$client->__getLastResponse().'</pre>';
echo 'ERREUR SOAP :'.EOL;
print_r($fault);
die();
}
} else {
$message="ERREUR : Veuillez saisir une adresse email valide pour la mise sous surveillance";
}
}
include_once(INCLUDE_PATH.'partenaires/classMTva.php');
include_once(INCLUDE_PATH.'partenaires/classMMap.php');
include_once(INCLUDE_PATH.'partenaires/classMCoface.php');
include_once(FWK_PATH.'common/dates.php');
try {
if ($vue=='bodacc' || $_REQUEST['source']=1) $filtre=1;
elseif ($vue=='balo') $filtre=2;
elseif ($vue=='asso') $filtre=3;
else $filtre=0;
if ($tabInfo['entrep']['fj']>9000 && $tabInfo['entrep']['fj']<9999 && $siren==0) {
$filtre=3;
}
//echo "<!-- Appel getAnnonces($siren, $filtre, $id)-->";
$O = $client->getAnnonces($siren, $filtre, $id);
$annonces=$O['result'];
if (count($annonces)==0) {
$id=0;
$O = $client->getAnnonces($siren, $filtre,$id);
$annonces=$O['result'];
}
} catch (SoapFault $fault) {
echo '<pre>'.$client->__getLastResponse().'</pre>';
echo 'ERREUR SOAP :'.EOL;
print_r($fault);
die();
}
/** Récupération du site WEB et tel/fax entreprise **/
$conid = mysql_pconnect('localhost', 'root', 'catsysyo92');
if (!($conid === false)) {
if (mysql_select_db('sdv1', $conid) === false) {
die('Base de données indisponible');
}
}
if ($siren<>$tabInfo['entrep']['siren']) {
$O2 = $client->getIdentite($siret);
$etab=$O2['result'];
$tabEntrep=array();
$tabEntrep['raisonSociale']=$etab['Nom'];
$tabEntrep['siren']=$etab['Siren'];
$tabEntrep['siret']=$etab['Siret'];
$tabEntrep['tva']=$etab['TvaNumero'];
$tabEntrep['isin']=$etab['Isin'];
$tabEntrep['AutreId']=$etab['AutreId'];
$tabEntrep['active']=$etab['Statut'];
$tabEntrep['Source']=$etab['Source'];
$tabEntrep['SourceId']=$etab['SourceId'];
$tabEntrep['codeCommune']=$etab['Dept'].$etab['codeCommune'];
$tabEntrep['nafEn']=$etab['NafEnt'];
$tabEntrep['nafEt']=$etab['NafEtab'];
$tabEntrep['fj']=$etab['FJ'];
$_SESSION['tabInfo']['entrep']=$tabEntrep;
$raisonSociale=$etab['Nom'];
} else
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
?>
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
<?php
if ($message<>'') {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData"><h3><?=$message;?></h3></td>
</tr>
<?php
}
/*
echo "<!--";
print_r($O);
echo "-->";
*/
?>
<tr>
<td colspan="4"><img src="./img/rub_balobodacc.png" width="577" height="36" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" colspan="2" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" colspan="2" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
</tr>
<?
if ($id && ($vue=='bodacc' || $vue=='balo' || $vue=='asso')) {
echo '<tr><td colspan="4">&nbsp;</td></tr>';
$ann=$annonces[0];
/**
** AFFICHAGE D'UNE ANNONCE BODACC / BALO / ASSO
**/
// Entête BALO
if ($vue=='balo') {
?>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4"><img src="./img/srub_balo.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData">BALO n&deg;<?=$ann['BodaccNum']?>&nbsp;du <?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>. Entr&eacute; n&deg;<?=$ann['NumAnnonce']?>. Entr&eacute;e en base S&amp;D : <?=WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD'])?>.<br/>
<a href="/?page=annonces&siret=<?=$siret?>&id=<?=$_REQUEST['id']?>&vue=balo&mode=pdf" target="_blank">Cliquez ici pour voir cette annonce au format PDF&nbsp;(<?=adapteOCtets(@filesize('/root/download/jo/balo/'.WDate::dateT('Y-m-d','Y',$ann['DateParution']).'/'. $ann['Lien_Annonce_Pdf']))?>)</a>
.</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoLib"><b><?=$ann['Categorie']?></b></td>
</tr>
<tr>
<?
$ann['texteAnnonce']=utf8_decode($ann['texteAnnonce']);
} elseif ($vue=='bodacc') {
?>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData"><?if ($ann['BodaccNum']==0 && $ann['BodaccCode']==0 && (str_replace('-','',$ann['DateParution'])*1)>20060101 )
echo '<b><u>Annonce officielle en cours de publication au BODACC</u></b>';
elseif ($ann['BodaccNum']==0)
echo 'BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
else
echo 'BODACC n&deg;'.$ann['BodaccNum'].'&nbsp;'.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. D&eacute;partement n&deg;<?=$ann['Departement']?>. <!--<a href="/?page=identite&siret=<?=$ann['TribunalSiret']?>">--><a href="/?page=competences&siret=<?=$siret?>&type=tri"><?=$ann['Tribunal']?></a>.<?
if ($ann['dateInsertionSD']<>'') echo 'Entr&eacute;e en base S&amp;D : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
?></td>
</tr>
<?
}/*<?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>*/
elseif ($vue=='asso') {
?>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4"><img src="./img/srub_asso.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData">J.O. ASSOCIATION n&deg;<?=$ann['BodaccNum']?>&nbsp;du <?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>. Annonce n&deg;<?=$ann['NumAnnonce']?>. Entr&eacute;e en base S&amp;D : <?=WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD'])?>.</td>
</tr>
<?
}
?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoLib"><b><?foreach (@$ann['evenements'] as $i=>$even) {
echo @$even['LibEven'].'<br/>';
}?></b>
<?
/*if ($_SESSION['tabInfo']['login']=='ylenaour') {
echo '&nbsp;<a title="Voir la page originale du bodacc" target="_blank" href="/?page=original&source=1&annee='.WDate::dateT('Y-m-d','Y',$ann['DateParution']).'&type='.$ann['BodaccCode'].'&numero='.$ann['BodaccNum'].'">Page originale</a>';
}*/
?>
</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<? /**
** Affichage du texte de l'annonce
**/
$texte=preg_replace_callback("/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/", replace_siren, $ann['texteAnnonce']);
?><td width="550" colspan="3"><code><?=$texte?></code></td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td colspan="4" align="center" class="StyleInfoData"><a href="Javascript:history.back()">Revenir à la liste des annonces</a></td>
</tr>
<? }
elseif (count($annonces)>0) { /** Affichage de la liste des annonces **/
$titreBodacc=$titreBalo=$titreAsso=false;
foreach ($annonces as $i=>$ann) {
if ($ann['BodaccCode']=='BODA' || $ann['BodaccCode']=='BODB' || $ann['BodaccCode']=='BODC') {
if (!$titreBodacc) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td></tr>';
$vueL='bodacc';
$titreBodacc=true;
}
elseif ($ann['BodaccCode']=='BALO') {
if (!$titreBalo) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_balo.png" width="576" height="27" /></td></tr>';
$vueL='balo';
$titreBalo=true;
}
elseif ($ann['BodaccCode']=='ASSO') {
if (!$titreAsso) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_asso.png" width="576" height="27" /></td></tr>';
$vueL='asso';
$titreAsso=true;
}
else {
if (!$titreBodacc) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td></tr>';
$vueL='abod';
$titreBodacc=true;
}
?>
<tr>
<td width="30">&nbsp;</td>
<td width="100" class="StyleInfoLib">Le <?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?></td>
<td width="450" colspan="2" class="StyleInfoData"><a href="/?page=annonces&siret=<?=$siret?>&id=<?=$ann['id']?>&vue=<?=$vueL?>"><?foreach ($ann['evenements'] as $i=>$even) {
echo $even['LibEven'];
$numEven=$even['CodeEven']*1;
if ($numEven>3000 && $numEven<3999) echo ' (clôture au '.WDate::dateT('Y-m-d','d/m/Y',$ann['dateEffet']).')';
elseif ($ann['BodaccNum']==0 && $ann['BodaccCode']==0 && (str_replace('-','',$ann['DateParution'])*1)>20060101)
echo ' <u>(annonce officielle en cours de publication au BODACC)</u>';
echo '<br/>';
/* 'dateEffet'=>$ann['dateEffet'],
'dateJugement'=>$ann['dateJugement'],
*/
}?></a></td>
</tr>
<? }
} else {
/** Aucune annonce bodacc pour cette entreprise
**/
?>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="100" class="StyleInfoLib">&nbsp;</td>
<td width="450" colspan="2" class="StyleInfoData">N&eacute;ant</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<?/*
<tr>
<td colspan="4" align="center" class="StyleInfoData">Scores &amp; D&eacute;cisions dispose de l'int&eacute;gralité de l'historique Bodacc depuis 1953. Cet historique sera mis en ligne dans son int&eacute;gralit&eacute; au courant du 2&egrave;me semestre 2008.</td>
</tr>
*/
}
if (!$id) { ?>
<tr>
<td width="30">&nbsp;</td>
<td width="100" class="StyleInfoLib">&nbsp;</td>
<td width="450" colspan="2" class="StyleInfoData"><br/><br/><form action="./?page=annonces&action=surv&siret=<?=$siret?>" method="POST"><input type="checkbox"/> Mettre sous surveillance les annonces l&eacute;gales<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Votre r&eacute;f&eacute;rence <input name="ref" type="text" value="" size="10"/><br/>
Adresse email du destinataire <input name="email" type="text" value="<? if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf') echo $tabInfo['email']?>" size="20"/>&nbsp;&nbsp;&nbsp;<input type="image" src="./img/boutton_valider_off.gif" name="submit" onmouseover="this.src='./img/boutton_valider_on.gif'" onmouseout="this.src='./img/boutton_valider_off.gif'" title="Mettre sous surveillance..."></form></td>
</tr>
<? }
?>
</table>
<!--
<?/*
print_r($annonces);*/
<?if (!$_SESSION['connected']) die();
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
if (isset($_REQUEST['id']) && $_REQUEST['id']*1<>0) $id=$_REQUEST['id'];
else $id=false;
if (($siret*1)==0 && $id==0) die('Paramètres incorrects !');
$siren=substr($siret,0,9);
//annonces&action=logon&login=mederic&checkIp=only&siret=552144503&id=6415277&vue=bodacc
$vue=$_REQUEST['vue'];
/** Utilisation du WS **/
$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']));
$message='';
$action=$_REQUEST['action'];
if ($action<>'' && $action<>'surv' && $action<>'logon') die('Paramètres incorrects !');
if ($action=='surv') {
if (preg_match('#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,5}$#',$_REQUEST['email'])) {
$message='Entreprise sous surveillance Annonces L&eacute;gales';
mail( 'contact@scores-decisions.com',"Demande de surveillance pour $siren à ".$_REQUEST['email'],
'REQUEST='.EOL.print_r($_REQUEST,true).'EOL'.
'SERVER='.EOL.print_r($_SERVER,true).'EOL'.
'SESSION='.EOL.print_r($_SESSION,true).'EOL'.
'ENV='.EOL.print_r($_ENV,true).'EOL'.
'tabInfo='.print_r($tabInfo,true));
$fp=fopen(PATH_LOGS.'surveillances.csv', 'a');
fwrite($fp, date('Y/m/d H:i:s').";$siren;".$_REQUEST['email'].';'.$tabInfo['login'].';'.$tabInfo['email'].';'.$tabInfo['ip']."\n");
fclose($fp);
try {
$O = $client->setSurveillanceAnnoncesLegales($siren, $_REQUEST['email'], $_REQUEST['ref']);
//$annonces=$O['result'];
} catch (SoapFault $fault) {
echo '<pre>'.$client->__getLastResponse().'</pre>';
echo 'ERREUR SOAP :'.EOL;
print_r($fault);
die();
}
} else {
$message="ERREUR : Veuillez saisir une adresse email valide pour la mise sous surveillance";
}
}
include_once(INCLUDE_PATH.'partenaires/classMTva.php');
include_once(INCLUDE_PATH.'partenaires/classMMap.php');
include_once(INCLUDE_PATH.'partenaires/classMCoface.php');
include_once(FWK_PATH.'common/dates.php');
try {
if ($vue=='bodacc' || $_REQUEST['source']=1) $filtre=1;
elseif ($vue=='balo') $filtre=2;
elseif ($vue=='asso') $filtre=3;
else $filtre=0;
if ($tabInfo['entrep']['fj']>9000 && $tabInfo['entrep']['fj']<9999 && $siren==0) {
$filtre=3;
}
//echo "<!-- Appel getAnnonces($siren, $filtre, $id)-->";
$O = $client->getAnnonces($siren, $filtre, $id);
$annonces=$O['result'];
if (count($annonces)==0) {
$id=0;
$O = $client->getAnnonces($siren, $filtre,$id);
$annonces=$O['result'];
}
} catch (SoapFault $fault) {
echo '<pre>'.$client->__getLastResponse().'</pre>';
echo 'ERREUR SOAP :'.EOL;
print_r($fault);
die();
}
/** Récupération du site WEB et tel/fax entreprise **/
$conid = mysql_pconnect('localhost', 'root', 'catsysyo92');
if (!($conid === false)) {
if (mysql_select_db('sdv1', $conid) === false) {
die('Base de données indisponible');
}
}
if ($siren<>$tabInfo['entrep']['siren']) {
$O2 = $client->getIdentite($siret);
$etab=$O2['result'];
$tabEntrep=array();
$tabEntrep['raisonSociale']=$etab['Nom'];
$tabEntrep['siren']=$etab['Siren'];
$tabEntrep['siret']=$etab['Siret'];
$tabEntrep['tva']=$etab['TvaNumero'];
$tabEntrep['isin']=$etab['Isin'];
$tabEntrep['AutreId']=$etab['AutreId'];
$tabEntrep['active']=$etab['Statut'];
$tabEntrep['Source']=$etab['Source'];
$tabEntrep['SourceId']=$etab['SourceId'];
$tabEntrep['codeCommune']=$etab['Dept'].$etab['codeCommune'];
$tabEntrep['nafEn']=$etab['NafEnt'];
$tabEntrep['nafEt']=$etab['NafEtab'];
$tabEntrep['fj']=$etab['FJ'];
$_SESSION['tabInfo']['entrep']=$tabEntrep;
$raisonSociale=$etab['Nom'];
} else
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
?>
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
<?php
if ($message<>'') {
?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData"><h3><?=$message;?></h3></td>
</tr>
<?php
}
/*
echo "<!--";
print_r($O);
echo "-->";
*/
?>
<tr>
<td colspan="4"><img src="./img/rub_balobodacc.png" width="577" height="36" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" colspan="2" class="StyleInfoLib">Num&eacute;ro identifiant Siren</td>
<td width="350" class="StyleInfoData"><?=substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="200" colspan="2" class="StyleInfoLib">Raison Sociale</td>
<td width="350" class="StyleInfoData"><?=$raisonSociale?></td>
</tr>
<?
if ($id && ($vue=='bodacc' || $vue=='abod' || $vue=='balo' || $vue=='asso')) {
echo '<tr><td colspan="4">&nbsp;</td></tr>';
$ann=$annonces[0];
/**
** AFFICHAGE D'UNE ANNONCE BODACC / BALO / ASSO
**/
// Entête BALO
if ($vue=='balo') {
?>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4"><img src="./img/srub_balo.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData">BALO n&deg;<?=$ann['BodaccNum']?>&nbsp;du <?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>. Entr&eacute; n&deg;<?=$ann['NumAnnonce']?>. Entr&eacute;e en base S&amp;D : <?=WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD'])?>.<br/>
<a href="/?page=annonces&siret=<?=$siret?>&id=<?=$_REQUEST['id']?>&vue=balo&mode=pdf" target="_blank">Cliquez ici pour voir cette annonce au format PDF&nbsp;(<?=adapteOCtets(@filesize('/root/download/jo/balo/'.WDate::dateT('Y-m-d','Y',$ann['DateParution']).'/'. $ann['Lien_Annonce_Pdf']))?>)</a>
.</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoLib"><b><?=$ann['Categorie']?></b></td>
</tr>
<tr>
<?
$ann['texteAnnonce']=utf8_decode($ann['texteAnnonce']);
} elseif ($vue=='bodacc' || $vue=='abod') {
?>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData"><?
$tabSource=explode('-', $ann['BodaccCode']);
$source=$tabSource[0];
$idSource=@$tabSource[1];
if ($source=='GC')
echo '<img src="./img/logo_greffe.png"/>&nbsp;&nbsp;Source Tribunal';
elseif ($source=='PC')
echo '<img src="./img/logo_inpi.png"/>&nbsp;&nbsp;Source Registre National du Commerce';
elseif ($source=='' || $source=='JS')
echo '<img src="./img/logo_jal.png"/>&nbsp;&nbsp;Source Journal Annonces L&eacute;gales';
elseif ($ann['BodaccNum']==0)
echo '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
else
echo '<img src="./img/logo_jo.png"/>&nbsp;&nbsp;&nbsp;Source BODACC n&deg;'.$ann['BodaccNum'].'&nbsp;'.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. D&eacute;partement n&deg;<?=$ann['Departement']?>. <!--<a href="/?page=identite&siret=<?=$ann['TribunalSiret']?>">--><a href="/?page=competences&siret=<?=$siret?>&type=tri"><?=$ann['Tribunal']?></a>.<?
if ($ann['dateInsertionSD']<>'') echo 'Entr&eacute;e en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
?></td>
</tr>
<?
}/*<?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>*/
elseif ($vue=='asso') {
?>
<tr><td colspan="4">&nbsp;</td></tr>
<tr>
<td colspan="4"><img src="./img/srub_asso.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoData">J.O. ASSOCIATION n&deg;<?=$ann['BodaccNum']?>&nbsp;du <?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>. Annonce n&deg;<?=$ann['NumAnnonce']?>. Entr&eacute;e en base S&amp;D : <?=WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD'])?>.</td>
</tr>
<?
}
?>
<tr>
<td width="30">&nbsp;</td>
<td width="550" colspan="3" class="StyleInfoLib"><b><?foreach (@$ann['evenements'] as $i=>$even) {
echo @$even['LibEven'].'<br/>';
}?></b>
<?
/*if ($_SESSION['tabInfo']['login']=='ylenaour') {
echo '&nbsp;<a title="Voir la page originale du bodacc" target="_blank" href="/?page=original&source=1&annee='.WDate::dateT('Y-m-d','Y',$ann['DateParution']).'&type='.$ann['BodaccCode'].'&numero='.$ann['BodaccNum'].'">Page originale</a>';
}*/
?>
</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<? /**
** Affichage du texte de l'annonce
**/
$texte=preg_replace_callback("/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/", replace_siren, $ann['texteAnnonce']);
?><td width="550" colspan="3"><code><?=$texte?></code></td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td colspan="4" align="center" class="StyleInfoData"><a href="Javascript:history.back()">Revenir à la liste des annonces</a></td>
</tr>
<? }
elseif (count($annonces)>0) { /** Affichage de la liste des annonces **/
$titreBodacc=$titreBalo=$titreAsso=false;
foreach ($annonces as $i=>$ann) {
if ($ann['BodaccCode']=='BODA' || $ann['BodaccCode']=='BODB' || $ann['BodaccCode']=='BODC') {
if (!$titreBodacc) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td></tr>';
$vueL='bodacc';
$titreBodacc=true;
}
elseif ($ann['BodaccCode']=='BALO') {
if (!$titreBalo) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_balo.png" width="576" height="27" /></td></tr>';
$vueL='balo';
$titreBalo=true;
}
elseif ($ann['BodaccCode']=='ASSO') {
if (!$titreAsso) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_asso.png" width="576" height="27" /></td></tr>';
$vueL='asso';
$titreAsso=true;
}
else {
if (!$titreBodacc) echo '<tr><td colspan="4">&nbsp;</td></tr><tr><td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td></tr>';
$vueL='abod';
$titreBodacc=true;
}
?>
<tr>
<td width="30">&nbsp;</td>
<td width="100" class="StyleInfoLib">Le <?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']).'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
if ($vueL=='bodacc' || $vueL=='abod') {
$tabSource=explode('-', $ann['BodaccCode']);
$source=$tabSource[0];
$idSource=@$tabSource[1];
if ($source=='BODA' || $source=='BODB' || $source=='BODC')
echo '<img src="./img/logo_jo.png" title="Source BODACC '.$ann['BodaccNum'].' '.substr($source,-1).' '.substr($ann['DateParution'],0,4).'"/>';
elseif ($source=='GC')
echo '<img src="./img/logo_greffe.png" title="Source Collecte Greffe"/>';
elseif ($source=='PC')
echo '<img src="./img/logo_inpi.png" title="Source Collecte RNCS"/>';
else {
echo '<img src="./img/logo_jal.png" title="Source Collecte JAL';
if ($idSource>0) echo " $idSource";
echo '"/>';
}
}
?></td>
<td width="450" colspan="2" class="StyleInfoData"><a href="/?page=annonces&siret=<?=$siret?>&id=<?=$ann['id']?>&vue=<?=$vueL?>"><?foreach ($ann['evenements'] as $i=>$even) {
echo $even['LibEven'];
$numEven=$even['CodeEven']*1;
if ($numEven>3000 && $numEven<3999) echo ' (clôture au '.WDate::dateT('Y-m-d','d/m/Y',$ann['dateEffet']).')';
//elseif ($ann['BodaccCode']<>'BODA' && $ann['BodaccCode']<>'BODB' && $ann['BodaccCode']<>'BODC' && (str_replace('-','',$ann['DateParution'])*1)>20060101 )
// echo ' <u>(annonce officielle en cours de publication au BODACC)</u>';
echo '<br/>';
/* 'dateEffet'=>$ann['dateEffet'],
'dateJugement'=>$ann['dateJugement'],
*/
}?></a></td>
</tr>
<? }
} else {
/** Aucune annonce bodacc pour cette entreprise
**/
?>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td colspan="4"><img src="./img/srub_bodacc.png" width="576" height="27" /></td>
</tr>
<tr>
<td width="30">&nbsp;</td>
<td width="100" class="StyleInfoLib">&nbsp;</td>
<td width="450" colspan="2" class="StyleInfoData">N&eacute;ant</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
</tr>
<?/*
<tr>
<td colspan="4" align="center" class="StyleInfoData">Scores &amp; D&eacute;cisions dispose de l'int&eacute;gralité de l'historique Bodacc depuis 1953. Cet historique sera mis en ligne dans son int&eacute;gralit&eacute; au courant du 2&egrave;me semestre 2008.</td>
</tr>
*/
}
if (!$id) { ?>
<tr>
<td width="30">&nbsp;</td>
<td width="100" class="StyleInfoLib">&nbsp;</td>
<td width="450" colspan="2" class="StyleInfoData"><br/><br/><form action="./?page=annonces&action=surv&siret=<?=$siret?>" method="POST"><input type="checkbox"/> Mettre sous surveillance les annonces l&eacute;gales<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Votre r&eacute;f&eacute;rence <input name="ref" type="text" value="" size="10"/><br/>
Adresse email du destinataire <input name="email" type="text" value="<? if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf') echo $tabInfo['email']?>" size="20"/>&nbsp;&nbsp;&nbsp;<input type="image" src="./img/boutton_valider_off.gif" name="submit" onmouseover="this.src='./img/boutton_valider_on.gif'" onmouseout="this.src='./img/boutton_valider_off.gif'" title="Mettre sous surveillance..."></form></td>
</tr>
<? }
?>
</table>
<!--
<?/*
print_r($annonces);*/
?>-->

File diff suppressed because it is too large Load Diff

View File

@ -1,435 +1,468 @@
<?
// if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
$_SESSION['connected'] = true;
if (!isset($page2)) $page2='main2.php';
function valideSiren($siren, $nic='', $erreur=false) {
$lenSIREN=strlen($siren);
if (!valideData($siren, 9, 9,'N')) //Siren non précisé 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;
}
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&eacute; de cette entreprise">'.$sirenBrut.'</a>';
}
}
return $sirenBrut;
}
}
if ($sortie=='pdf') {
//TODO : Voir le chemin et le fichier ???
require_once('/var/www/site_extranet/www/html2pdf/html2fpdf.php');
ob_start();//'html2pdf');
}
/*<!--<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />-->*/
?><html>
<head>
<title>Extranet Scores &amp; D&eacute;cisions - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="/infogreffe/styles/infogreffe_base.css" />
<link rel="stylesheet" type="text/css" href="/infogreffe/styles/infogreffe.css" />
<link rel="stylesheet" type="text/css" href="/nonimg/main.css" />
<link rel="stylesheet" type="text/css" href="/nonimg/menu.css" />
<link rel="stylesheet" href="./css/jquery.autocomplete.css" type="text/css" />
<script type="text/javascript" src="/nonimg/autoCompletion.js"></script>
<script type="text/javascript" src="/nonimg/menu.js"></script>
<script type="text/javascript" src="/nonimg/dropDownOverlapping.js"></script>
<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>
<script type="text/javascript">
<!--
var myMenu;
window.onload = function() {
myMenu = new SDMenu("my_menu");
myMenu.init();
var page = location.href;
var sPage= page.substr(page.lastIndexOf('/') + 7, 4);
var refr = document.referrer;
var sRefr= refr.substr(refr.lastIndexOf('/') + 7, 4);
// alert (sRefr);
if ((sPage=='rech'||sPage=='main') && sRefr!='rech' && sRefr!='main') {
myMenu.collapseAll();
var firstSubmenu = myMenu.submenus[0];
myMenu.expandMenu(firstSubmenu);
}
};
$(document).ready(function(){
$("#formR-naf").autocomplete("./pages/nafajax.php", {
minChars:3,
width: 400,
highlight: false,
scroll: true,
formatResult: function(data, value) {
return value.split(" , ")[0];
}
});
});
//-->
</script>
<script language=JavaScript type=text/javascript>
<!--
function getImagePageLeft(img){
var x,obj;
x=0;
obj=img;
if(img!=null){
while(obj.offsetParent!=null){
x+=obj.offsetLeft;
obj=obj.offsetParent
}
x+=obj.offsetLeft;
return x
} else {
return(-1)
}
}
function getImagePageTop(img){
var y,obj;
y=0;
obj=img;
if(img!=null){
while(obj.offsetParent!=null){
y+=obj.offsetTop;
obj=obj.offsetParent
}
y+=obj.offsetTop;
return y
} else {
return(-1)
}
}
// -->
</script>
</head>
<? if ($sortie<>'pdf' && $sortie<>'prt')
{
?>
<body onResize="JSFX_FloatTopDiv()">
<?
} elseif ($sortie=='prt') {
?>
<body onLoad="window.print();window.close();">
<? } ?>
<center>
<table border="0" width="800" height="600">
<tr><? if ($sortie<>'pdf' && $sortie<>'prt') { ?>
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />-->&nbsp;</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>
<? } else { ?>
<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>
<? } ?>
</tr>
</table><br/>
<font size="1" face="Arial, Helvetica, sans-serif">&copy; 2006-<?=date('Y')?> Scores &amp; D&eacute;cisions SAS - Tous droits r&eacute;serv&eacute;s - <a href="<?=SITEINST_URL2?>mentions.htm" target="_blank">Mentions l&eacute;gales</a>
<? if ($sortie<>'pdf' && $sortie<>'prt') {?> - <a href="<?=$_SERVER['REQUEST_URI']?>&sortie=prt" target="_blank"><img src="./img/icone_print.png"/></a><!-- - <a href="<?=$_SERVER['REQUEST_URI']?>&sortie=pdf"><img src="./img/icone_pdf.gif"/></a>--><?}?>
</font>
</center>
<? 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&egrave;re recherche</a>
<?php
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="<?=IPARI_URL?>?siret=<?=$siret?>" target="_blank">IparI &copy;</a>
<?
}
?>
</div>
<div class="collapsed">
<span>IDENTITE</span>
<? if ($siret*1==0 && $id*1==0) {?>
<a href="#"><font color="Gray">Fiche d'identit&eacute;</font></a>
<? } else { ?>
<a href="/?page=identite&siret=<?=$siret?>&id=<?=$id?>">Fiche d'identit&eacute;</a>
<? }
if ($siret*1<>0) {?>
<a href="/?page=etablissements&siret=<?=$siret?>&id=<?=$id?>">Liste des &eacute;tablissements</a>
<a href="/?page=liens&siret=<?=$siret?>&id=<?=$id?>">Liens inter-entreprises</a>
<? } else { ?>
<a href="#"><font color="Gray">Liste des &eacute;tablissements</font></a>
<a href="#"><font color="Gray">Liens inter-entreprises</font></a>
<? }
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>
<?
}
}
?> <!--Identite approfondie-->
</div>
<div class="collapsed">
<span>DIRIGEANTS</span>
<? if ($siret*1<>0) {?>
<a href="/?page=dirigeants&siret=<?=$siret?>">Liste des dirigeants</a>
<a href="/?page=dirigeants&vue=histo&siret=<?=$siret?>">Historique des dirigeants</a>
<? } else { ?>
<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>
<? if ($siret*1<>0) {?>
<a href="/?page=bilans&siret=<?=$siret?>">Bilans, Ratios &amp; S.I.G.</a>
<a href="/?page=liasse&siret=<?=$siret?>">Liasse fiscale</a>
<a href="/?page=bourse&siret=<?=$siret?>">Bourse &amp; Cotations</a>
<? } else { ?>
<a href="#"><font color="Gray">Bilans, Ratios &amp; S.I.G.</font></a>
<a href="#"><font color="Gray">Liasse fiscale</font></a>
<a href="#"><font color="Gray">Bourse &amp; Cotations</font></a>
<? } ?>
</div>
<div class="collapsed">
<span>ELEMENTS JURIDIQUES</span>
<?
if ($siret*1==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
}
/*$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
$tabEntrep['Source']=$etab['Source'];
$tabEntrep['SourceId']=$etab['SourceId'];
$tabEntrep['codeCommune']=$etab['Dept'].$etab['codeCommune'];
$tabEntrep['nafEn']=$etab['NafEnt'];
$tabEntrep['nafEt']=$etab['NafEtab'];
$_SESSION['tabInfo']['entrep']*/
//print_r($_SESSION);
?>
<a href="/?page=annonces&id=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Annonces L&eacute;gales</a>
<? if ($siret*1<>0) { ?>
<a href="/?page=infosreg&siret=<?=$siret?>">Information R&egrave;glement&eacute;e</a>
<a href="/?page=competences&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&vue=tous">Comp&eacute;tences Territoriales</a>
<a href="/?page=conventions&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&nafEn=<?=$tabEntrep['nafEn']?>&nafEt=<?=$tabEntrep['nafEt']?>">Conventions collectives</a>
<? } else { ?>
<a href="#"><font color="Gray">Information R&egrave;glement&eacute;e</font></a>
<a href="#"><font color="Gray">Comp&eacute;tences Territoriales</font></a>
<a href="#"><font color="Gray">Conventions collectives</font></a>
<? }
if (preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1<>0) { ?>
<a href="/?page=marques&siret=<?=$siret?>">Marques d&eacute;pos&eacute;es</a>
<? } else { ?>
<a href="#"><font color="Gray">Marques d&eacute;pos&eacute;es</font></a>
<?
}
}
?>
</div>
<div class="collapsed">
<span>EVALUATION</span>
<? if ($siret*1<>0) {?>
<a href="/?page=indiscore&siret=<?=$siret?>">indiScore &copy;</a>
<? if ($_SESSION['tabInfo']['login']=='reunicacsf' ||
$_SESSION['tabInfo']['login']=='ylenaour' ||
$_SESSION['tabInfo']['login']=='mheitz' ||
$_SESSION['tabInfo']['login']=='jmartory' ) { ?>
<a href="#"><font color="Gray">indiScore + &copy;</font></a>
<? if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="/?page=scorescf&siret=<?=$siret?>">scoring Credit Safe &copy;</a>
<? }
}
} else { ?>
<a href="#"><font color="Gray">indiScore &copy;</font></a>
<? if ($_SESSION['tabInfo']['login']=='reunicacsf' ||
$_SESSION['tabInfo']['login']=='ylenaour' ||
$_SESSION['tabInfo']['login']=='mheitz' ||
$_SESSION['tabInfo']['login']=='jmartory' ) { ?>
<a href="#"><font color="Gray">indiScore + &copy;</font></a>
<? if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">scoring Credit Safe &copy;</font></a>
<? }
}
} ?>
</div>
<div class="collapsed">
<span>PIECES OFFICIELLES</span>
<? if ($siret*1<>0) {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) {
if ($_SESSION['tabInfo']['login']=='ylenaour') { ?>
<a href="/?page=pieces&siret=<?=$siret?>">Commandes de pi&egrave;ces</a><?
} else { ?>
<a href="/?page=kbis&siret=<?=$siret?>">K-Bis</a>
<? }
} ?>
<a href="/?page=greffes&vue=bilans&siret=<?=$siret?>">Comptes annuels</a>
<a href="/?page=greffes&vue=actes&siret=<?=$siret?>">Actes &amp; Statuts</a>
<? } elseif ($siret==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">K-Bis</font></a>
<? } ?>
<a href="#"><font color="Gray">Comptes annuels</font></a>
<a href="/?page=greffes&vue=actes&id=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Actes &amp; Statuts</a>
<!--<a href="/?page=greffes&vue=statuts&siret=<?=$siret?>">Statuts</a>-->
<!--<a href="/?page=greffes&vue=jugements&siret=<?=$siret?>">Jugements</a>-->
<? } else {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">K-Bis</font></a>
<? } ?>
<a href="#"><font color="Gray">Comptes annuels</font></a>
<a href="#"><font color="Gray">Actes &amp; Statuts</font></a>
<!--<a href="#"><font color="Gray">Statuts</font></a>-->
<!--<a href="#"><font color="Gray">Jugements</font></a>-->
<? } ?>
</div>
<div class="collapsed">
<span>OPTIONS</span><!--
<a href="#">Mes consommations</a>
<a href="#">Mon portefeuille</a>
<a href="#">Mes surveillances</a>-->
<? if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
<a href="/?page=moncompte&id=<?=$id?>&siret=<?=$siret?>">Mes options</a>
<? }
if ($_SESSION['tabInfo']['profil']=='Administrateur') {
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
<a href="/?page=administration&id=<?=$id?>&siret=<?=$siret?>">Administration</a>
<? }
if ($_SESSION['tabInfo']['login']=='ylenaour' ||
$_SESSION['tabInfo']['login']=='mheitz' ||
$_SESSION['tabInfo']['login']=='jmartory' ||
$_SESSION['tabInfo']['login']=='reunicastats' ) { ?>
<a href="/?page=stats&id=<?=$id?>&siret=<?=$siret?>">Statistiques</a>
<? }
}
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea'/* &&
$_SERVER['REMOTE_ADDR']=='88.185.121.243'*/ ) { ?>
<a href="/?page=survliste&id=<?=$id?>&siret=<?=$siret?>">Surveillances</a>
<? }
?>
<a href="/?page=main&action=logout">Se d&eacute;connecter</a>
</div>
</div>
</layer>
<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"
var verticalpos="fromtop"
if (!document.layers)
document.write('</div>')
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>
<? if (!$_SESSION['connected']) die('Erreur 11000 : Not connected');
if (!isset($page2)) $page2='main2.php';
function valideSiren($siren, $nic='', $erreur=false) {
$lenSIREN=strlen($siren);
if (!valideData($siren, 9, 9,'N')) //Siren non précisé 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;
}
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&eacute; de cette entreprise">'.$sirenBrut.'</a>';
}
}
return $sirenBrut;
}
}
if ($sortie=='pdf') {
require_once('/var/www/site_extranet/www/html2pdf/html2fpdf.php');
ob_start();//'html2pdf');
}
/*<!--<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />-->*/
?><html>
<head>
<title>Extranet Scores &amp; D&eacute;cisions - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="/infogreffe/styles/infogreffe_base.css" />
<link rel="stylesheet" type="text/css" href="/infogreffe/styles/infogreffe.css" />
<link rel="stylesheet" type="text/css" href="/nonimg/main.css" />
<link rel="stylesheet" type="text/css" href="/nonimg/menu.css" />
<script type="text/javascript" src="/nonimg/autoCompletion.js"></script>
<script type="text/javascript" src="/nonimg/menu.js"></script>
<script type="text/javascript" src="/nonimg/dropDownOverlapping.js"></script>
<script type="text/javascript">
<!--
var myMenu;
window.onload = function() {
myMenu = new SDMenu("my_menu");
myMenu.init();
var page = location.href;
var sPage= page.substr(page.lastIndexOf('/') + 7, 4);
var refr = document.referrer;
var sRefr= refr.substr(refr.lastIndexOf('/') + 7, 4);
// alert (sRefr);
if ((sPage=='rech'||sPage=='main') && sRefr!='rech' && sRefr!='main') {
myMenu.collapseAll();
var firstSubmenu = myMenu.submenus[0];
myMenu.expandMenu(firstSubmenu);
}
};
/*
myMenu.();
/* var myMenu = new SDMenu("main_menu"); // ID of the menu element
// Default values...
myMenu.speed = 3;
myMenu.remember = true;
myMenu.oneSmOnly = false;
myMenu.markCurrent = true;
myMenu.init();
// Additional methods...
var firstSubmenu = myMenu.submenus[0];
myMenu.expandMenu(firstSubmenu); // Expand a submenu
myMenu.collapseMenu(firstSubmenu); // Collapse a menu
myMenu.toggleMenu(firstSubmenu); // Expand if collapsed and collapse if expanded
myMenu.expandAll(); // Expand all submenus
myMenu.collapseAll(); // Collapse all submenus
*/
//-->
</script>
<script language=JavaScript type=text/javascript>
<!--
function getImagePageLeft(img){
var x,obj;
x=0;
obj=img;
if(img!=null){
while(obj.offsetParent!=null){
x+=obj.offsetLeft;
obj=obj.offsetParent
}
x+=obj.offsetLeft;
return x
} else {
return(-1)
}
}
function getImagePageTop(img){
var y,obj;
y=0;
obj=img;
if(img!=null){
while(obj.offsetParent!=null){
y+=obj.offsetTop;
obj=obj.offsetParent
}
y+=obj.offsetTop;
return y
} else {
return(-1)
}
}
// -->
</script>
<?/* if ($sortie<>'pdf' && $sortie<>'prt' && $_REQUEST['page']=='recherche' && $_REQUEST['vue']=='ent') { ?>
<script type="text/javascript">
window.onload = function(){initAutoComplete(document.getElementById('formR-id'),
document.getElementById('formR-naf'),document.getElementById('formR-submit'))};
</script>
<?php
}*/
/*if ($page=='carte') {
include_once(INCLUDE_PATH.'partenaires/GoogleMapAPI.class.php');
$map = new GoogleMapAPI('map');
// setup database for geocode caching
//$map->setDSN('mysql://root:bzh4231*@localhost/sdv1');
// enter YOUR Google Map Key
$map->setAPIKey('ABQIAAAAuKBtUyFonYJBl1fqfc78tRSYaqxLwFTMDT_MtTSFor1bsUZ_ChTvuzyTINkPMlW88Ar9fofaphzN3w');
$map->printHeaderJS();
$map->printMapJS();/*
?>
<!-- necessary for google maps polyline drawing in IE -->
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style><?php
*}*/
?>
</head>
<? if ($sortie<>'pdf' && $sortie<>'prt')
{
/*if ($page=='carte')
{ ?>
<body onload="onLoad()"><!--onResize="JSFX_FloatTopDiv()"-->
<? } else { */?>
<body onResize="JSFX_FloatTopDiv()">
<? //}
} elseif ($sortie=='prt') { ?>
<body onLoad="window.print();window.close();">
<? } ?>
<center>
<table border="0" width="800" height="600">
<tr><? if ($sortie<>'pdf' && $sortie<>'prt') { ?>
<td width="220" valign="top"><!--<img src="./img/logo_menu.png" width="200" height="65" />-->&nbsp;</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>
<? } else { ?>
<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>
<? } ?>
</tr>
</table><br/>
<font size="1" face="Arial, Helvetica, sans-serif">&copy; 2006-<?=date('Y')?> Scores &amp; D&eacute;cisions SAS - Tous droits r&eacute;serv&eacute;s - <a href="<?=SITEINST_URL2?>mentions.htm" target="_blank">Mentions l&eacute;gales</a>
<? if ($sortie<>'pdf' && $sortie<>'prt') {?> - <a href="<?=$_SERVER['REQUEST_URI']?>&sortie=prt" target="_blank"><img src="./img/icone_print.png"/></a><!-- - <a href="<?=$_SERVER['REQUEST_URI']?>&sortie=pdf"><img src="./img/icone_pdf.gif"/></a>--><?}?>
</font>
</center>
<? 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&egrave;re recherche</a>
<?php
if (preg_match('/IPARI/i', $_SESSION['tabInfo']['droits'])) {
?>
<a href="<?=IPARI_URL?>?siret=<?=$siret?>" target="_blank">IparI &copy;</a>
<?
}
?>
</div>
<div class="collapsed">
<span>IDENTITE</span>
<? if ($siret*1==0 && $id*1==0) {?>
<a href="#"><font color="Gray">Fiche d'identit&eacute;</font></a>
<? } else { ?>
<a href="/?page=identite&siret=<?=$siret?>&id=<?=$id?>">Fiche d'identit&eacute;</a>
<? }
if ($siret*1<>0) {?>
<a href="/?page=etablissements&siret=<?=$siret?>&id=<?=$id?>">Liste des &eacute;tablissements</a>
<a href="/?page=liens&siret=<?=$siret?>&id=<?=$id?>">Liens inter-entreprises</a>
<? } else { ?>
<a href="#"><font color="Gray">Liste des &eacute;tablissements</font></a>
<a href="#"><font color="Gray">Liens inter-entreprises</font></a>
<? }
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>
<?
}
}
?> <!--Identite approfondie-->
</div>
<div class="collapsed">
<span>DIRIGEANTS</span>
<? if ($siret*1<>0) {?>
<a href="/?page=dirigeants&siret=<?=$siret?>">Liste des dirigeants</a>
<a href="/?page=dirigeants&vue=histo&siret=<?=$siret?>">Historique des dirigeants</a>
<? } else { ?>
<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>
<? if ($siret*1<>0) {?>
<a href="/?page=bilans&siret=<?=$siret?>">Bilans, Ratios &amp; S.I.G.</a>
<a href="/?page=liasse&siret=<?=$siret?>">Liasse fiscale</a>
<a href="/?page=bourse&siret=<?=$siret?>">Bourse &amp; Cotations</a>
<? } else { ?>
<a href="#"><font color="Gray">Bilans, Ratios &amp; S.I.G.</font></a>
<a href="#"><font color="Gray">Liasse fiscale</font></a>
<a href="#"><font color="Gray">Bourse &amp; Cotations</font></a>
<? } ?>
</div>
<div class="collapsed">
<span>ELEMENTS JURIDIQUES</span>
<?
if ($siret*1==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
}
/*$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
$tabEntrep['Source']=$etab['Source'];
$tabEntrep['SourceId']=$etab['SourceId'];
$tabEntrep['codeCommune']=$etab['Dept'].$etab['codeCommune'];
$tabEntrep['nafEn']=$etab['NafEnt'];
$tabEntrep['nafEt']=$etab['NafEtab'];
$_SESSION['tabInfo']['entrep']*/
//print_r($_SESSION);
?>
<a href="/?page=annonces&id=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Annonces L&eacute;gales</a>
<? if ($siret*1<>0) { ?>
<a href="/?page=infosreg&siret=<?=$siret?>">Information R&egrave;glement&eacute;e</a>
<a href="/?page=competences&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&vue=tous">Comp&eacute;tences Territoriales</a>
<a href="/?page=conventions&siret=<?=$siret?>&codcom=<?=$tabEntrep['codeCommune']?>&nafEn=<?=$tabEntrep['nafEn']?>&nafEt=<?=$tabEntrep['nafEt']?>">Conventions collectives</a>
<? } else { ?>
<a href="#"><font color="Gray">Information R&egrave;glement&eacute;e</font></a>
<a href="#"><font color="Gray">Comp&eacute;tences Territoriales</font></a>
<a href="#"><font color="Gray">Conventions collectives</font></a>
<? }
if (preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits'])) {
if ($siret*1<>0) { ?>
<a href="/?page=marques&siret=<?=$siret?>">Marques d&eacute;pos&eacute;es</a>
<? } else { ?>
<a href="#"><font color="Gray">Marques d&eacute;pos&eacute;es</font></a>
<?
}
}
?>
</div>
<div class="collapsed">
<span>EVALUATION</span>
<? if ($siret*1<>0) {?>
<a href="/?page=indiscore&siret=<?=$siret?>">indiScore &copy;</a>
<? if ($_SESSION['tabInfo']['login']=='reunicacsf' ||
$_SESSION['tabInfo']['login']=='testreunica' ||
$_SESSION['tabInfo']['login']=='ylenaour' ||
$_SESSION['tabInfo']['login']=='mheitz' ||
$_SESSION['tabInfo']['login']=='jmartory' ) { ?>
<a href="#"><font color="Gray">indiScore + &copy;</font></a>
<? if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="/?page=scorescf&siret=<?=$siret?>">scoring Credit Safe &copy;</a>
<? }
}
} else { ?>
<a href="#"><font color="Gray">indiScore &copy;</font></a>
<? if ($_SESSION['tabInfo']['login']=='reunicacsf' ||
$_SESSION['tabInfo']['login']=='testreunica' ||
$_SESSION['tabInfo']['login']=='ylenaour' ||
$_SESSION['tabInfo']['login']=='mheitz' ||
$_SESSION['tabInfo']['login']=='jmartory' ) { ?>
<a href="#"><font color="Gray">indiScore + &copy;</font></a>
<? if (preg_match('/scorecsf/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">scoring Credit Safe &copy;</font></a>
<? }
}
} ?>
</div>
<div class="collapsed">
<span>PIECES OFFICIELLES</span>
<? if ($siret*1<>0) {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) {
if ($_SESSION['tabInfo']['login']=='ylenaour') { ?>
<a href="/?page=pieces&siret=<?=$siret?>">Commandes de pi&egrave;ces</a><?
} else { ?>
<a href="/?page=kbis&siret=<?=$siret?>">K-Bis</a>
<? }
} ?>
<a href="/?page=greffes&vue=bilans&siret=<?=$siret?>">Comptes annuels</a>
<a href="/?page=greffes&vue=actes&siret=<?=$siret?>">Actes &amp; Statuts</a>
<? } elseif ($siret==0) {
$source=$_SESSION['tabInfo']['entrep']['Source'];
$sourceId=$_SESSION['tabInfo']['entrep']['SourceId'];
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">K-Bis</font></a>
<? } ?>
<a href="#"><font color="Gray">Comptes annuels</font></a>
<a href="/?page=greffes&vue=actes&id=<?=$sourceId?>&siret=<?=$siret?>&source=<?=$source?>">Actes &amp; Statuts</a>
<!--<a href="/?page=greffes&vue=statuts&siret=<?=$siret?>">Statuts</a>-->
<!--<a href="/?page=greffes&vue=jugements&siret=<?=$siret?>">Jugements</a>-->
<? } else {
if (preg_match('/KBIS/i', $_SESSION['tabInfo']['droits'])) { ?>
<a href="#"><font color="Gray">K-Bis</font></a>
<? } ?>
<a href="#"><font color="Gray">Comptes annuels</font></a>
<a href="#"><font color="Gray">Actes &amp; Statuts</font></a>
<!--<a href="#"><font color="Gray">Statuts</font></a>-->
<!--<a href="#"><font color="Gray">Jugements</font></a>-->
<? } ?>
</div>
<div class="collapsed">
<span>OPTIONS</span><!--
<a href="#">Mes consommations</a>
<a href="#">Mon portefeuille</a>
<a href="#">Mes surveillances</a>-->
<? if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
<a href="/?page=moncompte&id=<?=$id?>&siret=<?=$siret?>">Mes options</a>
<? }
if ($_SESSION['tabInfo']['profil']=='Administrateur') {
if ($_SESSION['tabInfo']['login']<>'testreunica' && $_SESSION['tabInfo']['login']<>'reunicacsf' && $_SESSION['tabInfo']['login']<>'reunicastats' ) { ?>
<a href="/?page=administration&id=<?=$id?>&siret=<?=$siret?>">Administration</a>
<? }
if ($_SESSION['tabInfo']['login']=='ylenaour' ||
$_SESSION['tabInfo']['login']=='mheitz' ||
$_SESSION['tabInfo']['login']=='jmartory' ||
$_SESSION['tabInfo']['login']=='reunicastats' ) { ?>
<a href="/?page=stats&id=<?=$id?>&siret=<?=$siret?>">Statistiques</a>
<? }
}
if (substr( $_SESSION['tabInfo']['login'],0,6)=='cnasea'/* &&
$_SERVER['REMOTE_ADDR']=='88.185.121.243'*/ ) { ?>
<a href="/?page=survliste&id=<?=$id?>&siret=<?=$siret?>">Surveillances</a>
<? }
?>
<a href="/?page=main&action=logout">Se d&eacute;connecter</a>
</div>
</div>
</layer>
<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"
var verticalpos="fromtop"
if (!document.layers)
document.write('</div>')
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>
</html>

File diff suppressed because it is too large Load Diff