30 {
31 if (
$config->get(
'HTML.Forms')) {
32 $this->safe = true;
33 }
34
36 'form',
37 'Form',
38 'Required: Heading | List | Block | fieldset',
39 'Common',
40 array(
41 'accept' => 'ContentTypes',
42 'accept-charset' => 'Charsets',
43 'action*' => 'URI',
44 'method' => 'Enum#get,post',
45
46 'enctype' => 'Enum#application/x-www-form-urlencoded,multipart/form-data',
47 )
48 );
49 $form->excludes = array(
'form' =>
true);
50
52 'input',
53 'Formctrl',
54 'Empty',
55 'Common',
56 array(
57 'accept' => 'ContentTypes',
58 'accesskey' => 'Character',
59 'alt' => 'Text',
60 'checked' => 'Bool#checked',
61 'disabled' => 'Bool#disabled',
62 'maxlength' => 'Number',
63 'name' => 'CDATA',
64 'readonly' => 'Bool#readonly',
65 'size' => 'Number',
66 'src' => 'URI#embedded',
67 'tabindex' => 'Number',
68 'type' => 'Enum#text,password,checkbox,button,radio,submit,reset,file,hidden,image',
69 'value' => 'CDATA',
70 )
71 );
73
75 'select',
76 'Formctrl',
77 'Required: optgroup | option',
78 'Common',
79 array(
80 'disabled' => 'Bool#disabled',
81 'multiple' => 'Bool#multiple',
82 'name' => 'CDATA',
83 'size' => 'Number',
84 'tabindex' => 'Number',
85 )
86 );
87
89 'option',
90 false,
91 'Optional: #PCDATA',
92 'Common',
93 array(
94 'disabled' => 'Bool#disabled',
95 'label' => 'Text',
96 'selected' => 'Bool#selected',
97 'value' => 'CDATA',
98 )
99 );
100
101
102
103
105 'textarea',
106 'Formctrl',
107 'Optional: #PCDATA',
108 'Common',
109 array(
110 'accesskey' => 'Character',
111 'cols*' => 'Number',
112 'disabled' => 'Bool#disabled',
113 'name' => 'CDATA',
114 'readonly' => 'Bool#readonly',
115 'rows*' => 'Number',
116 'tabindex' => 'Number',
117 )
118 );
120
122 'button',
123 'Formctrl',
124 'Optional: #PCDATA | Heading | List | Block | Inline',
125 'Common',
126 array(
127 'accesskey' => 'Character',
128 'disabled' => 'Bool#disabled',
129 'name' => 'CDATA',
130 'tabindex' => 'Number',
131 'type' => 'Enum#button,submit,reset',
132 'value' => 'CDATA',
133 )
134 );
135
136
138 'form',
139 'fieldset',
140 'input',
141 'select',
142 'textarea',
143 'label',
144 'button',
145 'a',
146 'isindex',
147 'iframe'
148 );
149
150
151
152
153
154
155 $this->
addElement(
'fieldset',
'Form',
'Custom: (#WS?,legend,(Flow|#PCDATA)*)',
'Common');
156
158 'label',
159 'Formctrl',
160 'Optional: #PCDATA | Inline',
161 'Common',
162 array(
163 'accesskey' => 'Character',
164
165 )
166 );
167 $label->excludes = array('label' => true);
168
170 'legend',
171 false,
172 'Optional: #PCDATA | Inline',
173 'Common',
174 array(
175 'accesskey' => 'Character',
176 )
177 );
178
180 'optgroup',
181 false,
182 'Required: option',
183 'Common',
184 array(
185 'disabled' => 'Bool#disabled',
186 'label*' => 'Text',
187 )
188 );
189
190
191 }
Sets height/width defaults for <textarea>
makeLookup($list)
Convenience function that generates a lookup table with boolean true as value.
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
if(isset($_POST['submit'])) $form