95 |
"Flem" => "flom", |
"Flem" => "flom", |
96 |
"One" => 1))); |
"One" => 1))); |
97 |
|
|
98 |
|
$this->add_element( new FEListBox("Anrede", FALSE, "100px", NULL,array("Frau"=>0,"Herr"=>1)) ); |
99 |
|
|
100 |
//build a large textarea |
//build a large textarea |
101 |
$this->add_element( new FETextArea("Comment", TRUE, "400px", "100px" ) ); |
$this->add_element( new FETextArea("Comment", TRUE, 20, 10,"400px", "100px" ) ); |
102 |
|
|
103 |
$this->add_hidden_element( "foo" ); |
$this->add_hidden_element( "foo" ); |
104 |
|
|
105 |
|
$this->add_element( new FECheckBox ("Patient Contact1", "Daytime Phone") ); |
106 |
|
$this->add_element( new FECheckBox ("Patient Contact2", "Evening Phone") ); |
107 |
|
$this->add_element( new FECheckBox ("Patient Contact3", "Email") ); |
108 |
|
|
109 |
} |
} |
110 |
|
|
111 |
/** |
/** |
171 |
function &_optional_info() { |
function &_optional_info() { |
172 |
$table = &html_table($this->_width,0,2); |
$table = &html_table($this->_width,0,2); |
173 |
|
|
174 |
|
$table->add_row($this->element_label("Anrede"), |
175 |
|
$this->element_form("Anrede")); |
176 |
|
|
177 |
$table->add_row($this->element_label("List"), |
$table->add_row($this->element_label("List"), |
178 |
$this->element_form("List")); |
$this->element_form("List")); |
179 |
|
|
180 |
$table->add_row($this->element_label("Comment"), |
$table->add_row($this->element_label("Comment"), |
181 |
$this->element_form("Comment")); |
$this->element_form("Comment")); |
182 |
|
|
183 |
|
$td = new TDtag( array("colspan" => 2), |
184 |
|
$this->element_form("Patient Contact1"), |
185 |
|
$this->element_form("Patient Contact2"), |
186 |
|
$this->element_form("Patient Contact3") ); |
187 |
|
|
188 |
|
$table->add_row( $td ); |
189 |
|
|
190 |
return $table; |
return $table; |
191 |
} |
} |
192 |
|
|
198 |
* |
* |
199 |
*/ |
*/ |
200 |
function form_backend_validation() { |
function form_backend_validation() { |
201 |
|
//var_dump( $this->has_confirm() ); |
202 |
//HARD CODE an error here to show how to show an error |
//HARD CODE an error here to show how to show an error |
203 |
//and that it will prevent the confirm_action() method |
//and that it will prevent the confirm_action() method |
204 |
//from being called |
//from being called |