SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 280 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

They can be used to
create drop-down selection boxes and radio selection buttons.
We'll use select.genericlist as an example to create a drop-down selection box
with three values. We'll call the drop-down selection box someoptions and use the
second option as the default.
// prepare the options
$options = array();
$options[] = JHTML::_('select.option', '1', 'Option A');
$options[] = JHTML::_('select.option', '2', 'Option B');
$options[] = JHTML::_('select.option', '3', 'Option C');
// render the options
echo JHTML::_('select.genericlist', $options, 'someoptions',
null, 'value', 'text', '2');
The resultant drop-down selection box will look like this:
Rendering Output
[ 210 ]
Booleanlist
Gets a pair of Boolean radio options, one with a value of 0, the other with a value of 1.
Parameters name Name of the Boolean inputs
[attribs] Additional radio button tag attributes
[selected] Initially selected option
[yes] True text, default is yes
[no] False text, default is no
[id] Selection ID
Returns Pair of Boolean radio options
Genericlist
Gets a select list based on an array of options.


Pages:
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6