58 |
} |
} |
59 |
|
|
60 |
/** |
/** |
61 |
|
* Build a Yes/No Select box |
62 |
|
* |
63 |
|
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
64 |
|
* @author Suren Markossian <suren@bcsweb.com> |
65 |
|
* @package phpHtmlLib |
66 |
|
* @subpackage FormProcessing |
67 |
|
* |
68 |
|
* @copyright LGPL - See LICENCE |
69 |
|
*/ |
70 |
|
class FEYesNoListBox extends FEListBox { |
71 |
|
|
72 |
|
/** |
73 |
|
* The Constructor |
74 |
|
* |
75 |
|
* @param label string - text label for the element |
76 |
|
* @param bool required - is this a required element |
77 |
|
* @param array data_list - list of data elements (name=>value) |
78 |
|
* @param int required - element width in characters, pixels (px), percentage (%) or elements (em) |
79 |
|
* @param string - the value to use for the 'yes' radio |
80 |
|
* NOTE: default is 'yes' |
81 |
|
* @param string - the value to use for the 'no' radio |
82 |
|
* NOTE: default is 'no' |
83 |
|
*/ |
84 |
|
function FEYesNoListBox($label, $required = TRUE, $width = NULL, $height = NULL, |
85 |
|
$yes_value="yes", $no_value="no") { |
86 |
|
$options = array("Yes" => $yes_value, "No" => $no_value); |
87 |
|
$this->FEListBox($label, $required, $width, $height, $options); |
88 |
|
} |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
/** |
93 |
* This is the MultiListBox FormElement which builds a |
* This is the MultiListBox FormElement which builds a |
94 |
* select field with all of its options. It enables |
* select field with all of its options. It enables |
95 |
* the ability to have multiple selections. |
* the ability to have multiple selections. |