v1/Crm/Extend/smarty/pluginsfunction.html_select_date.php

Smarty plugin

Functions

smarty_function_html_select_date()

smarty_function_html_select_date(  $params,   $smarty) : string

Smarty {html_select_date} plugin

Type: function
Name: html_select_date
Purpose: Prints the dropdowns for date selection.

ChangeLog:

  • 1.0 initial release
  • 1.1 added support for +/- N syntax for begin and end year values. (Monte)
  • 1.2 added support for yyyy-mm-dd syntax for time value. (Jan Rosier)
  • 1.3 added support for choosing format for month values (Gary Loescher)
  • 1.3.1 added support for choosing format for day values (Marcus Bointon)
  • 1.3.2 support negative timestamps, force year dropdown to include given date unless explicitly set (Monte)
  • 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that of 0000-00-00 dates (cybot, boots)

Parameters

$params
$smarty

Returns

string