extranet/includes/recherche/recherche_ent.php
2009-08-18 06:52:32 +00:00

87 lines
3.3 KiB
PHP

<script type="text/javascript">
$(document).ready(function(){
$("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>
<br/><br/><br/><br/><br/>
<form name="form_recherche" id="formR-id"action="./?page=recherche&action=rechercher&vue=list" method="POST" enctype="multipart/form-data">
<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"><input type="text" name="formR[siret]" value="<?=$formR['siret']?>" size="25" maxlength="20" />&nbsp;<img src="img/exclamation.png"/ title="Recherche par SIREN, SIRET, N° TVA intracommunautaire, N° RC, N° WALDEC, ISIN"></td>
<td width="72">&nbsp;</td>
</tr>
<tr>
<td width="208" align="right" class="StyleRechercheLib"><b>RAISON SOCIALE<br/>ENSEIGNE / SIGLE</b></td>
<td width="300"><input type="text" name="formR[raisonSociale]" value="<?=$formR['raisonSociale']?>" size="25" maxlength="40" /></td>
<td width="72">&nbsp;</td>
</tr>
</table>
<!-- <div id="subcontent1" style="display:block"> -->
<br/>
<table>
<tr>
<td width="208" align="right" class="StyleRechercheLib"><b>N&deg; &amp; VOIE</b></td>
<td width="300"><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">&nbsp;</td>
</tr>
<tr>
<td width="208" align="right" class="StyleRechercheLib"><b>CP OU D&Eacute;P. / VILLE</b></td>
<td width="300"><input type="text" name="formR[cpVille]" value="<?=$formR['cpVille']?>" size="25" maxlength="40" /></td>
<td width="72">&nbsp;</td>
</tr>
</table>
<br/>
<table>
<tr>
<td width="208" align="right" class="StyleRechercheLib"><b>T&Eacute;L / FAX</b></td>
<td width="300"><input type="text" name="formR[telFax]" value="<?=$formR['telFax']?>" size="15" maxlength="15" /><!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img onClick="return overlay(this, 'subcontent1')" src="./img/puce_plus_rond.gif" alt="Plus d'options de recherche..." />--></td>
<td width="72">&nbsp;</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">
<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">&nbsp;</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>