| Line 15... |
Line 15... |
| 15 |
// +----------------------------------------------------------------------+
|
15 |
// +----------------------------------------------------------------------+
|
| 16 |
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com> |
|
16 |
// | Authors: Adam Daniel <adaniel1@eesus.jnj.com> |
|
| 17 |
// | Bertrand Mansion <bmansion@mamasam.com> |
|
17 |
// | Bertrand Mansion <bmansion@mamasam.com> |
|
| 18 |
// +----------------------------------------------------------------------+
|
18 |
// +----------------------------------------------------------------------+
|
| 19 |
//
|
19 |
//
|
| 20 |
// $Id: checkbox.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
|
20 |
// $Id: checkbox.php,v 1.2 2005-09-20 17:01:22 ddelon Exp $
|
| Line 21... |
Line 21... |
| 21 |
|
21 |
|
| Line 22... |
Line 22... |
| 22 |
require_once("HTML/QuickForm/input.php");
|
22 |
require_once("HTML/QuickForm/input.php");
|
| 23 |
|
23 |
|
| Line 227... |
Line 227... |
| 227 |
// default values are overriden by submitted
|
227 |
// default values are overriden by submitted
|
| 228 |
$value = $this->_findValue($caller->_constantValues);
|
228 |
$value = $this->_findValue($caller->_constantValues);
|
| 229 |
if (null === $value) {
|
229 |
if (null === $value) {
|
| 230 |
// if no boxes were checked, then there is no value in the array
|
230 |
// if no boxes were checked, then there is no value in the array
|
| 231 |
// yet we don't want to display default value in this case
|
231 |
// yet we don't want to display default value in this case
|
| 232 |
if (isset($caller->_submitValues) && 0 < count($caller->_submitValues)) {
|
232 |
if ($caller->isSubmitted()) {
|
| 233 |
$value = $this->_findValue($caller->_submitValues);
|
233 |
$value = $this->_findValue($caller->_submitValues);
|
| 234 |
} else {
|
234 |
} else {
|
| 235 |
$value = $this->_findValue($caller->_defaultValues);
|
235 |
$value = $this->_findValue($caller->_defaultValues);
|
| 236 |
}
|
236 |
}
|
| 237 |
}
|
237 |
}
|