|
form.inc.php - Form Functions
|
dateBox
Required Parameters: string $field, int $size
Optional Parameters: string $value, string $label, string $formName
Returns: None
Description: This function generates a HTML form input of type "text" populated by the string in $value. An icon linked to a JavaScript calendar, which is in turn linked to the box itself, appears to the right of the box. The box is scalable depending on the $size variable, with a name given by the $field variable. If $label is not null, the labelCell() function will automatically generate a two-column table row around the input. This function requires that four JavaScript files be included at the beginning of the .form.php file: AnchorPosition.js, PopupWindow.js, CalendarPopup.js and date.js. In addition, the showDate() JavaScript function must be written and included in a JavaScript file.
function dateBox($field, $size, $value = '', $label = '', $formName = '', $javaScript = '')
|