Changeset 278 for trunk/examples/example_datasrc_countries.php
- Timestamp:
- 07/31/05 19:59:27 (3 years ago)
- Files:
-
- trunk/examples/example_datasrc_countries.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/example_datasrc_countries.php
r267 r278 48 48 ), 49 49 ), 50 'country2' => array( 51 'type' => 'RadioGroup', 52 'attributes' => array( 53 'required' => 'yes', 54 'display' => 'yes', 55 'edit' => 'yes', 56 'label' => 'Area', 57 'title' => 'Area', 58 'style' => 'width:200px;', 59 'description' => 'Choose your country', 60 'values' => array(), 61 ), 62 ), 50 63 ); 51 64 … … 56 69 $form->setLocale('de'); 57 70 71 72 $countries = &patForms::createDatasource('Countries'); 73 58 74 // get the element 59 75 $el =& $form->getElementByName('country'); 60 61 $countries = &patForms::createDatasource('Countries');62 76 63 77 // tell the element to use the datasource object 64 78 $el->setDataSource($countries); 65 79 80 // get the element 81 $el2 =& $form->getElementByName('country2'); 82 83 // tell the element to use the datasource object 84 $el2->setDataSource($countries); 85 66 86 // PROCESS FORM ------------------------------------------------------ 67 87
