831 |
|
|
832 |
} |
} |
833 |
} |
} |
834 |
|
|
835 |
|
|
836 |
|
/** |
837 |
|
* \brief Retourne le formulaire de saisie d'un identifiant professionnel (siren, siret, etc...) |
838 |
|
* \param idprof 1,2,3,4 (Exemple: 1=siren,2=siret,3=naf,4=rcs/rm) |
839 |
|
* \param soc Objet societe |
840 |
|
* \param htmlname Nom de la zone input |
841 |
|
*/ |
842 |
|
function id_prof($idprof,$soc,$htmlname,$selected='') |
843 |
|
{ |
844 |
|
global $langs; |
845 |
|
$formlength=16; |
846 |
|
if ($idprof==1 && $soc->pays_code == 'FR') $formlength=9; |
847 |
|
if ($idprof==2 && $soc->pays_code == 'FR') $formlength=14; |
848 |
|
if ($idprof==3 && $soc->pays_code == 'FR') $formlength=4; |
849 |
|
if ($idprof==4 && $soc->pays_code == 'FR') $formlength=4; |
850 |
|
print '<input type="text" name="'.$htmlname.'" size="'.($formlength+1).'" maxlength="'.$formlength.'" value="'.$selected.'">'; |
851 |
|
} |
852 |
|
|
853 |
|
|
854 |
/** |
/** |
855 |
* \brief Retourne le nom traduit ou code+nom d'un pays |
* \brief Retourne le nom traduit ou code+nom d'un pays |
856 |
* \param id id du pays |
* \param id id du pays |