Bitrix Site Manager

Calendar

string
Calendar(
 string field,
 string form = "skform",
 string field_from = "",
 string field_to = ""
)

The function Calendar 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 (or in two fields for intervals). Written in JavaScript.

Parameters

ParameterDescription
field Name of the field that is to receive the selected date.
form Name of the form containing the date field.
Optional; a value of "skform" is used by default.
field_form Name of the field that is to receive the first date of the selected date range.
Optional; empty string by default.
field_to Name of the field that is to receive the second date of the selected date range.
Optional; empty string by default.

See Also

Example



<form action="<?=$APPLICATION->GetCurPage()?>" method="POST" name="curform">
<input type="text" class="typeinput" name="DATE" size="12">
<?=Calendar("DATE", "curform")?>
</form>