mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: add possibility to disable select form
This commit is contained in:
parent
7724d9e631
commit
d5b3ab4e4f
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user