root/trunk/examples/templates/example_parser_datasource.fhtml

Revision 117, 1.4 kB (checked in by argh, 4 years ago)

Massive update of the examples collection; added the patExampleGen examples framework; commented all examples; reworked all the templates...

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <patForms:Form name="foo">
2
3 <div class="piFrame">
4     <div class="piTitle">Area login</div>
5     <div class="piContent">
6        
7         <div class="piAbstract">
8             Please provide your credentials here to log into an area of your choice.
9         </div>
10        
11         <table border="0" cellpadding="2" cellspacing="0">
12             <tr>
13                 <td>Username</td>
14                 <td>
15                     <table cellpadding="0" cellspacing="0" border="0">
16                         <tr>
17                             <td><patForms:String name="username" required="yes" description="Please enter your name here" size="8" maxlength="8" accesskey="U" /></td>
18                             <td>&nbsp;Password&nbsp;</td>
19                             <td><patForms:String name="password" type="password" required="yes" size="6" maxlength="6" accesskey="P" /></td>
20                             <td>&nbsp;Area&nbsp;</td>
21                             <td>
22                                 <patForms:Enum name="area" required="yes">
23                                     <!--
24                                         You can use the patForms:Datasource tag for all elements that contain sets of values,
25                                         like the Enum, Set, Switch... elements. The datasource method that is called just has
26                                         to return the values in the correct format, otherwise it's irrelevant where the
27                                         method gets that data from.
28                                     -->
29                                     <patForms:Datasource type="callback" method="getAreasList" class="areasDatasource"/>
30                                 </patForms:Enum>
31                             </td>
32                         </tr>
33                     </table>
34                 </td>
35             </tr>
36         </table>
37     </div>
38 </div>
39
40 <input type="submit" name="save" value="Save" accesskey="S" />
41
42 </patForms:Form>
Note: See TracBrowser for help on using the browser.