/[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.112 by eldy, Wed Sep 14 03:47:27 2005 UTC revision 1.113 by eldy, Fri Sep 16 00:38:30 2005 UTC
# Line 605  class Form Line 605  class Form
605       *      \param      selected        Id du mode de paiement présélectionné       *      \param      selected        Id du mode de paiement présélectionné
606       *      \param      htmlname        Nom de la zone select       *      \param      htmlname        Nom de la zone select
607       *      \param      filtertype      Pour filtre       *      \param      filtertype      Pour filtre
608       *      \param      format          0=id+libelle, 1=code+code       *      \param      format          0=id+libelle, 1=code+code, 2=code+libelle
609       */       */
610      function select_types_paiements($selected='',$htmlname='paiementtype',$filtertype='',$format=0)      function select_types_paiements($selected='',$htmlname='paiementtype',$filtertype='',$format=0)
611      {      {
# Line 624  class Form Line 624  class Form
624    
625              if ($format == 0) print '<option value="'.$id.'"';              if ($format == 0) print '<option value="'.$id.'"';
626              if ($format == 1) print '<option value="'.$code.'"';              if ($format == 1) print '<option value="'.$code.'"';
627                if ($format == 2) print '<option value="'.$code.'"';
628              // Si selected est text, on compare avec code, sinon avec id              // Si selected est text, on compare avec code, sinon avec id
629              if (eregi('[a-z]', $selected) && $selected == $code) print ' selected="true"';              if (eregi('[a-z]', $selected) && $selected == $code) print ' selected="true"';
630              elseif ($selected == $id) print ' selected="true"';              elseif ($selected == $id) print ' selected="true"';
631              print '>';              print '>';
632              if ($format == 0) print $this->cache_types_paiements_libelle[$id];              if ($format == 0) print $this->cache_types_paiements_libelle[$id];
633              if ($format == 1) print $code;              if ($format == 1) print $code;
634                if ($format == 2) print $this->cache_types_paiements_libelle[$id];
635              print '</option>';              print '</option>';
636          }          }
637          print '</select>';          print '</select>';

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.113

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