Documentation

Calendar

string
Calendar(
 string FieldName,
 string FormName = "skform",
 string FromName = "",
 string ToName = ""
);

The function 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.

Function parameters

ParameterDescription
FieldName Name of the field that is to receive the selected date.
FormName Name of the form containing the date field.
Optional parameter; "skform" value is used by default.
FromName Name of the field that is to receive the first date of the selected date range ("from" date).
Optional parameter, empty string by default.
ToName Name of the field that is to receive the second date of the selected date range. ("to" date).
Optional parameter, empty string by default.

See Also

Examples of use

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


© «Bitrix24», 2001-2024