mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 11:31:26 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -7236,6 +7236,9 @@ function yn($yesno, $case = 1, $color = 0)
|
||||
if ($case == 3) {
|
||||
$result = '<input type="checkbox" value="1" checked disabled> '.$result;
|
||||
}
|
||||
if ($case == 4) {
|
||||
$result = img_picto('check', 'check');
|
||||
}
|
||||
|
||||
$classname = 'ok';
|
||||
} elseif ($yesno == 0 || strtolower($yesno) == 'no' || strtolower($yesno) == 'false') {
|
||||
@@ -7249,6 +7252,9 @@ function yn($yesno, $case = 1, $color = 0)
|
||||
if ($case == 3) {
|
||||
$result = '<input type="checkbox" value="0" disabled> '.$result;
|
||||
}
|
||||
if ($case == 4) {
|
||||
$result = img_picto('uncheck', 'uncheck');
|
||||
}
|
||||
|
||||
if ($color == 2) {
|
||||
$classname = 'ok';
|
||||
|
||||
Reference in New Issue
Block a user