diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index 0f0ea55043e..c1110a22938 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -831,7 +831,26 @@ class Form
}
}
-
+
+
+ /**
+ * \brief Retourne le formulaire de saisie d'un identifiant professionnel (siren, siret, etc...)
+ * \param idprof 1,2,3,4 (Exemple: 1=siren,2=siret,3=naf,4=rcs/rm)
+ * \param soc Objet societe
+ * \param htmlname Nom de la zone input
+ */
+ function id_prof($idprof,$soc,$htmlname,$selected='')
+ {
+ global $langs;
+ $formlength=16;
+ if ($idprof==1 && $soc->pays_code == 'FR') $formlength=9;
+ if ($idprof==2 && $soc->pays_code == 'FR') $formlength=14;
+ if ($idprof==3 && $soc->pays_code == 'FR') $formlength=4;
+ if ($idprof==4 && $soc->pays_code == 'FR') $formlength=4;
+ print '';
+ }
+
+
/**
* \brief Retourne le nom traduit ou code+nom d'un pays
* \param id id du pays
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 7c151eb3993..2f2d027bc51 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -20,6 +20,7 @@ ErrorNoRequestRan=No request ran
ErrorWrongHostParameter=Wrong host parameter
ErrorYourCountryIsNotDefined=Your country is not defined. Go to Home-Setup-Edit and post again the form.
ErrorRecordIsUsedByChild=Failed to delete this record. This record is used by at least on child records.
+ErrorWrongValue=Wrong value
HomeArea=Home area
LastAccess=Last access
RequestedUrl=Requested Url
@@ -275,6 +276,7 @@ TotalQuantity=Total quantity
DateFromTo=From %s to %s
DateFrom=From %s
DateUntil=Until %s
+Check=Check
# Countries
CountryFR=France
CountryBE=Belgium
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index 54ee0de4d55..8624c0ba3db 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -20,6 +20,7 @@ ErrorNoRequestRan=Aucune requ
ErrorWrongHostParameter=Mauvais paramètre Serveur
ErrorYourCountryIsNotDefined=Votre pays n'est pas défini. Aller dans Configuration-Général-Editer et resoumettez le formulaire.
ErrorRecordIsUsedByChild=Impossible de supprimer cet enregistrement. Ce dernier est utilisé en tant que père par au moins un enregistrement fils.
+ErrorWrongValue=Valeur incorrecte
HomeArea=Espace accueil
LastAccess=Dernière connexion
RequestedUrl=Url sollicitée
@@ -275,6 +276,7 @@ TotalQuantity=Quantit
DateFromTo=Du %s au %s
DateFrom=A partir du %s
DateUntil=Jusqu'au %s
+Check=Vérifier
# Countries
CountryFR=France
CountryBE=Belgique
diff --git a/htdocs/soc.php b/htdocs/soc.php
index 36a1905899e..1fb379f9d64 100644
--- a/htdocs/soc.php
+++ b/htdocs/soc.php
@@ -413,9 +413,47 @@ elseif ($_GET["action"] == 'edit')
print '