2009-02-17 13:14:53 +00:00
< ? php
$type = trim ( @ $_REQUEST [ 'type' ]);
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'siret' ]));
2009-04-01 12:45:45 +00:00
$tabInfo = $_SESSION [ 'tabInfo' ];
2009-02-17 13:14:53 +00:00
if ( ! $_SESSION [ 'connected' ])
echo ( 'Vous devez <20> tre connect<63> afin de pouvoir utiliser cette fonctionnalit<69> ' );
2009-07-20 16:17:33 +00:00
/* elseif ( $_SESSION [ 'tabInfo' ][ 'login' ] <> 'ylenaour' && $_SESSION [ 'tabInfo' ][ 'login' ] <> 'jmartory' &&
2009-02-17 13:14:53 +00:00
$_SESSION [ 'tabInfo' ][ 'login' ] <> 'mheitz' ) {
2009-07-20 16:17:33 +00:00
echo ( 'Vous n\'avez pas les droits n<> cessaires pour utiliser cette fonctionnalit<69> ' );
2009-02-17 13:14:53 +00:00
} */
elseif ( $type <> 'tri' && //Tribunaux
$type <> 'pre' && // Pr<50> fectures
$type <> 'jal' && // Journaux d'Annonces L<> gales
$type <> 'adm' && // Mandataires
$type <> 'hui' && // Huissiers
$type <> 'cad' && // Cadastre
$type <> 'avo' && // Avocats
$type <> 'not' && // Notaires
// CFE
/*
$type <> 'cci' && // Chambres de Commerce
$type <> 'cma' && // Chambres des m<> tiers
$type <> 'cag' && // Chambres d'agriculture
$type <> 'cba' && // Chambre nationale de la batellerie artisanale
$type <> 'cur' && // URSSAF
$type <> 'cdi' && // Centres des imp<6D> ts
*/
$type <> 'cfe' && // Centres de Formalit<69> s des Entreprises
$type <> '' ) {
2009-07-20 16:17:33 +00:00
echo ( 'Comp<6D> tence territoriale inexistante' );
2009-02-17 13:14:53 +00:00
}
else
{
2009-04-01 12:45:45 +00:00
if ( strlen ( $siret ) <> 0 && strlen ( $siret ) <> 9 && strlen ( $siret ) <> 14 ) die ( 'Param<61> tres incorrects !' );
2009-02-17 13:14:53 +00:00
2009-03-11 07:51:18 +00:00
$idEntreprise = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'idEntreprise' ])) * 1 ; // Si id=0 alors non communiqu<71>
if (( $siret * 1 ) == 0 && $idEntreprise == 0 ) die ( 'Param<61> tres incorrects !' );
2009-02-17 13:14:53 +00:00
$siren = substr ( $siret , 0 , 9 );
if ( isset ( $_REQUEST [ 'id' ]) && $_REQUEST [ 'id' ] * 1 <> 0 ) $idCom = $_REQUEST [ 'id' ];
else $idCom = false ;
2009-07-20 16:17:33 +00:00
require_once 'partenaires/classMTva.php' ;
require_once 'partenaires/classMMap.php' ;
require_once 'partenaires/classMCoface.php' ;
require_once 'common/dates.php' ;
2009-02-17 13:14:53 +00:00
try {
$O = $client -> getListeCompetences ( $siret , $type , $_SESSION [ 'tabInfo' ][ 'entrep' ][ 'codeCommune' ]);
2009-07-20 16:17:33 +00:00
$competences = $O [ 'result' ];
2009-03-26 16:01:15 +00:00
$firephp -> log ( $competences , 'Competences' );
2009-02-17 13:14:53 +00:00
} catch ( SoapFault $fault ) {
2009-07-20 16:17:33 +00:00
require_once 'soaperror.php' ;
2009-02-26 17:16:11 +00:00
processSoapFault ( $client , $fault , $tabInfo );
2009-02-17 13:14:53 +00:00
die ();
}
$raisonSociale = $tabInfo [ 'entrep' ][ 'raisonSociale' ];
?>
2009-08-17 14:35:12 +00:00
< div id = " center " >
< h1 class = " titre " > COMP & Eacute ; TENCES TERRITORIALES </ h1 >
< table >
< tr >
2009-02-17 13:14:53 +00:00
< 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>
2009-08-17 14:35:12 +00:00
</ tr >
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " colspan = " 2 " class = " StyleInfoLib " > Raison Sociale </ td >
< td width = " 350 " class = " StyleInfoData " >< ? = $raisonSociale ?> </td>
2009-08-17 14:35:12 +00:00
</ tr >
< tr >< td colspan = " 4 " class = " StyleInfoData " >& nbsp ; </ td ></ tr >
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
2009-03-11 07:51:18 +00:00
< td colspan = " 3 " class = " StyleInfoData " >< a href = " ./?page=competences&idEntreprise=<?= $idEntreprise ?>&siret=<?= $siret ?>&type=tri " > Tribunaux </ a ></ td >
2009-08-17 14:35:12 +00:00
</ tr >
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
2009-03-11 07:51:18 +00:00
< td colspan = " 3 " class = " StyleInfoData " >< a href = " ./?page=competences&idEntreprise=<?= $idEntreprise ?>&siret=<?= $siret ?>&type=adm " > Administrateurs & amp ; Mandataires judiciaires </ a ></ td >
2009-08-17 14:35:12 +00:00
</ tr >
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
2009-03-11 07:51:18 +00:00
< td colspan = " 3 " class = " StyleInfoData " >< a href = " ./?page=competences&idEntreprise=<?= $idEntreprise ?>&siret=<?= $siret ?>&type=hui " > Huissiers de justice </ a ></ td >
2009-08-17 14:35:12 +00:00
</ tr >
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
2009-03-11 07:51:18 +00:00
< td colspan = " 3 " class = " StyleInfoData " >< a href = " ./?page=competences&idEntreprise=<?= $idEntreprise ?>&siret=<?= $siret ?>&type=pre " > Pr & eacute ; fectures & amp ; Sous - pr & eacute ; fectures </ a ></ td >
2009-08-17 14:35:12 +00:00
</ tr >
< ? php
if ( $_SERVER [ 'REMOTE_ADDR' ] == '83.206.102.217' || $_SERVER [ 'REMOTE_ADDR' ] == '88.185.121.243' )
{
?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
2009-03-11 07:51:18 +00:00
< td colspan = " 3 " class = " StyleInfoData " >< a href = " ./?page=competences&idEntreprise=<?= $idEntreprise ?>&siret=<?= $siret ?>&type=cfe " > Centres de formalit & eacute ; s des Entreprises ( CCI , Greffes , M & eacute ; tiers , Artisanat , Agriculture , URSSAF , Imp & ocirc ; ts , etc ... ) </ a ></ td >
2009-08-17 14:35:12 +00:00
</ tr >
< ? php
}
?>
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
2009-03-11 07:51:18 +00:00
< td colspan = " 3 " class = " StyleInfoData " >< a href = " ./?page=competences&idEntreprise=<?= $idEntreprise ?>&siret=<?= $siret ?>&type=jal " > Journaux d ' Annonces L & eacute ; gales </ a ></ td >
2009-08-17 14:35:12 +00:00
</ tr >
</ table >
2009-02-17 13:14:53 +00:00
< ? php
2009-08-17 14:35:12 +00:00
if ( $type == 'tri' )
{
?>
< h2 > Tribunaux </ h2 >
< table >
< ? php
foreach ( $competences as $comp )
{
?>
< tr >
2009-02-17 13:14:53 +00:00
< td width = " 30 " >& nbsp ; </ td >
2009-08-17 14:35:12 +00:00
< td width = " 550 " colspan = " 3 " class = " StyleInfoData " >
< b >< ul >< li >
< ? php
print strtr ( ' ' . $comp [ 'Nom' ], array ( ' TGI ' => 'TRIBUNAL DE GRANDE INSTANCE DE ' , ' TI ' => 'TRIBUNAL D\'INSTANCE DE ' , ' TC ' => 'TRIBUNAL DE COMMERCE DE ' , ' TGIcc ' => 'TRIBUNAL DE GRANDE INSTANCE A COMPETENCE COMMERCIALE ' ));
?>
</ b >< br />
< ? php
if ( trim ( $comp [ 'Siret' ]) <> '' )
{
?>
< b > RCS < a href = " ./?page=identite&idEntreprise=<?= $idEntreprise ?>&siret=<?= $comp['Siret'] ?> " >< ? = substr ( $comp [ 'Siret' ], 0 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 3 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 6 , 3 ) . ' <i>' . substr ( $comp [ 'Siret' ], 9 , 5 ); ?> </i></a></b><br/>
< ? php
}
?>
< ? = $comp [ 'Adr' ]; ?> <br/>
< ? if ( $comp [ 'AdrComp' ] <> '' ) echo $comp [ 'AdrComp' ] . '<br/>' ; ?>
< b >< ? = $comp [ 'CP' ] . ' ' . $comp [ 'Ville' ] ?> </b><br/>
< ? if ( $comp [ 'Tel' ] <> '' ) echo 'Tél : ' . wordwrap ( $comp [ 'Tel' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( $comp [ 'Fax' ] <> '' ) echo 'Fax : ' . wordwrap ( $comp [ 'Fax' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( trim ( $comp [ 'Web' ]) <> '' ) {
if ( substr ( $comp [ 'Web' ], 0 , 7 ) <> 'http://' )
$siteWeb = 'http://' . $comp [ 'Web' ];
else
$siteWeb = $comp [ 'Web' ];
echo 'Site internet : <a href="' . $siteWeb . '" target="_blank">' . $siteWeb . '</a><br/>' ;
} ?>
< ? if ( $comp [ 'Mail' ] <> '' ) echo 'Courriel : <a href="mailto:' . $comp [ 'Mail' ] . '">' . $comp [ 'Mail' ] . '</a><br/>' ; ?>
< ? if ( $comp [ 'Remarque' ] <> '' ) echo $comp [ 'Remarque' ] . '<br/>' ; ?>
</ li ></ ul ></ td ></ td >
</ tr >
2009-02-17 13:14:53 +00:00
< ? php
2009-08-17 16:25:42 +00:00
}
?>
</ table >
< ? php
2009-08-17 14:35:12 +00:00
} elseif ( $type == 'cfe' ) {
?>
< h2 > Centre de formalit<EFBFBD> s des entreprises </ h2 >
< table >
2009-02-17 13:14:53 +00:00
< ? php foreach ( $competences as $comp ) { ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 3 " class = " StyleInfoData " >< b >< ul >< li >< ? = strtr ( ' ' . $comp [ 'Nom' ], array ( ' TGI ' => 'TRIBUNAL DE GRANDE INSTANCE DE ' ,
' TI ' => 'TRIBUNAL D\'INSTANCE DE ' , ' TC ' => 'TRIBUNAL DE COMMERCE DE ' , ' TGIcc ' => 'TRIBUNAL DE GRANDE INSTANCE A COMPETENCE COMMERCIALE ' )) ?> </b><br/>
< ? if ( trim ( $comp [ 'Siret' ]) <> '' ) { ?>
2009-03-11 07:51:18 +00:00
< b > RCS < a href = " ./?page=identite&idEntreprise=<?= $idEntreprise ?>&siret=<?= $comp['Siret'] ?> " >< ? = substr ( $comp [ 'Siret' ], 0 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 3 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 6 , 3 ) . ' <i>' . substr ( $comp [ 'Siret' ], 9 , 5 ); ?> </i></a></b><br/><?}?>
2009-02-17 13:14:53 +00:00
< ? = $comp [ 'Adr' ]; ?> <br/>
< ? if ( $comp [ 'AdrComp' ] <> '' ) echo $comp [ 'AdrComp' ] . '<br/>' ; ?>
< b >< ? = $comp [ 'CP' ] . ' ' . $comp [ 'Ville' ] ?> </b><br/>
< ? if ( $comp [ 'Tel' ] <> '' ) echo 'Tél : ' . wordwrap ( $comp [ 'Tel' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( $comp [ 'Fax' ] <> '' ) echo 'Fax : ' . wordwrap ( $comp [ 'Fax' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( trim ( $comp [ 'Web' ]) <> '' ) {
if ( substr ( $comp [ 'Web' ], 0 , 7 ) <> 'http://' )
$siteWeb = 'http://' . $comp [ 'Web' ];
else
$siteWeb = $comp [ 'Web' ];
echo 'Site internet : <a href="' . $siteWeb . '" target="_blank">' . $siteWeb . '</a><br/>' ;
} ?>
< ? if ( $comp [ 'Mail' ] <> '' ) echo 'Courriel : <a href="mailto:' . $comp [ 'Mail' ] . '">' . $comp [ 'Mail' ] . '</a><br/>' ; ?>
< ? if ( $comp [ 'Remarque' ] <> '' ) echo $comp [ 'Remarque' ] . '<br/>' ; ?>
</ li ></ ul ></ td ></ td >
</ tr >
< ? php
}
2009-08-17 14:35:12 +00:00
?>
</ table >
< ? php
} elseif ( $type == 'pre' )
{
?>
< h2 > Pr<EFBFBD> fectures et Sous - Pr<EFBFBD> fectures </ h2 >
< table >
2009-02-17 13:14:53 +00:00
< ? php foreach ( $competences as $comp ) { ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 3 " class = " StyleInfoData " >< b >< ul >< li >< ? = $comp [ 'Nom' ] ?> </b><br/>
< ? if ( trim ( $comp [ 'Siret' ]) <> '' ) { ?>
2009-03-11 07:51:18 +00:00
< b > RCS < a href = " ./?page=identite&idEntreprise=<?= $idEntreprise ?>&siret=<?= $comp['Siret'] ?> " >< ? = substr ( $comp [ 'Siret' ], 0 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 3 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 6 , 3 ) . ' <i>' . substr ( $comp [ 'Siret' ], 9 , 5 ); ?> </i></a></b><br/><?}?>
2009-02-17 13:14:53 +00:00
< ? = $comp [ 'Adr' ]; ?> <br/>
< ? if ( $comp [ 'AdrComp' ] <> '' ) echo $comp [ 'AdrComp' ] . '<br/>' ; ?>
< b >< ? = $comp [ 'CP' ] . ' ' . $comp [ 'Ville' ] ?> </b><br/>
< ? if ( $comp [ 'Tel' ] <> '' ) echo 'Tél : ' . wordwrap ( $comp [ 'Tel' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( $comp [ 'Fax' ] <> '' ) echo 'Fax : ' . wordwrap ( $comp [ 'Fax' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( trim ( $comp [ 'Web' ]) <> '' ) {
if ( substr ( $comp [ 'Web' ], 0 , 7 ) <> 'http://' )
$siteWeb = 'http://' . $comp [ 'Web' ];
else
$siteWeb = $comp [ 'Web' ];
echo 'Site internet : <a href="' . $siteWeb . '" target="_blank">' . $siteWeb . '</a><br/>' ;
} ?>
< ? if ( $comp [ 'Mail' ] <> '' ) echo 'Courriel : <a href="mailto:' . $comp [ 'Mail' ] . '">' . $comp [ 'Mail' ] . '</a><br/>' ; ?>
< ? if ( $comp [ 'Remarque' ] <> '' ) echo $comp [ 'Remarque' ] . '<br/>' ; ?>
</ li ></ ul ></ td ></ td >
</ tr >
< ? php
}
2009-08-17 14:35:12 +00:00
?>
</ table >
< ? php
} elseif ( $type == 'jal' ) {
?>
< h2 > Jounaux d ' Annonces L<EFBFBD> gales </ h2 >
< table >
2009-02-17 13:14:53 +00:00
< ? php foreach ( $competences as $comp ) { ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 3 " class = " StyleInfoData " >< b >< ul >< li >< ? = $comp [ 'Nom' ] ?> </b><br/>
< ? if ( trim ( $comp [ 'Siret' ]) <> '' ) { ?>
2009-03-11 07:51:18 +00:00
< b > RCS < a href = " ./?page=identite&idEntreprise=<?= $idEntreprise ?>&siret=<?= $comp['Siret'] ?> " >< ? = substr ( $comp [ 'Siret' ], 0 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 3 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 6 , 3 ) . ' <i>' . substr ( $comp [ 'Siret' ], 9 , 5 ); ?> </i></a></b><br/><?}?>
2009-02-17 13:14:53 +00:00
< ? = $comp [ 'Adr' ]; ?> <br/>
< ? if ( $comp [ 'AdrComp' ] <> '' ) echo $comp [ 'AdrComp' ] . '<br/>' ; ?>
< b >< ? = $comp [ 'CP' ] . ' ' . $comp [ 'Ville' ] ?> </b><br/>
< ? if ( $comp [ 'Tel' ] <> '' ) echo 'Tél : ' . wordwrap ( $comp [ 'Tel' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( $comp [ 'Fax' ] <> '' ) echo 'Fax : ' . wordwrap ( $comp [ 'Fax' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( trim ( $comp [ 'Web' ]) <> '' ) {
if ( substr ( $comp [ 'Web' ], 0 , 7 ) <> 'http://' )
$siteWeb = 'http://' . $comp [ 'Web' ];
else
$siteWeb = $comp [ 'Web' ];
echo 'Site internet : <a href="' . $siteWeb . '" target="_blank">' . $siteWeb . '</a><br/>' ;
} ?>
< ? if ( $comp [ 'Mail' ] <> '' ) echo 'Courriel : <a href="mailto:' . $comp [ 'Mail' ] . '">' . $comp [ 'Mail' ] . '</a><br/>' ; ?>
< ? if ( $comp [ 'Remarque' ] <> '' ) echo $comp [ 'Remarque' ] . '<br/>' ; ?>
</ li ></ ul ></ td ></ td >
</ tr >
< ? php
}
2009-08-17 14:35:12 +00:00
?>
</ table >
< ? php
} elseif ( $type == 'adm' ) {
2009-02-17 13:14:53 +00:00
?>
2009-08-17 14:35:12 +00:00
< h2 > Administrateur ( s ) / Mandataire ( s ) judiciaires </ h2 >
< table >
2009-02-17 13:14:53 +00:00
< ? php foreach ( $competences as $comp ) { ?>
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 3 " class = " StyleInfoData " >< b >< ul >< li >< ? = $comp [ 'Nom' ] ?> </b><br/>
< ? php
if ( $comp [ 'Type' ] == 'A' ) echo '<i>Administrateur judiciaire</i><br/>' ;
elseif ( $comp [ 'Type' ] == 'M' ) echo '<i>Mandataire judiciaire</i><br/>' ;
if ( trim ( $comp [ 'Siret' ]) <> '' ) { ?>
2009-03-11 07:51:18 +00:00
< b > RCS < a href = " ./?page=identite&idEntreprise=<?= $idEntreprise ?>&siret=<?= $comp['Siret'] ?> " >< ? = substr ( $comp [ 'Siret' ], 0 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 3 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 6 , 3 ) . ' <i>' . substr ( $comp [ 'Siret' ], 9 , 5 ); ?> </i></a></b><?if (trim($comp['IdSup'])*1>0) { ?>(SCP : <a href="./?page=identite&idEntreprise=<?=$idEntreprise?>&siret=<?=$comp['IdSup']?>"><?=substr($comp['IdSup'],0,3).' '.substr($comp['IdSup'],3,3).' '.substr($comp['IdSup'],6,3);?></a>)<?}?><br/><?}?>
2009-02-17 13:14:53 +00:00
< ? = $comp [ 'Adr' ]; ?> <br/>
< ? if ( $comp [ 'AdrComp' ] <> '' ) echo $comp [ 'AdrComp' ] . '<br/>' ; ?>
< b >< ? = $comp [ 'CP' ] . ' ' . $comp [ 'Ville' ] ?> </b><br/>
< ? if ( $comp [ 'Tel' ] <> '' ) echo 'Tél : ' . wordwrap ( $comp [ 'Tel' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( $comp [ 'Fax' ] <> '' ) echo 'Fax : ' . wordwrap ( $comp [ 'Fax' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( trim ( $comp [ 'Web' ]) <> '' ) {
if ( substr ( $comp [ 'Web' ], 0 , 7 ) <> 'http://' )
$siteWeb = 'http://' . $comp [ 'Web' ];
else
$siteWeb = $comp [ 'Web' ];
echo 'Site internet : <a href="' . $siteWeb . '" target="_blank">' . $siteWeb . '</a><br/>' ;
} ?>
< ? if ( $comp [ 'Mail' ] <> '' ) echo 'Courriel : <a href="mailto:' . $comp [ 'Mail' ] . '">' . $comp [ 'Mail' ] . '</a><br/>' ; ?>
< ? if ( $comp [ 'Remarque' ] <> '' ) echo 'Remarque : ' . $comp [ 'Remarque' ] . '<br/>' ; ?>
</ li ></ ul ></ td >
</ tr >
< ? php
}
2009-08-17 14:35:12 +00:00
?>
</ table >
< ? php
} elseif ( $type == 'hui' ) {
2009-02-17 13:14:53 +00:00
?>
2009-08-17 14:35:12 +00:00
< h2 > Huissiers </ h2 >
< table >
< ? php foreach ( $competences as $comp ) { ?>
2009-02-17 13:14:53 +00:00
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 550 " colspan = " 3 " class = " StyleInfoData " >< b >< ul >< li >< ? = $comp [ 'Nom' ] ?> </b><br/>
< i > Huissier de justice </ i >< br />
< ?
if ( trim ( $comp [ 'Siret' ]) <> '' && trim ( $comp [ 'Siret' ]) * 1 <> 0 ) { ?>
2009-03-11 07:51:18 +00:00
< b > RCS < a href = " ./?page=identite&idEntreprise=<?= $idEntreprise ?>&siret=<?= $comp['Siret'] ?> " >< ? = substr ( $comp [ 'Siret' ], 0 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 3 , 3 ) . ' ' . substr ( $comp [ 'Siret' ], 6 , 3 ) . ' <i>' . substr ( $comp [ 'Siret' ], 9 , 5 ); ?> </i></a></b><?if (trim($comp['IdSup'])*1>0) { ?>(SCP : <a href="./?page=identite&idEntreprise=<?=$idEntreprise?>&siret=<?=$comp['IdSup']?>"><?=substr($comp['IdSup'],0,3).' '.substr($comp['IdSup'],3,3).' '.substr($comp['IdSup'],6,3);?></a>)<?}?><br/><?}?>
2009-02-17 13:14:53 +00:00
< ? = $comp [ 'Adr' ]; ?> <br/>
< ? if ( $comp [ 'AdrComp' ] <> '' ) echo $comp [ 'AdrComp' ] . '<br/>' ; ?>
< b >< ? = $comp [ 'CP' ] . ' ' . $comp [ 'Ville' ] ?> </b><br/>
< ? if ( $comp [ 'Tel' ] <> '' ) echo 'Tél : ' . wordwrap ( $comp [ 'Tel' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( $comp [ 'Fax' ] <> '' ) echo 'Fax : ' . wordwrap ( $comp [ 'Fax' ], 2 , " . " , true ) . '<br/>' ; ?>
< ? if ( trim ( $comp [ 'Web' ]) <> '' ) {
if ( substr ( $comp [ 'Web' ], 0 , 7 ) <> 'http://' )
$siteWeb = 'http://' . $comp [ 'Web' ];
else
$siteWeb = $comp [ 'Web' ];
echo 'Site internet : <a href="' . $siteWeb . '" target="_blank">' . $siteWeb . '</a><br/>' ;
} ?>
< ? if ( $comp [ 'Mail' ] <> '' ) echo 'Courriel : <a href="mailto:' . $comp [ 'Mail' ] . '">' . $comp [ 'Mail' ] . '</a><br/>' ; ?>
< ? if ( $comp [ 'Remarque' ] <> '' ) echo 'Remarque : ' . $comp [ 'Remarque' ] . '<br/>' ; ?>
</ li ></ ul ></ td >
</ tr >
< ? php
2009-08-17 14:35:12 +00:00
}
?>
</ table >
< ? php
2009-02-17 13:14:53 +00:00
} elseif ( $type == 'cad' ) {
?>
2009-08-17 14:35:12 +00:00
< h2 > Cadastre et Hypoth<EFBFBD> ques </ h2 >
2009-02-17 13:14:53 +00:00
< ? php
} elseif ( $type == 'pre' ) {
2009-08-17 14:35:12 +00:00
?>
< h2 > Pr<EFBFBD> fectures et Sous - Pr<EFBFBD> fectures </ h2 >
2009-02-17 13:14:53 +00:00
< ? php
} elseif ( $type == 'avo' ) {
?>
2009-08-17 14:35:12 +00:00
< h2 > Avocat ( s ) </ h2 >
2009-02-17 13:14:53 +00:00
< ? php
}
2009-08-17 14:35:12 +00:00
?>
< br >
</ div >
2009-02-17 13:14:53 +00:00
< ? php
2009-07-20 16:17:33 +00:00
/** @ todo
*
2009-02-17 13:14:53 +00:00
* Cadastre
* Hypoth<EFBFBD> ques
* Avocats http :// www . cnb . avocat . fr / annuaire / resultats . php
2009-07-20 16:17:33 +00:00
*
2009-02-17 13:14:53 +00:00
* A voir 1 :
* Experts Comptables http :// www . bretagne . experts - comptables . fr / annuaire / resultats . php
* Commisaires aux comptes
2009-07-20 16:17:33 +00:00
*
* A voir 2 :
2009-02-17 13:14:53 +00:00
* Notaires http :// www . notaires . fr / notaires / annuaire . nsf / F_RN_RECH_PUB ? OpenForm & comLangue = FR
* Forme : Profession liberale ( 1500 ) SCP de notaires ( 6565 )
* Activit<EFBFBD> : Organisations professionnelles ( 911 C )
* Activites des organisations professionnelles ( 9412 Z ) Activites juridiques ( 6910 Z )
2009-07-20 16:17:33 +00:00
* *
2009-02-17 13:14:53 +00:00
* Faire des scripts g<EFBFBD> n<EFBFBD> riques qui <EFBFBD> partir de l ' INSEE et de la cr<EFBFBD> ation , maj ou suppression de de SIREN / SIRET dans certaines CJ ou NAF
**/
}
2009-08-17 14:35:12 +00:00
?>