2009-07-22 07:12:37 +00:00
< ? php
2009-08-27 09:01:45 +00:00
if ( ! is_array ( $formR ) || count ( $formR ) == 0 ) $formR = $_POST [ 'formR' ];
2010-03-02 15:50:11 +00:00
if ( $formR [ 'type' ] == 'ent' || $formR [ 'type' ] == 'dir' )
2010-02-18 13:26:01 +00:00
$typeRech = $formR [ 'type' ];
2010-03-02 16:23:02 +00:00
if ( isset ( $formR [ 'siret' ]) == true ) {
$siret = trim ( strtr ( $formR [ 'siret' ],
array ( ' ' => '' , '.' => '' , '-' => '' , '/' => '' )));
}
2009-08-12 10:16:34 +00:00
$pays = strtoupper ( substr ( $siret , 0 , 2 ));
$typeId = '' ;
2010-02-18 13:26:01 +00:00
require_once 'i18n/cleanchar.php' ;
2010-02-10 17:27:03 +00:00
//Enregistrement en session des dix dernières recherches
2009-08-27 09:01:45 +00:00
require_once 'recherche/session.php' ;
recherche_save ( $formR );
2009-09-15 09:18:59 +00:00
recherche_saveinfo ( array ( 'page' => $page ) );
2009-08-27 09:01:45 +00:00
2009-07-22 07:12:37 +00:00
?>
2009-12-04 17:17:09 +00:00
< div id = " center " >
< table border = " 0 " >
2009-07-22 13:05:51 +00:00
< tr >
< td width = " 10 " >& nbsp ; </ td >
< td valign = " top " width = " 570 " >< br />
< ? php
2010-02-10 17:27:03 +00:00
//Traitement des éléments de recherche
2009-09-10 15:31:37 +00:00
if ( $siret != '' )
2009-08-12 10:16:34 +00:00
{
2009-09-10 15:31:37 +00:00
$len = strlen ( $siret );
2010-02-10 17:27:03 +00:00
//Numéro WALDEC
2009-07-22 13:05:51 +00:00
if ( strtoupper ( substr ( $siret , 0 , 1 )) == 'W' ) {
$typeId = 'W' ;
$autreId = $siret ;
$siret = '' ;
}
2009-09-10 15:31:37 +00:00
//Code ISIN
elseif ( $len == 12 )
{
// C'est probablement un code ISIN
$typeId = 'I' ;
$autreId = $siret ;
$siret = '' ;
$firephp -> info ( 'Code ISIN' );
}
2009-08-12 10:16:34 +00:00
//TVA Intracommunautaire
2009-09-10 15:31:37 +00:00
elseif ( $pays == 'AT' || $pays == 'BE' || $pays == 'BG' || $pays == 'CY' || $pays == 'CZ' || $pays == 'DE' || $pays == 'DK' ||
2009-07-22 13:05:51 +00:00
$pays == 'EE' || $pays == 'EL' || $pays == 'ES' || $pays == 'FI' || $pays == 'GB' || $pays == 'HU' || $pays == 'IE' ||
$pays == 'IT' || $pays == 'LT' || $pays == 'LU' || $pays == 'LV' || $pays == 'MT' || $pays == 'NL' || $pays == 'PL' ||
$pays == 'PT' || $pays == 'RO' || $pays == 'SE' || $pays == 'SI' || $pays == 'SK' )
2009-09-10 15:31:37 +00:00
{
2010-02-10 17:27:03 +00:00
echo " La recherche par numéro de TVA n'est pas encore possible sur ce pays ! " ;
2009-09-10 15:31:37 +00:00
$tvaIntra = true ;
}
2009-08-12 10:16:34 +00:00
//Pour la france
2009-09-10 15:31:37 +00:00
elseif ( $pays == 'FR' )
{
if ( $len == 13 ) $siret = substr ( $siret , 4 , 9 );
2009-07-22 13:05:51 +00:00
}
2010-02-10 17:27:03 +00:00
//Numéro RC
2009-07-22 13:05:51 +00:00
elseif ( preg_match ( '/A|B|C|D/i' , $siret )) {
$typeId = 'R' ;
$autreId = $siret ;
$siret = '' ;
}
2009-08-12 10:16:34 +00:00
//Siren normal on enleve tout ce qui n'est pas un chiffre
2009-07-22 13:05:51 +00:00
else
2009-09-10 15:31:37 +00:00
{
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $siret ));
2009-07-22 13:05:51 +00:00
}
2009-09-10 15:31:37 +00:00
}
2009-07-22 07:12:37 +00:00
2010-03-02 16:23:02 +00:00
if ( $typeRech == 'ent' ) {
// Type de recherche = entreprises
$telFax = trim ( preg_replace ( '/[^0-9]/' , '' , $formR [ 'telFax' ]));
$naf = trim ( preg_replace ( '/[^0-9A-Z]/i' , '' , $formR [ 'naf' ]));
//if ($telFax<>'') $typeId='T';
2009-07-22 07:12:37 +00:00
2010-03-02 16:23:02 +00:00
// Traitement des données formulaire
$raisonSociale =
preg_replace ( '/[^0-9A-Z]/' , ' ' ,
strtoupper ( cleanstring ( $formR [ 'raisonSociale' ])));
$numVoie = preg_replace ( '/[^0-9]/' , '' , $formR [ 'numVoie' ]);
if ( $numVoie > 9999 ) {
die ( 'Numéro de voie incorrecte !' );
}
$libVoie = preg_replace ( '/[^0-9A-Z]/' , ' ' ,
strtoupper ( cleanstring ( $formR [ 'voie' ])));
$cpVille =
preg_replace ( '/ +/' , ' ' ,
preg_replace ( '/[^0-9A-Z]/' , ' ' ,
strtoupper ( cleanstring ( $formR [ 'cpVille' ]))));
2009-07-22 07:12:37 +00:00
2010-03-02 16:23:02 +00:00
if ( preg_match ( " /^([0-9] { 2,5})([ \ D]*)/i " , $cpVille , $matches )) {
$cp = trim ( $matches [ 1 ]);
$ville = trim ( $matches [ 2 ]);
} else {
$cp = '' ;
$ville = trim ( $cpVille );
}
} else if ( $typeRech == 'dir' ) {
// Type de recherche = dirigeants
2010-03-02 15:50:11 +00:00
$dirNom = preg_replace ( '/[^0-9A-Z]/' , ' ' ,
2010-02-18 13:26:01 +00:00
strtoupper ( trimAccent ( $formR [ 'dirNom' ]))
);
2010-03-02 15:50:11 +00:00
$dirPrenom = preg_replace ( '/[^0-9A-Z]/' , ' ' ,
2010-02-18 13:26:01 +00:00
strtoupper ( trimAccent ( $formR [ 'dirPrenom' ]))
);
2010-03-02 15:50:11 +00:00
$dirDateNaissJJ = preg_replace ( '/[^0-9]/' , '' ,
2010-02-18 13:26:01 +00:00
$formR [ 'dirDateNaissJJ' ]) * 1 ;
if ( $dirDateNaissJJ < 0 || $dirDateNaissJJ > 31 )
die ( 'Jour de naissance incorrect !' );
2010-03-02 15:50:11 +00:00
$dirDateNaissMM = preg_replace ( '/[^0-9]/' , '' ,
2010-02-18 13:26:01 +00:00
$formR [ 'dirDateNaissMM' ]) * 1 ;
if ( $dirDateNaissMM < 0 || $dirDateNaissMM > 12 )
die ( 'Mois de naissance incorrect !' );
2010-03-02 15:50:11 +00:00
$dirDateNaissAAAA = preg_replace ( '/[^0-9]/' , '' ,
2010-02-18 13:26:01 +00:00
$formR [ 'dirDateNaissAAAA' ]) * 1 ;
$year = date ( 'Y' ) - 18 ;
2010-03-02 15:50:11 +00:00
if ( $dirDateNaissAAAA < 0 || $dirDateNaissAAAA > $year )
2010-02-18 13:26:01 +00:00
die ( 'Année de naissance incorrecte !' );
2010-03-02 15:50:11 +00:00
2009-07-22 13:05:51 +00:00
$dirDateNaiss = $dirDateNaissJJ . '/' . $dirDateNaissMM . '/' . $dirDateNaissAAAA ;
2009-07-22 07:12:37 +00:00
2010-03-02 15:50:11 +00:00
$dirCpVille = preg_replace ( '/ +/' , ' ' , preg_replace ( '/[^0-9A-Z]/' , ' ' ,
2010-02-18 13:26:01 +00:00
strtoupper ( $formR [ 'dirCpVille' ]))
);
2010-03-02 15:50:11 +00:00
if ( preg_match ( " /^([0-9] { 2,5})([ \ D]*)/i " , $dirCpVille , $matches ))
2010-02-18 13:26:01 +00:00
{
$dirCp = trim ( $matches [ 1 ]);
$dirVille = trim ( $matches [ 2 ]);
2009-07-22 13:05:51 +00:00
}
2010-02-18 13:26:01 +00:00
else $dirVille = trim ( $dirCpVille );
2009-07-22 13:05:51 +00:00
}
2009-07-22 07:12:37 +00:00
2010-03-02 15:50:11 +00:00
if ( isset ( $formR [ 'index' ])) {
$position = $formR [ 'index' ];
} else {
$position = 0 ;
}
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
//Type de recherche = entreprise
if ( $typeRech == 'ent' && $siret <> '' ) {
echo " <!--_typeRech=ent, siren= $siret --> \n " ;
try {
$O = $client -> searchSiren ( $siret , $position , $tabInfo [ 'nbReponses' ], 200 , $cp );
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
}
} elseif ( $typeRech == 'ent' && $telFax <> '' ) {
echo " <!--_typeRech=ent, telFax= $telFax --> \n " ;
try {
$O = $client -> searchTelFax ( $telFax , $position , $tabInfo [ 'nbReponses' ], 200 );
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
}
} elseif ( $typeRech == 'ent' && ( $typeId == 'R' || $typeId == 'W' || $typeId == 'I' ) ) {
$firephp -> log ( 'searchAutreId(' . $typeId . ', ' . $autreId . ', ' . $position . ', ' . $tabInfo [ 'nbReponses' ] . ', 200, ' . $cp . ')' , 'Requete' );
echo " <!--_typeRech=ent, Autre Id $typeId = $autreId --> \n " ;
try {
$O = $client -> searchAutreId ( $typeId , $autreId , $position , $tabInfo [ 'nbReponses' ], 200 , $cp );
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
}
} elseif ( $typeRech == 'ent' && $siret == '' ) {
2010-03-02 15:50:11 +00:00
echo " <!--_typeRech=ent, $raisonSociale , " .
" $numVoie $libVoie , $cp , $ville --> \n " ;
try {
$O = $client -> searchNomAdr ( $raisonSociale , $numVoie . ' ' . $libVoie ,
$cp , $ville , false , false , $position ,
$tabInfo [ 'nbReponses' ], 200 , false , false ,
$naf );
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
}
2009-07-22 13:05:51 +00:00
} elseif ( $typeRech == 'dir' ) {
2010-03-02 16:23:02 +00:00
echo " <!--_typeRech=dir, $dirNom , $dirPrenom , --> \n " ;
2009-07-22 13:05:51 +00:00
try {
$O = $client -> searchDir ( $dirNom , $dirPrenom , $dirDateNaiss , $dirVille , $position , $tabInfo [ 'nbReponses' ], 200 , false );
} catch ( SoapFault $fault ) {
require_once 'soaperror.php' ;
processSoapFault ( $client , $fault , $tabInfo );
}
}
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
/* URL du formulaire de recherche */
2010-03-02 15:50:11 +00:00
print '<form name="form_recherche_ini" action="./?page=recherche&vue=' .
$formR [ 'type' ] . '" method="post">' ;
foreach ( array ( 'siret' ,
'raisonSociale' ,
'numVoie' ,
'voie' ,
'cpVille' ,
'telFax' ,
'naf' ,
'dirNom' ,
'dirPrenom' ,
'dirDateNaissJJ' ,
'dirDateNaissMM' ,
'dirDateNaissAAAA' ,
'dirCpVille' ) as $label ) {
if ( isset ( $formR [ $label ])) {
print '<input type="hidden" name="formR[' . $label . ']" value="' .
$formR [ $label ] . '"/>' ;
}
}
print '</form>' ;
2009-07-22 07:12:37 +00:00
2009-12-04 17:17:09 +00:00
$strCriteres = '<a href="Javascript:document.form_recherche_ini.submit()">' . trim ( @ implode ( ' ' , $O [ 'results' ][ 'criteres' ])) . '</a>' ;
2009-07-22 07:12:37 +00:00
2009-09-10 15:31:37 +00:00
if ( $O [ 'results' ][ 'nbReponses' ] == 0 )
{
if ( ! isset ( $tvaIntra ) )
2009-07-22 13:05:51 +00:00
echo '<p class="StyleInfoLib">Pas de résultat affiché avec le(s) critère(s) " ' . $strCriteres . '" (' . $O [ 'results' ][ 'nbReponsesTotal' ] . ' sans les filtres).</p>' ;
2009-09-10 15:31:37 +00:00
}
else
{
2009-07-22 13:05:51 +00:00
$etabs = $O [ 'results' ][ 'reponses' ];
$firephp -> log ( $etabs , 'etabs' );
2009-07-22 07:12:37 +00:00
2010-02-10 17:27:03 +00:00
//Enregistrement de la première raison sociale trouvé si la recherche n'a été faite que sur un siren
2009-09-10 15:31:37 +00:00
if ( $typeRech == 'ent' && $siret != '' && $raisonSociale == '' )
{
2010-02-10 17:27:03 +00:00
$firephp -> info ( 'Informations suplémentaires' );
2009-09-10 15:31:37 +00:00
recherche_saveinfo ( array ( 'raisonSociale' => $etabs [ 0 ][ 'Nom' ]) );
}
2009-12-23 14:04:32 +00:00
?>
< p class = " StyleInfoLib " >
< ? php
2010-03-02 15:50:11 +00:00
if ( $O [ 'results' ][ 'nbReponses' ] < $O [ 'results' ][ 'nbReponsesTotal' ])
2009-12-23 14:04:32 +00:00
{
2009-07-22 13:05:51 +00:00
$totPage = ceil ( $O [ 'results' ][ 'nbReponsesTotal' ] / $tabInfo [ 'nbReponses' ]);
$curPage = ceil ( $position / $tabInfo [ 'nbReponses' ]) + 1 ;
echo $O [ 'results' ][ 'nbReponsesTotal' ] . ' réponses avec les critères "' . $strCriteres . '". ' . $O [ 'results' ][ 'nbReponses' ] . ' résultats affichés. Page ' . $curPage . '/' . $totPage . '.' ;
} else {
$totPage = $curPage = 1 ;
echo $O [ 'results' ][ 'nbReponsesTotal' ] . ' réponses avec les critères "' . $strCriteres . '".' ;
}
2009-12-23 14:04:32 +00:00
?>
</ p >
< ol >
2010-03-02 15:50:11 +00:00
< ? php
2009-07-22 13:05:51 +00:00
foreach ( $etabs as $i => $etab )
{
if ( $etab [ 'Siege' ] == 1 ) $strEtab = 'Établissement siège ' ;
else $strEtab = 'Établissement secondaire ' ;
if ( $etab [ 'Actif' ] == 1 ) $strEtab .= 'actif' ;
else $strEtab .= 'inactif' ;
2010-03-02 15:50:11 +00:00
2009-12-23 14:40:36 +00:00
if ( $etab [ 'Nic' ] * 1 == 0 || $etab [ 'Nic' ] * 1 >= 99990 ) $strEtab .= ' provisoire' ;
2010-03-02 15:50:11 +00:00
2010-02-10 17:27:03 +00:00
//Lien vers fiche identité
2009-12-23 14:04:32 +00:00
if ( $etab [ 'Siege' ] != 1 || ( $etab [ 'Siege' ] == 1 && $etab [ 'Actif' ] != 1 ))
2010-02-10 17:27:03 +00:00
$lien = '<a title="Voir la fiche d\'identité du siège de cette entreprise" href="/?page=identite&siret=' . $etab [ 'Siren' ] . '">(Accès siège)</a>' ;
2009-07-22 13:05:51 +00:00
else $lien = '' ;
?>
2009-12-23 14:04:32 +00:00
< li class = " StyleInfoData " type = " 1 " value = " <?=((( $curPage -1)* $tabInfo['nbReponses'] )+ $i +1);?> " >
2009-07-22 13:05:51 +00:00
< ? php $href = '/?page=identite&siret=' . $etab [ 'Siret' ] . '&idEntreprise=' . $etab [ 'id' ]; ?>
< b >< a title = " Voir la fiche d'identité de cet établissement " href = " <?= $href ?> " >< ? = $etab [ 'Nom' ] ?> </a></b><br/>
< ?
if ( $etab [ 'Nom2' ] <> '' || $etab [ 'Enseigne' ] <> '' || $etab [ 'Sigle' ] <> '' ) {
echo '<i>' ;
if ( $etab [ 'Nom2' ] <> '' ) echo $etab [ 'Nom2' ] . '<br/>' ;
if ( $etab [ 'Enseigne' ] <> '' ) echo 'Enseigne : ' . $etab [ 'Enseigne' ] . ' ' ;
if ( $etab [ 'Sigle' ] <> '' ) echo 'Sigle : ' . $etab [ 'Sigle' ];
echo '</i><br/>' ;
}
?>
< b > RCS < ? = substr ( $etab [ 'Siren' ], 0 , 3 ) . ' ' . substr ( $etab [ 'Siren' ], 3 , 3 ) . ' ' . substr ( $etab [ 'Siren' ], 6 , 3 ) . ' ' . $etab [ 'Nic' ]; ?> <br/>
2009-07-22 07:12:37 +00:00
< ? = $strEtab ; ?> </b> <?=$lien;?><br/>
< ? = $etab [ 'Adresse' ]; ?> <br/>
2009-07-22 13:05:51 +00:00
< ? php
2010-03-03 09:25:08 +00:00
if ( isset ( $etab [ 'Adresse2' ]) && $etab [ 'Adresse2' ] != '' ) {
echo $etab [ 'Adresse2' ] . '<br/>' ;
}
2009-07-22 13:05:51 +00:00
?>
2009-07-22 07:12:37 +00:00
< b >< ? = $etab [ 'CP' ] . ' ' . $etab [ 'Ville' ] ?> </b><br/>
2009-12-23 14:04:32 +00:00
< ? php
2010-02-10 17:27:03 +00:00
/** Si présent, on affiche la forme Juridique **/
2010-03-02 15:50:11 +00:00
if ( trim ( $etab [ 'FJ' ]) != '' )
{
2009-12-23 14:04:32 +00:00
?>
2009-07-22 13:05:51 +00:00
< i > Forme : < ? = strWsToHtml ( $etab [ 'FJLib' ]) . ' (' . $etab [ 'FJ' ]; ?> )</i><br/>
2010-03-02 15:50:11 +00:00
< ?
2009-12-23 14:04:32 +00:00
}
2010-02-10 17:27:03 +00:00
/** Si présent, on affiche l'activité NAF **/
2010-03-02 15:50:11 +00:00
if ( trim ( $etab [ 'NafEnt' ]) != '' )
{
2009-12-23 14:04:32 +00:00
?>
2009-07-22 13:05:51 +00:00
< i > Activit & eacute ; : < ? = strWsToHtml ( $etab [ 'NafEntLib' ]) . ' (' . $etab [ 'NafEnt' ]; ?> )</i><br/>
2010-03-02 15:50:11 +00:00
< ?
2009-12-23 14:04:32 +00:00
}
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
if ( $typeRech == 'dir' )
{
echo '<u>Dirigeant recherché :</u> ' ;
if ( $etab [ 'DirRs' ] <> '' ) {
echo '<b>' . strWsToHtml ( $etab [ 'DirRs' ]) . '</b>, représenté par ' ;
2009-07-22 07:12:37 +00:00
}
2009-07-22 13:05:51 +00:00
echo strWsToHtml ( $etab [ 'DirNom' ]) . ' ' . strWsToHtml ( $etab [ 'DirPrenom' ]);
if ( $etab [ 'DirNomUsage' ] <> '' && $etab [ 'DirNomUsage' ] <> $etab [ 'DirNom' ])
echo ' (' . strWsToHtml ( $etab [ 'DirNomUsage' ]) . ')' ;
echo '<i>, ' . strWsToHtml ( $etab [ 'DirFonction' ]) . '</i><br/>' ;
}
2010-02-10 17:27:03 +00:00
//Affichage spécial
2010-03-02 15:50:11 +00:00
2010-01-22 08:58:39 +00:00
if ( $_SESSION [ 'tabInfo' ][ 'idClient' ] == 34 )
2009-07-22 13:05:51 +00:00
{
?>
2010-01-29 11:07:53 +00:00
Liens : < i >< a title = " Consultez les comptes annuels " href = " ./?page=greffes&vue=bilans&siret=<?= $etab['Siret'] ?> " > Comptes annuels </ a ></ i > -
< i >< a title = " Consultez les actes et status " href = " ./?page=greffes&vue=actes&siret=<?= $etab['Siret'] ?> " > Actes et status </ a ></ i >
2010-01-22 08:58:39 +00:00
< br />
< ? php
}
?>
2010-03-02 15:50:11 +00:00
< ? php
2010-01-29 11:07:53 +00:00
require_once 'user/user.php' ;
$listProfile = defineProfil ();
$idClient = $_SESSION [ 'tabInfo' ][ 'idClient' ];
if ( array_key_exists ( $idClient , $listProfile ))
2010-01-22 08:58:39 +00:00
{
2010-01-29 11:07:53 +00:00
$liensProfile = $listProfile [ $idClient ];
if ( is_array ( $liensProfile ) && count ( $liensProfile ) > 0 )
{
$i = 0 ;
foreach ( $liensProfile as $vue => $lien )
2010-03-02 15:50:11 +00:00
{
2010-02-01 11:01:28 +00:00
if ( hasProfil ( $vue ))
2010-03-02 15:50:11 +00:00
{
if ( $i == 0 ) { echo 'Liens' ; }
2010-01-29 11:07:53 +00:00
?>
< i >
2010-01-29 11:28:51 +00:00
< a title = " <?= $lien['titre'] ?> " href = " ./?page=<?= $vue ?>&siret=<?= $etab['Siret'] ?>&idEntreprise=<?= $etab['idEntreprise'] ?>&profil=1 " >
2010-01-29 11:07:53 +00:00
< ? = $lien [ 'titre' ] ?>
</ a >
</ i >
2010-02-01 11:01:28 +00:00
< ? php
2010-03-02 15:50:11 +00:00
}
if ( count ( $liensProfile ) < $i ) { echo '-' ; }
2010-01-29 11:07:53 +00:00
$i ++ ;
2010-02-01 11:01:28 +00:00
if ( count ( $liensProfile ) == $i ) { echo '<br/>' ; }
2010-01-29 11:07:53 +00:00
}
}
2010-03-02 15:50:11 +00:00
}
2010-01-22 08:58:39 +00:00
?>
2009-12-23 14:04:32 +00:00
< br />
</ li >
2009-07-22 07:12:37 +00:00
< ?
2009-12-23 14:04:32 +00:00
} //fin parcours etabs
?>
< table >
< tr >
2010-03-02 15:50:11 +00:00
< ? php
2009-07-22 13:05:51 +00:00
if ( $curPage > 1 )
{
$prev_index = $position - $O [ 'results' ][ 'nbReponses' ];
if ( $prev_index < $O [ 'results' ][ 'nbReponses' ]) $prev_index = 0 ;
?>
2009-12-23 14:04:32 +00:00
< td width = " 40% " align = " right " >
2010-02-18 13:26:01 +00:00
< form name = " form_recherche_prev " action = " ./?page=recherche&action=rechercher&vue=list " method = " post " >
2009-07-22 13:05:51 +00:00
< input type = " hidden " name = " formR[type] " value = " <?= $formR['type'] ?> " />
< input type = " hidden " name = " formR[index] " value = " <?= $prev_index ?> " />
< input type = " hidden " name = " formR[siret] " value = " <?= $formR['siret'] ?> " />
< input type = " hidden " name = " formR[raisonSociale] " value = " <?= $formR['raisonSociale'] ?> " />
< input type = " hidden " name = " formR[numVoie] " value = " <?= $formR['numVoie'] ?> " />
< input type = " hidden " name = " formR[voie] " value = " <?= $formR['voie'] ?> " />
< input type = " hidden " name = " formR[cpVille] " value = " <?= $formR['cpVille'] ?> " />
< input type = " hidden " name = " formR[telFax] " value = " <?= $formR['telFax'] ?> " />
< input type = " hidden " name = " formR[naf] " value = " <?= $formR['naf'] ?> " />
< input type = " hidden " name = " formR[dirNom] " value = " <?= $formR['dirNom'] ?> " />
< input type = " hidden " name = " formR[dirPrenom] " value = " <?= $formR['dirPrenom'] ?> " />
< input type = " hidden " name = " formR[dirDateNaissJJ] " value = " <?= $formR['dirDateNaissJJ'] ?> " />
< input type = " hidden " name = " formR[dirDateNaissMM] " value = " <?= $formR['dirDateNaissMM'] ?> " />
< input type = " hidden " name = " formR[dirDateNaissAAAA] " value = " <?= $formR['dirDateNaissAAAA'] ?> " />
< input type = " hidden " name = " formR[dirCpVille] " value = " <?= $formR['dirCpVille'] ?> " />
2009-12-23 14:04:32 +00:00
< input type = " image " src = " ./img/boutton_precedent_off.gif " name = " submit " onmouseover = " this.src='./img/boutton_precedent_on.gif' " onmouseout = " this.src='./img/boutton_precedent_off.gif' " title = " Page suivante... " >
</ form >
</ td >
2009-07-22 13:05:51 +00:00
< ?
2009-12-23 14:04:32 +00:00
}
2010-03-02 15:50:11 +00:00
else
2009-12-23 14:04:32 +00:00
{
?>
< td width = " 40% " >& nbsp ; </ td >
2010-03-02 15:50:11 +00:00
< ? php
2009-12-23 14:04:32 +00:00
}
2010-03-02 15:50:11 +00:00
if ( $curPage != $totPage )
{
2009-12-23 14:04:32 +00:00
?>
< td width = " 20% " > Page < ? = $curPage ?> /<?=$totPage?></td>
2010-03-02 15:50:11 +00:00
< ? php
2009-12-23 14:04:32 +00:00
}
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
if ( $curPage < $totPage )
{
?>
2010-02-18 13:26:01 +00:00
< td width = " 40% " align = " left " >
< form name = " form_recherche_next " action = " ./?page=recherche&action=rechercher&vue=list " method = " post " >
2009-07-22 13:05:51 +00:00
< input type = " hidden " name = " formR[type] " value = " <?= $formR['type'] ?> " />
< input type = " hidden " name = " formR[index] " value = " <?= $position + $O['results'] ['nbReponses']?> " />
< input type = " hidden " name = " formR[siret] " value = " <?= $formR['siret'] ?> " />
< input type = " hidden " name = " formR[raisonSociale] " value = " <?= $formR['raisonSociale'] ?> " />
< input type = " hidden " name = " formR[numVoie] " value = " <?= $formR['numVoie'] ?> " />
< input type = " hidden " name = " formR[voie] " value = " <?= $formR['voie'] ?> " />
< input type = " hidden " name = " formR[cpVille] " value = " <?= $formR['cpVille'] ?> " />
< input type = " hidden " name = " formR[telFax] " value = " <?= $formR['telFax'] ?> " />
< input type = " hidden " name = " formR[naf] " value = " <?= $formR['naf'] ?> " />
< input type = " hidden " name = " formR[dirNom] " value = " <?= $formR['dirNom'] ?> " />
< input type = " hidden " name = " formR[dirPrenom] " value = " <?= $formR['dirPrenom'] ?> " />
< input type = " hidden " name = " formR[dirDateNaissJJ] " value = " <?= $formR['dirDateNaissJJ'] ?> " />
< input type = " hidden " name = " formR[dirDateNaissMM] " value = " <?= $formR['dirDateNaissMM'] ?> " />
< input type = " hidden " name = " formR[dirDateNaissAAAA] " value = " <?= $formR['dirDateNaissAAAA'] ?> " />
< input type = " hidden " name = " formR[dirCpVille] " value = " <?= $formR['dirCpVille'] ?> " />
< input type = " image " src = " ./img/boutton_suivant_off.gif " name = " submit " onmouseover = " this.src='./img/boutton_suivant_on.gif' " onmouseout = " this.src='./img/boutton_suivant_off.gif' " title = " Page suivante... " ></ form ></ td >
< ?
2010-03-02 15:50:11 +00:00
}
else
{
?>
2009-12-23 14:04:32 +00:00
< td width = " 40% " >& nbsp ; </ td >
2010-03-02 15:50:11 +00:00
< ? php
2009-07-22 13:05:51 +00:00
}
?>
2009-12-23 14:04:32 +00:00
</ table >
</ ol >
2010-03-02 15:50:11 +00:00
< ? php
2009-12-23 14:04:32 +00:00
2010-02-10 17:27:03 +00:00
} //Fin test nombre de résultat
2009-12-23 14:04:32 +00:00
?>
< br />
< ? php
if ( $typeRech == 'dir' )
{
$search = '' ;
if ( isset ( $_REQUEST [ 'formR' ][ 'dirNom' ])){ $search .= $_REQUEST [ 'formR' ][ 'dirNom' ]; }
if ( isset ( $_REQUEST [ 'formR' ][ 'dirPrenom' ]) && count ( $search ) > 0 ){ $search .= ' ' . $_REQUEST [ 'formR' ][ 'dirPrenom' ]; }
if ( isset ( $_REQUEST [ 'formR' ][ 'dirPrenom' ]) && count ( $search ) == 0 ){ $search .= $_REQUEST [ 'formR' ][ 'dirPrenom' ]; }
?>
2010-02-10 17:27:03 +00:00
< p class = " StyleInfoLib " > Effectuer une recherche entreprise avec les paramètres " <a href= " ./ ? page = recherche & vue = list & formR [ type ] = ent & formR [ raisonSociale ] =< ? = $search ?> "><?=$search?></a>"</p>
2009-07-22 13:05:51 +00:00
< ? php
2009-12-23 14:04:32 +00:00
}
2009-12-10 09:54:47 +00:00
if ( preg_match ( '/\bINVESTIG\b/i' , $_SESSION [ 'tabInfo' ][ 'droits' ]))
2009-12-23 14:04:32 +00:00
{
?>
2010-03-02 15:50:11 +00:00
< p class = " StyleInfoLib " >
Si aucun r & eacute ; sultat ne correspond & agrave ; votre recherche .
< a href = " ./?page=recherche&action=rechercher&vue=enq " > Cliquez - ici .</ a >< br />
</ p >
2009-07-22 13:05:51 +00:00
< ? php
}
2009-07-22 07:12:37 +00:00
?>
</ td >
</ tr >
2009-12-04 17:17:09 +00:00
</ table >
</ div >