/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/examples/form2.php
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/examples/form2.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Sat Feb 22 21:07:21 2003 UTC revision 1.2 by jonen, Sat Sep 20 00:20:55 2003 UTC
# Line 95  class StandardAccountForm extends Standa Line 95  class StandardAccountForm extends Standa
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      /**      /**
# Line 164  class StandardAccountForm extends Standa Line 171  class StandardAccountForm extends Standa
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    
# Line 181  class StandardAccountForm extends Standa Line 198  class StandardAccountForm extends Standa
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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed