@@ 165-174 (lines=10) @@ | ||
162 | * @param string a string to be attached to the end of the attributes |
|
163 | * @return string |
|
164 | */ |
|
165 | public static function password($data, $value = '', $extra = '') |
|
166 | { |
|
167 | if (! is_array($data)) { |
|
168 | $data = array('name' => $data); |
|
169 | } |
|
170 | ||
171 | $data['type'] = 'password'; |
|
172 | ||
173 | return form::input($data, $value, $extra); |
|
174 | } |
|
175 | ||
176 | /** |
|
177 | * Creates an HTML form upload input tag. |
|
@@ 184-193 (lines=10) @@ | ||
181 | * @param string a string to be attached to the end of the attributes |
|
182 | * @return string |
|
183 | */ |
|
184 | public static function upload($data, $value = '', $extra = '') |
|
185 | { |
|
186 | if (! is_array($data)) { |
|
187 | $data = array('name' => $data); |
|
188 | } |
|
189 | ||
190 | $data['type'] = 'file'; |
|
191 | ||
192 | return form::input($data, $value, $extra); |
|
193 | } |
|
194 | ||
195 | /** |
|
196 | * Creates an HTML form textarea tag. |