string CalendarDate( string field_name, string field_value, string form = "skform", string field_size = "10", string field_param = "class=\"typeinput\"" )
The function CalendarDate returns HTML code of the icon that displays a standard calendar window if clicked. The date selected is then pasted in the specified form field. Written in JavaScript.
Parameter | Description |
---|---|
field_name | Name of the field: <input type="text" name="field_name" ... > |
field_value | Input field initial value: <input type="text" value="field_value" ... > |
form | Name of the form containing the date input field: <form name="form"> Optional; the default value is "skform". |
field_size | Input field width: <input type="text" size="field_size" ... > Optional; the default value is "10". |
field_param | Additional attributes for the input field: <input type="text" field_param ... > Optional; the default value is class="typeinput". |
<form action="<?=$APPLICATION->GetCurPage()?>" method="POST" name="form1"> <?echo CalendarDate("birthdate", "25.11.1975", "form1", "15", "class=\"my_input\"")?> </form>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |