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' ];
if ( $formR [ 'type' ] == 'ent' || $formR [ 'type' ] == 'dir' ) $typeRech = $formR [ 'type' ];
2009-08-12 10:16:34 +00:00
$siret = trim ( strtr ( $formR [ 'siret' ], array ( ' ' => '' , '.' => '' , '-' => '' , '/' => '' )));
$pays = strtoupper ( substr ( $siret , 0 , 2 ));
$typeId = '' ;
2009-08-27 09:01:45 +00:00
//Enregistrement en session des dix derni<6E> res recherches
require_once 'recherche/session.php' ;
recherche_save ( $formR );
2009-07-22 13:05:51 +00:00
function isUTF8 ( $string )
{
return ( utf8_encode ( utf8_decode ( $string )) == $string );
}
2009-07-22 07:12:37 +00:00
?>
2009-07-22 13:05:51 +00:00
< table width = " 580 " height = " 100% " border = " 0 " align = " left " bgcolor = " #FFFFFF " >
< tr >
< td width = " 10 " >& nbsp ; </ td >
< td valign = " top " width = " 570 " >< br />
< ? php
2009-08-12 10:16:34 +00:00
if ( $siret <> '' )
{
//Num<75> ro WALDEC
2009-07-22 13:05:51 +00:00
if ( strtoupper ( substr ( $siret , 0 , 1 )) == 'W' ) {
$typeId = 'W' ;
$autreId = $siret ;
$siret = '' ;
}
2009-08-12 10:16:34 +00:00
//TVA Intracommunautaire
2009-07-22 13:05:51 +00:00
elseif ( $pays == 'AT' || $pays == 'BE' || $pays == 'BG' || $pays == 'CY' || $pays == 'CZ' || $pays == 'DE' || $pays == 'DK' ||
$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' )
die ( " La recherche par num<75> ro de TVA n'est pas encore possible sur ce pays ! " );
2009-08-12 10:16:34 +00:00
//Pour la france
2009-07-22 13:05:51 +00:00
elseif ( $pays == 'FR' ) {
$len = strlen ( $siret );
if ( $len == 13 ) $siret = substr ( $siret , 4 , 9 );
elseif ( $len == 12 )
{
// C'est probablement un code ISIN
$typeId = 'I' ;
$autreId = $siret ;
$siret = '' ;
$firephp -> info ( 'Code ISIN' );
2009-07-22 07:12:37 +00:00
}
2009-07-22 13:05:51 +00:00
}
2009-08-12 10:16:34 +00:00
//Num<75> 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
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $siret ));
}
2009-07-22 07:12:37 +00:00
2009-08-12 10:16:34 +00:00
$telFax = trim ( preg_replace ( '/[^0-9]/' , '' , $formR [ 'telFax' ]));
$naf = trim ( preg_replace ( '/[^0-9A-Z]/i' , '' , $formR [ 'naf' ]));
2009-07-22 13:05:51 +00:00
//if ($telFax<>'') $typeId='T';
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
//Traitement des donn<6E> es formulaire;
2009-08-12 10:16:34 +00:00
if ( isUTF8 ( $formR [ 'raisonSociale' ])) $formR [ 'raisonSociale' ] = utf8_decode ( $formR [ 'raisonSociale' ]);
2009-07-22 13:05:51 +00:00
$raisonSociale = preg_replace ( '/[^0-9A-Z]/' , ' ' , strtoupper ( strtr ( $formR [ 'raisonSociale' ], '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݟ' , 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY' )));
$numVoie = preg_replace ( '/[^0-9]/' , '' , $formR [ 'numVoie' ]);
2009-08-12 10:16:34 +00:00
if ( $numVoie > 9999 ) die ( 'Num<75> ro de voie incorrecte !' );
$libVoie = preg_replace ( '/[^0-9A-Z]/' , ' ' , strtoupper ( strtr ( strtolower ( $formR [ 'voie' ]), '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݟ' , 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY' )));
$cpVille = preg_replace ( '/ +/' , ' ' , preg_replace ( '/[^0-9A-Z]/' , ' ' , //strtoupper(trimAccent($formR['cpVille']))));
2009-07-22 13:05:51 +00:00
strtoupper ( strtr ( strtolower ( $formR [ 'cpVille' ]), '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ݟ' , 'aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY' ))));
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
if ( preg_match ( " /^([0-9] { 2,5})([ \ D]*)/i " , $cpVille , $matches )) {
$cp = trim ( $matches [ 1 ]);
$ville = trim ( $matches [ 2 ]);
}
else $ville = trim ( $cpVille );
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
//Type de recherche = dirigeants
if ( $typeRech == 'dir' )
{
$dirNom = preg_replace ( '/[^0-9A-Z]/' , ' ' , strtoupper ( trimAccent ( $formR [ 'dirNom' ])));
$dirPrenom = preg_replace ( '/[^0-9A-Z]/' , ' ' , strtoupper ( trimAccent ( $formR [ 'dirPrenom' ])));
$dirDateNaissJJ = preg_replace ( '/[^0-9]/' , '' , $formR [ 'dirDateNaissJJ' ]) * 1 ;
if ( $dirDateNaissJJ < 0 || $dirDateNaissJJ > 31 ) die ( 'Jour de naissance incorrect !' );
$dirDateNaissMM = preg_replace ( '/[^0-9]/' , '' , $formR [ 'dirDateNaissMM' ]) * 1 ;
if ( $dirDateNaissMM < 0 || $dirDateNaissMM > 12 ) die ( 'Mois de naissance incorrect !' );
$dirDateNaissAAAA = preg_replace ( '/[^0-9]/' , '' , $formR [ 'dirDateNaissAAAA' ]) * 1 ;
$year = date ( 'Y' ) - 18 ;
if ( $dirDateNaissAAAA < 0 || $dirDateNaissAAAA > $year ) die ( 'Ann<6E> e de naissance incorrecte !' );
$dirDateNaiss = $dirDateNaissJJ . '/' . $dirDateNaissMM . '/' . $dirDateNaissAAAA ;
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
$dirCpVille = preg_replace ( '/ +/' , ' ' , preg_replace ( '/[^0-9A-Z]/' , ' ' , strtoupper ( $formR [ 'dirCpVille' ])));
if ( preg_match ( " /^([0-9] { 2,5})([ \ D]*)/i " , $dirCpVille , $matches )) {
$dirCp = trim ( $matches [ 1 ]);
$dirVille = trim ( $matches [ 2 ]);
}
else $dirVille = trim ( $dirCpVille );
}
2009-07-22 07:12:37 +00:00
2009-08-12 10:16:34 +00:00
$position = $formR [ 'index' ];
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 == '' ) {
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 );
}
} elseif ( $typeRech == 'dir' ) {
echo " <!--_typeRech=dir, $nom , $prenom , --> \n " ;
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 */
$strRecherche = '<form name="form_recherche_ini" action="./?page=recherche&vue=' . $formR [ 'type' ] . '" method="POST" enctype="multipart/form-data">' ;
$strRecherche .= '<input type="hidden" name="formR[siret]" value="' . $formR [ 'siret' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[raisonSociale]" value="' . $formR [ 'raisonSociale' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[numVoie]" value="' . $formR [ 'numVoie' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[voie]" value="' . $formR [ 'voie' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[cpVille]" value="' . $formR [ 'cpVille' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[telFax]" value="' . $formR [ 'telFax' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[naf]" value="' . $formR [ 'naf' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[dirNom]" value="' . $formR [ 'dirNom' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[dirPrenom]" value="' . $formR [ 'dirPrenom' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[dirDateNaissJJ]" value="' . $formR [ 'dirDateNaissJJ' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[dirDateNaissMM]" value="' . $formR [ 'dirDateNaissMM' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[dirDateNaissAAAA]" value="' . $formR [ 'dirDateNaissAAAA' ] . '"/>' ;
$strRecherche .= '<input type="hidden" name="formR[dirCpVille]" value="' . $formR [ 'dirCpVille' ] . '"/>' ;
$strRecherche .= '</form>' ;
echo $strRecherche ;
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
$strCriteres = '<a href="Javascript:form_recherche_ini.submit()">' . trim ( @ implode ( ' ' , $O [ 'results' ][ 'criteres' ])) . '</a>' ;
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
/*'criteres'=>array('rs'=>$raisonSociale, 'adresse'=>$adresse, 'cp'=>$codePostal, 'ville'=>$ville */
if ( $O [ 'results' ][ 'nbReponses' ] == 0 )
echo '<p class="StyleInfoLib">Pas de résultat affiché avec le(s) critère(s) " ' . $strCriteres . '" (' . $O [ 'results' ][ 'nbReponsesTotal' ] . ' sans les filtres).</p>' ;
else {
$etabs = $O [ 'results' ][ 'reponses' ];
$firephp -> log ( $etabs , 'etabs' );
echo '<p class="StyleInfoLib">' ;
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
if ( $O [ 'results' ][ 'nbReponses' ] < $O [ 'results' ][ 'nbReponsesTotal' ]) {
$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-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
echo '</p>' ;
echo '<ol>' ;
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' ;
if ( $etab [ 'Siege' ] <> 1 || ( $etab [ 'Siege' ] == 1 && $etab [ 'Actif' ] <> 1 ))
$lien = '<a title="Voir la fiche d\'identité du si<73> ge de cette entreprise" href="/?page=identite&siret=' . $etab [ 'Siren' ] . '">(Accès siège)</a>' ;
else $lien = '' ;
?>
< li class = " StyleInfoData " type = " 1 " value = " <?=((( $curPage -1)* $tabInfo['nbReponses'] )+ $i +1);?> " ><!--< ? = " $curPage / $totPage / " . $O [ 'results' ][ 'nbReponsesTotal' ] . " / " . $tabInfo [ 'nbReponses' ] . " / $position " ; ?> -->
< ? 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
if ( $etab [ 'Adresse2' ] <> '' ) echo $etab [ 'Adresse2' ] . '<br/>' ;
?>
2009-07-22 07:12:37 +00:00
< b >< ? = $etab [ 'CP' ] . ' ' . $etab [ 'Ville' ] ?> </b><br/>
< ?
2009-07-22 13:05:51 +00:00
/** Si pr<70> sent, on affiche la forme Juridique **/
if ( trim ( $etab [ 'FJ' ]) <> '' ) { ?>
< i > Forme : < ? = strWsToHtml ( $etab [ 'FJLib' ]) . ' (' . $etab [ 'FJ' ]; ?> )</i><br/>
2009-07-22 07:12:37 +00:00
< ? }
2009-07-22 13:05:51 +00:00
/** Si pr<70> sent, on affiche l'activit<69> NAF **/
if ( trim ( $etab [ 'NafEnt' ]) <> '' ) { ?>
< i > Activit & eacute ; : < ? = strWsToHtml ( $etab [ 'NafEntLib' ]) . ' (' . $etab [ 'NafEnt' ]; ?> )</i><br/>
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/>' ;
}
//Affichage sp<73> cial
if ( $_SESSION [ 'tabInfo' ][ 'idClient' ] == 34 )
{
?>
< i >< a title = " Consultez les comptes annuels " href = " /?page=greffes&vue=bilans&siret=<?= $etab['Siret'] ?>&rs=<?= $etab['Nom'] ?> " > Comptes annuels </ a ></ i > -
< i >< a title = " Consultez les actes et status " href = " /?page=greffes&vue=actes&siret=<?= $etab['Siret'] ?>&rs=<?= $etab['Nom'] ?> " > Actes et status </ a ></ i >< br />
< ? php
}
?>
2009-07-22 07:12:37 +00:00
< br /></ li >
< ?
2009-07-22 13:05:51 +00:00
}
echo '<table><tr>' ;
2009-07-22 07:12:37 +00:00
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 ;
?>
< td width = " 40% " align = " right " >< form name = " form_recherche_prev " action = " ./?page=recherche&action=rechercher&vue=list " method = " POST " enctype = " multipart/form-data " >
< 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'] ?> " />
< 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 >
< ?
} else echo '<td width="40%"> </td>' ;
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
if ( $curPage <> $totPage ) { echo " <td width= \" 20% \" >Page $curPage / $totPage </td> " ; }
2009-07-22 07:12:37 +00:00
2009-07-22 13:05:51 +00:00
if ( $curPage < $totPage )
{
?>
< td width = " 40% " align = " left " >< form name = " form_recherche_next " action = " ./?page=recherche&action=rechercher&vue=list " method = " POST " enctype = " multipart/form-data " >
< 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 >
< ?
} else echo '<td width="40%"> </td>' ;
echo '</table></ol>' ;
}
?>
< br />
< ? php
if ( $typeRech == 'dir' )
{
2009-07-22 07:12:37 +00:00
$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' ]; }
2009-07-22 13:05:51 +00:00
?>
< p class = " StyleInfoLib " > Effectuer une recherche entreprise avec les param<EFBFBD> tres " <a href= " ./ ? page = recherche & vue = list & formR [ type ] = ent & formR [ raisonSociale ] =< ? = $search ?> "><?=$search?></a>"</p>
< ? php
}
?>
< ? php
if ( preg_match ( '/INVESTIG/i' , $_SESSION [ 'tabInfo' ][ 'droits' ]))
{ ?>
< p class = " StyleInfoLib " > Si aucun r<EFBFBD> sultat ne correspond <EFBFBD> votre recherche . < a href = " ./?page=recherche&action=rechercher&vue=enq " > Cliquez - ici .</ a >< br /></ p >
< ? php
}
2009-07-22 07:12:37 +00:00
?>
</ td >
</ tr >
</ table >