dt_widget_month_names (public, deprecated)

 dt_widget_month_names name [ selected_month ]

Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl

Deprecated. Invoking this procedure generates a warning.

DEPRECATED: modern HTML5 feature make this widget less relevant. It is also cumbersome to style and localize.

Parameters:
name (required)
selected_month (optional, defaults to "0")
Returns:
a select widget for months of the year.
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 dt_widget_datetime dt_widget_datetime (public, deprecated) dt_widget_month_names dt_widget_month_names dt_widget_datetime->dt_widget_month_names ad_log_deprecated ad_log_deprecated (public) dt_widget_month_names->ad_log_deprecated dt_month_names dt_month_names (public) dt_widget_month_names->dt_month_names

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc dt_widget_month_names
    if {$selected_month eq ""} {set selected_month 0}
    if {![string is integer $selected_month]} {error "selected_month must be integer"}
    set month_names [dt_month_names]
    set input       "<option value=_undef>---------"
    incr selected_month -1

    for {set i 0} {$i < 12} {incr i} {
        append input "<option [expr {$i == $selected_month ? "selected" : ""}] value=[expr {$i+1}]>[lindex $month_names $i]\n"
    }

    return "<select name=\"$name\">\n $input \n </select>\n"
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-datetime/tcl/acs-datetime-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: