HTML_QuickForm_Wizard
[ class tree: HTML_QuickForm_Wizard ] [ index: HTML_QuickForm_Wizard ] [ all elements ]

Source for file PageFirst.php

Documentation is available at PageFirst.php

  1. <?php
  2. class PageFirst extends HTML_QuickForm_Page
  3. {
  4. function buildForm()
  5. {
  6. $this->_formBuilt = true;
  7.  
  8. $this->addElement('header', null, 'Wizard page 1 of 3 (A)');
  9.  
  10. $radio[] = &$this->createElement('radio', null, null, 'Yes', 'Y');
  11. $radio[] = &$this->createElement('radio', null, null, 'No', 'N');
  12. $this->addGroup($radio, 'iradYesNo', 'Are you absolutely sure?');
  13.  
  14. $this->addElement('submit', $this->getButtonName('next'), 'Next >>');
  15.  
  16. $this->addRule('iradYesNo', 'Check Yes or No', 'required');
  17.  
  18. $this->setDefaultAction('next');
  19. }
  20. }
  21. ?>

Documentation generated on Thu, 19 Apr 2007 08:13:26 +0200 by phpDocumentor 1.3.0RC3