A smarty plugin for use within forms which displays a drop-down list of timezones
| Attribute Name | Type | Default | Description | |
|---|---|---|---|---|
| variables | ||||
| default | mixed | GMT | The default zone to select 1 | |
| extra | string | Any extra attributes 2 | ||
| function | string | (built-in default) | The name of the function used to get the zone data 3 | |
| return | string | default | The return type 4 | |
| attributes | ||||
| name | CDATA | field name 5 | ||
| size | NUMBER | rows visible | ||
| multiple | (multiple) | default is single selection 6 | ||
| disabled | (disabled) | unavailable in this context 7 | ||
| tabindex | NUMBER | position in tabbing order | ||
| onfocus | %script% | the element got the focus | ||
| onblur | %script% | the element lost the focus | ||
| onchange | %script% | the element value was changed | ||
| coreattrs | ||||
| id | ID | document-wide unique id | ||
| class | CDATA | space-separated list of classes | ||
| style | %stylesheet% | associated style info | ||
| title | %text% | advisory title | ||
| i18n | ||||
| lang | %languagecode% | language code | ||
| dir | (ltr|rtl) | direction for weak/neutral text | ||
| events | ||||
| onclick | %script% | a pointer button was clicked | ||
| ondblclick | %script% | a pointer button was double clicked | ||
| onmousedown | %script% | a pointer button was pressed down | ||
| onmouseup | %script% | a pointer button was released | ||
| onmouseover | %script% | a pointer was moved onto | ||
| onmousemove | %script% | a pointer was moved within | ||
| onmouseout | %script% | a pointer was moved away | ||
| onkeypress | %script% | a key was pressed and released | ||
| onkeydown | %script% | a key was pressed down | ||
| onkeyup | %script% | a key was released | ||
{html_select_timezone extra="width=200 alt=TimeZone"}
array[0..n] of array( "name", offset )Where name is the zone name, and offset is the offset in minutes from GMT.
{html_select_timezone multiple="multiple"}{html_select_timezone disable="disabled"}BEWARE: This function is quite capable of adding around 32K of data to your page. You should therefore use it sparingly in order to conserve bandwidth.
REMEMBER: In order for your form to return time zone data, you MUST supply the `name` attribute.
Copyright (c) 2002, Alan McFarlane