/[dolibarr]/dolibarr/htdocs/html.form.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/html.form.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.110 by ccomb, Tue Sep 6 12:09:05 2005 UTC revision 1.111 by eldy, Wed Sep 7 20:26:15 2005 UTC
# Line 831  class Form Line 831  class Form
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

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26