86 |
$this->add_element( new FEEmail("Email Address", TRUE, "200px") ); |
$this->add_element( new FEEmail("Email Address", TRUE, "200px") ); |
87 |
|
|
88 |
//This will build a scrollable list of checkboxes. |
//This will build a scrollable list of checkboxes. |
89 |
$this->add_element( new FECheckBoxList("List", FALSE, |
$list = new FECheckBoxList("List", FALSE, |
90 |
"200px", "80px", |
"200px", "80px", |
91 |
array("Testing 123" => "foo", |
array("Testing 123" => "foo", |
92 |
"What is this?" => "bar", |
"What is this?" => "bar", |
93 |
"Somone's test" => "blah", |
"Somone's test" => "blah", |
94 |
"Slerm" => "slerm", |
"Slerm" => "slerm", |
95 |
"Flem" => "flom", |
"Flem" => "flom", |
96 |
"One" => 1))); |
"One" => 1)); |
97 |
|
$list->disable_item("Testing 123"); |
98 |
|
$this->add_element( $list ); |
99 |
|
|
100 |
|
|
101 |
|
$this->add_element( new FEListBox("Anrede", FALSE, "100px", NULL,array("Frau"=>0,"Herr"=>1)) ); |
102 |
|
|
103 |
//build a large textarea |
//build a large textarea |
104 |
$this->add_element( new FETextArea("Comment", TRUE, "400px", "100px" ) ); |
$this->add_element( new FETextArea("Comment", TRUE, 20, 10,"400px", "100px" ) ); |
105 |
|
|
106 |
$this->add_hidden_element( "foo" ); |
$this->add_hidden_element( "foo" ); |
107 |
|
|
108 |
|
$this->add_element( new FECheckBox ("Patient Contact1", "Daytime Phone") ); |
109 |
|
$this->add_element( new FECheckBox ("Patient Contact2", "Evening Phone") ); |
110 |
|
$this->add_element( new FECheckBox ("Patient Contact3", "Email") ); |
111 |
|
|
112 |
} |
} |
113 |
|
|
114 |
/** |
/** |
174 |
function &_optional_info() { |
function &_optional_info() { |
175 |
$table = &html_table($this->_width,0,2); |
$table = &html_table($this->_width,0,2); |
176 |
|
|
177 |
|
$table->add_row($this->element_label("Anrede"), |
178 |
|
$this->element_form("Anrede")); |
179 |
|
|
180 |
$table->add_row($this->element_label("List"), |
$table->add_row($this->element_label("List"), |
181 |
$this->element_form("List")); |
$this->element_form("List")); |
182 |
|
|
183 |
$table->add_row($this->element_label("Comment"), |
$table->add_row($this->element_label("Comment"), |
184 |
$this->element_form("Comment")); |
$this->element_form("Comment")); |
185 |
|
|
186 |
|
$td = new TDtag( array("colspan" => 2), |
187 |
|
$this->element_form("Patient Contact1"), |
188 |
|
$this->element_form("Patient Contact2"), |
189 |
|
$this->element_form("Patient Contact3") ); |
190 |
|
|
191 |
|
$table->add_row( $td ); |
192 |
|
|
193 |
return $table; |
return $table; |
194 |
} |
} |
195 |
|
|
201 |
* |
* |
202 |
*/ |
*/ |
203 |
function form_backend_validation() { |
function form_backend_validation() { |
204 |
|
//var_dump( $this->has_confirm() ); |
205 |
//HARD CODE an error here to show how to show an error |
//HARD CODE an error here to show how to show an error |
206 |
//and that it will prevent the confirm_action() method |
//and that it will prevent the confirm_action() method |
207 |
//from being called |
//from being called |