--- nfo/php/libs/com.newsblob.phphtmllib/examples/form2.php 2003/02/22 21:07:21 1.1
+++ nfo/php/libs/com.newsblob.phphtmllib/examples/form2.php 2003/09/20 00:20:55 1.2
@@ -5,7 +5,7 @@
* NavTable widget.
*
*
- * $Id: form2.php,v 1.1 2003/02/22 21:07:21 jonen Exp $
+ * $Id: form2.php,v 1.2 2003/09/20 00:20:55 jonen Exp $
*
* @author Walter A. Boring IV
* @package phpHtmlLib
@@ -95,10 +95,17 @@
"Flem" => "flom",
"One" => 1)));
+ $this->add_element( new FEListBox("Anrede", FALSE, "100px", NULL,array("Frau"=>0,"Herr"=>1)) );
+
//build a large textarea
- $this->add_element( new FETextArea("Comment", TRUE, "400px", "100px" ) );
+ $this->add_element( new FETextArea("Comment", TRUE, 20, 10,"400px", "100px" ) );
$this->add_hidden_element( "foo" );
+
+ $this->add_element( new FECheckBox ("Patient Contact1", "Daytime Phone") );
+ $this->add_element( new FECheckBox ("Patient Contact2", "Evening Phone") );
+ $this->add_element( new FECheckBox ("Patient Contact3", "Email") );
+
}
/**
@@ -164,12 +171,22 @@
function &_optional_info() {
$table = &html_table($this->_width,0,2);
+ $table->add_row($this->element_label("Anrede"),
+ $this->element_form("Anrede"));
+
$table->add_row($this->element_label("List"),
$this->element_form("List"));
$table->add_row($this->element_label("Comment"),
$this->element_form("Comment"));
+ $td = new TDtag( array("colspan" => 2),
+ $this->element_form("Patient Contact1"),
+ $this->element_form("Patient Contact2"),
+ $this->element_form("Patient Contact3") );
+
+ $table->add_row( $td );
+
return $table;
}
@@ -181,6 +198,7 @@
*
*/
function form_backend_validation() {
+ //var_dump( $this->has_confirm() );
//HARD CODE an error here to show how to show an error
//and that it will prevent the confirm_action() method
//from being called