html_select_date
属性:
prefix,每个select的name属性值的前缀,默认为Date_
time,显示的类型
start_year,相对于现在年份的相对年份,+/-年数,也就是下拉列表第一个年份
end_year,相对于现在年份的相对年份,+/-年数,也就是下拉列表最后一个年份
display_years,是否显示年
display_months,是否显示月
display_days,是否显示天
month_format,月的显示方法,%m,数字的月份,默认=%B(英文简写),参考PHP中的strftime
day_format,天的显示方法,参考PHP中的sprintf
day_value_format,天的显示方法,sprintf
month_value_format,月的显示方式,strftime
year_as_text,是否以文本的形式显示年份,默认为false,如果为真,显示为input type=text
reverse_years,是否倒序显示年份
field_array,如果指定了名称,选定的区域将以[Day],[Year],[Month]的形式返回给PHP
day_size,为day标签加大小属性,天 在下拉列表框中显示的个数
month_size,为year标签加大小属性,月 在下拉列表框中显示的个数
year_size,为year标签加大小属性,年 在下拉列表框中显示的个数、
all_extra,为所有的标签加属性,eg,all_extra=’class=”date”‘,为所有select加class=date
day_extra,为day标签加属性
month_extra,为month标签加属性
year_extra,为year标签加属性
field_oreder,年月日显示的顺序,默认为MDY
field_separator,年月日后面的分隔符
实例:
html_select_time
参数名称 类型 必选参数 默认值 说明
prefix string No Time_ 下拉框名称的前缀
time 时间戳, DateTime, mysql时间戳或任何strtotime() 能支持的字符串,或者是数组(当设置了field_array) No 当前 时间戳 默认选中的时间。如果提供了数组,那么field_array和prefix属性将单独作用在每个数组元素上, 包括小时、分钟、秒数和上下午。
display_hours boolean No TRUE 是否显示小时数
display_minutes boolean No TRUE 是否显示分钟数
display_seconds boolean No TRUE 是否显示秒数
display_meridian boolean No TRUE 是否显示上下午 (am/pm)
use_24_hours boolean No TRUE 是否使用24小时格式的时间
minute_interval integer No 1 分钟下拉框的时间间隔
second_interval integer No 1 秒数下拉框的时间间隔
hour_format string No %02d 小时的格式(sprintf)
hour_value_format string No %20d 小时值的格式(sprintf)
minute_format string No %02d 分钟的格式(sprintf)
minute_value_format string No %20d 分钟值的格式(sprintf)
second_format string No %02d 秒数的格式(sprintf)
second_value_format string No %20d 秒数值的格式(sprintf)
field_array string No n/a 显示值数组的名称
all_extra string No null 附加给select/input标签附加的属性
hour_extra string No null 附加给小时下拉框select/input标签的属性
minute_extra string No null 附加给分钟下拉框select/input标签的属性
second_extra string No null 附加给秒数下拉框select/input标签的属性
meridian_extra string No null 附加给上下午下拉框select/input标签的属性
field_separator string No \n 显示在各字段之间间隔的字符串
option_separator string No \n 显示在各选项之间的字符串
all_id string No null 全部select/input标签的ID值
hour_id string No null 小时下拉框select/input标签的ID值
minute_id string No null 分钟下拉框select/input标签的ID值
second_id string No null 秒数下拉框select/input标签的ID值
meridian_id string No null 上下午下拉框select/input标签的ID值
all_empty string No null 该属性可以在每个下拉框的第一行显示文字,并以“”作为它的值。 在需要让下拉框的第一行显示“请选择” 的情况下比较有用。
hour_empty string No null 该属性可以在小时下拉框的第一行显示文字,并以“”作为它的值。 在需要让小时下拉框的第一行显示“请选择小时” 的情况下比较有用。
minute_empty string No null 该属性可以在分钟下拉框的第一行显示文字,并以“”作为它的值。 在需要让分钟下拉框的第一行显示“请选择分钟” 的情况下比较有用。
second_empty string No null 该属性可以在秒数下拉框的第一行显示文字,并以“”作为它的值。 在需要让秒数下拉框的第一行显示“请选择秒数” 的情况下比较有用。
meridian_empty string No null 该属性可以在上下午下拉框的第一行显示文字,并以“”作为它的值。 在需要让上下午下拉框的第一行显示“请选择上午或下午” 的情况下比较有用。