Fix: add possibility to disable select form

This commit is contained in:
Regis Houssin 2010-04-26 07:56:51 +00:00
parent 7724d9e631
commit d5b3ab4e4f

View File

@ -209,9 +209,9 @@ class FormOther
* \param end end value
* \return return combo
*/
function select_percent($selected=0,$htmlname='percent',$increment=5,$start=0,$end=100)
function select_percent($selected=0,$htmlname='percent',$disabled=0,$increment=5,$start=0,$end=100)
{
$return = '<select class="flat" name="'.$htmlname.'">';
$return = '<select class="flat" name="'.$htmlname.'" '.($disabled?'disabled="true"':'').'>';
for ($i = $start ; $i <= $end ; $i += $increment)
{