107 lines
3.8 KiB
PHP
107 lines
3.8 KiB
PHP
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('input[name=formR[siret]]').focus();
|
|
$("form[name=form_recherche]").submit(function(){
|
|
var reg = /[a-z]{3}/i;
|
|
var siret = $('input[name=formR[siret]]').val();
|
|
if(siret.match(reg)){
|
|
$('input[name=formR[raisonSociale]]').attr('value',siret);
|
|
$('input[name=formR[siret]]').attr('value','');
|
|
}
|
|
return true;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<?php
|
|
foreach (array('siret',
|
|
'raisonSociale',
|
|
'numVoie',
|
|
'voie',
|
|
'cpVille',
|
|
'telFax',
|
|
'naf') as $label) {
|
|
if (isset($formR[$label]) == false) {
|
|
$formR[$label] = '';
|
|
}
|
|
}
|
|
?>
|
|
|
|
<br/><br/><br/><br/><br/>
|
|
<form name="form_recherche" id="formR-id" action="./?page=recherche&action=rechercher&vue=list" method="post">
|
|
<input type="hidden" name="formR[type]" value="ent" />
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td valign="top" width="580" height="200" align="center">
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center"><h2 align="center" class="StyleRechercheTitre">RECHERCHE ENTREPRISE</h2></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table>
|
|
<tr>
|
|
<td width="208" align="right" class="StyleRechercheLib"><b>SIREN</b></td>
|
|
<td width="300" align="left" style="line-height:20px;">
|
|
<input type="text" name="formR[siret]" value="<?=$formR['siret']?>" size="25" maxlength="20" style="vertical-align:middle;" />
|
|
<img src="img/exclamation.png" title="Recherche par SIREN, SIRET, N° TVA intracommunautaire, N° RC, N° WALDEC, ISIN" style="vertical-align:middle;" />
|
|
</td>
|
|
<td width="72"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="208" align="right" class="StyleRechercheLib"><b>RAISON SOCIALE<br/>ENSEIGNE / SIGLE</b></td>
|
|
<td width="300" align="left"><input type="text" name="formR[raisonSociale]" value="<?=$formR['raisonSociale']?>" size="25" maxlength="40" /></td>
|
|
<td width="72"> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- <div id="subcontent1" style="display:block"> -->
|
|
<br/>
|
|
<table>
|
|
<tr>
|
|
<td width="208" align="right" class="StyleRechercheLib"><b>N° & VOIE</b></td>
|
|
<td width="300" align="left"><input type="text" name="formR[numVoie]" value="<?=$formR['numVoie']?>" size="4" maxlength="4" />
|
|
<input type="text" name="formR[voie]" value="<?=$formR['voie']?>" size="17" maxlength="30" /></td>
|
|
<td width="72"> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width="208" align="right" class="StyleRechercheLib"><b>CP OU DÉP. / VILLE</b></td>
|
|
<td width="300" align="left"><input type="text" name="formR[cpVille]" value="<?=$formR['cpVille']?>" size="25" maxlength="40" /></td>
|
|
<td width="72"> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br/>
|
|
<table>
|
|
<tr>
|
|
<td width="208" align="right" class="StyleRechercheLib"><b>TÉL / FAX</b></td>
|
|
<td width="300" align="left"><input type="text" name="formR[telFax]" value="<?=$formR['telFax']?>" size="15" maxlength="15" /><!-- <img onClick="return overlay(this, 'subcontent1')" src="./img/puce_plus_rond.gif" alt="Plus d'options de recherche..." />--></td>
|
|
<td width="72"> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div id="subcontent1" style="display:block">
|
|
<table>
|
|
<tr>
|
|
<td width="208" align="right" class="StyleRechercheLib"><b>NAF</b></td>
|
|
<td width="300" align="left">
|
|
<input type="text" title="Commencer à saisir le code ou le libellé du Naf, puis séléctionner l'une des propositions" size="15" name="formR[naf]" id="formR-naf" value="<?=$formR['naf']?>" />
|
|
</td>
|
|
<td width="72"> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="580">
|
|
<tr>
|
|
<td align="center" valign="top">
|
|
<input type="image" src="./img/boutton_valider_off.gif" name="submit" id="formR-submit" onmouseover="this.src='./img/boutton_valider_on.gif'" onmouseout="this.src='./img/boutton_valider_off.gif'" title="Lancer la recherche..." />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|