extranet/includes/recherche/recherche_list.php

346 lines
16 KiB
PHP
Raw Normal View History

2009-07-22 07:12:37 +00:00
<?php
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 = '';
//Enregistrement en session des dix derni<6E>res recherches
require_once 'recherche/session.php';
recherche_save($formR);
recherche_saveinfo( array('page' => $page) );
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
?>
<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
//Traitement des <20>l<EFBFBD>ments de recherche
if ($siret!='')
2009-08-12 10:16:34 +00:00
{
$len = strlen($siret);
2009-08-12 10:16:34 +00:00
//Num<75>ro WALDEC
2009-07-22 13:05:51 +00:00
if (strtoupper(substr($siret,0,1))=='W') {
$typeId='W';
$autreId=$siret;
$siret='';
}
//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
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')
{
echo "La recherche par num<75>ro de TVA n'est pas encore possible sur ce pays !";
$tvaIntra = true;
}
2009-08-12 10:16:34 +00:00
//Pour la france
elseif ($pays=='FR')
{
if ($len==13) $siret = substr($siret,4,9);
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 13:05:51 +00:00
}
}
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
$strCriteres='<a href="Javascript:document.form_recherche_ini.submit()">'.trim(@implode(' ', $O['results']['criteres'])).'</a>';
2009-07-22 07:12: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&eacute;sultat affich&eacute; avec le(s) crit&egrave;re(s) " '. $strCriteres .'" ('.$O['results']['nbReponsesTotal'].' sans les filtres).</p>';
}
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
//Enregistrement de la premi<6D>re raison sociale trouv<75> si la recherche n'a <20>t<EFBFBD> faite que sur un siren
if ($typeRech=='ent' && $siret!='' && $raisonSociale=='')
{
$firephp->info('Informations supl<70>mentaires');
recherche_saveinfo( array('raisonSociale' => $etabs[0]['Nom']) );
}
echo '<p class="StyleInfoLib">';
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&eacute;ponses avec les crit&egrave;res "'. $strCriteres .'". '.$O['results']['nbReponses'].' r&eacute;sultats affich&eacute;s. Page '.$curPage.'/'.$totPage.'.';
} else {
$totPage=$curPage=1;
echo $O['results']['nbReponsesTotal'].' r&eacute;ponses avec les crit&egrave;res "'. $strCriteres .'".';
}
echo '</p>';
echo '<ol>';
foreach ($etabs as $i => $etab)
{
if ($etab['Siege']==1) $strEtab='&Eacute;tablissement si&egrave;ge ';
else $strEtab='&Eacute;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&eacute; du si<73>ge de cette entreprise" href="/?page=identite&siret='.$etab['Siren'].'">(Acc&egrave;s si&egrave;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&eacute; de cet &eacute;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'].'&nbsp;&nbsp;&nbsp;&nbsp;';
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>&nbsp;&nbsp;<?=$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&eacute; :</u> ';
if ($etab['DirRs']<>'') {
echo '<b>'. strWsToHtml($etab['DirRs']) . '</b>, repr&eacute;sent&eacute; 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%">&nbsp;</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%">&nbsp;</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('/\bINVESTIG\b/i', $_SESSION['tabInfo']['droits']))
2009-07-22 13:05:51 +00:00
{?>
<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>
</div>