亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

direktori cari
Smarty模板編譯引擎 I.開始 第一章. 什么是Smarty? 第二章. 安裝 要求 基本安裝 擴(kuò)展設(shè)置 II.模板設(shè)計者篇 第三章.基本語法 注釋 函數(shù) 屬性 第四章.變量 從PHP分配的變量 Associative arrays Array indexes Objects 從配置文件讀取的變量 {$smarty}保留變量 Request variables {$smarty.now} {$smarty.const} {$smarty.capture} {$smarty.config} {$smarty.section} {$smarty.template} 第五章.變量調(diào)節(jié)器 capitalize count_characters cat count_paragraphs count_sentences count_words date_format default escape indent lower nl2br regex_replace replace spacify string_format strip strip_tags truncate upper wordwrap 第六章.組合修改器 第七章.內(nèi)建函數(shù) capture config_load foreach include include_php insert if ldelim literal php section index index_prev index_next iteration first last rownum loop show total strip 第八章.自定義函數(shù) assign counter cycle debug eval fetch html_checkboxes html_image html_options html_radios html_select_date html_select_time html_table math mailto popup_init popup textformat 第九章.配置文件 第十章.調(diào)試控制臺 III.模板程序員篇 第十一章 常量 SMARTY_DIR 第十二章 變量 $template_dir $compile_dir $config_dir $plugins_dir $debugging $debug_tpl $debugging_ctrl $global_assign $undefined $autoload_filters $compile_check $force_compile $caching $cache_dir $cache_lifetime $cache_handler_func $cache_modified_check $config_overwrite $config_booleanize $config_read_hidden $config_fix_newlines $default_template_handler_func $php_handling $security $secure_dir $security_settings $trusted_dir $left_delimiter $right_delimiter $compiler_class $request_vars_order $compile_id $use_sub_dirs $default_modifiers $default_resource_type 第十三章.方法 append append_by_ref assign assign_by_ref clear_all_assign clear_all_cache clear_assign clear_cache clear_compiled_tpl clear_config config_load display fetch get_config_vars get_registered_object get_template_vars is_cached load_filter register_block register_compiler_function register_function register_modifier register_object register_outputfilter register_postfilter register_prefilter register_resource trigger_error template_exists unregister_block unregister_compiler_function unregister_function unregister_modifier unregister_object unregister_outputfilter unregister_postfilter unregister_prefilter unregister_resource 第十四章.緩存 Setting Up Caching Multiple Caches Per Page Cache Groups Controlling Cacheability of Plugins' Output 第十五章.高級特點 Objects Prefilters Postfilters Output Filters Cache Handler Function Resources Templates from $template_dir Templates from any directory Templates from other sources Default template handler function 第十六章.以插件擴(kuò)展Smarty How Plugins Work Naming Conventions Writing Plugins Template Functions Modifiers Block Functions Compiler Functions Prefilters/Postfilters Output Filters Resources Inserts Ⅳ.高級特點 第十七章.疑難解答 Smarty/PHP errors 第18章.使用技巧和經(jīng)驗 Blank Variable Handling Default Variable Handling Passing variable title to header template Dates WAP/WML Componentized Templates Obfuscating E-mail Addresses 第十九章. 相關(guān)資源 第二十章. 漏洞
watak

html_select_date

Attribute Name Type Required Default Description
prefix string No Date_ what to prefix the var name with
time timestamp/YYYY-MM-DD No current time in unix timestamp or YYYY-MM-DD format what date/time to use
start_year string No current year the first year in the dropdown, either year number, or relative to current year (+/- N)
end_year string No same as start_year the last year in the dropdown, either year number, or relative to current year (+/- N)
display_days boolean No true whether to display days or not
display_months boolean No true whether to display months or not
display_years boolean No true whether to display years or not
month_format string No %B what format the month should be in (strftime)
day_format string No %02d what format the day output should be in (sprintf)
day_value_format string No %d what format the day value should be in (sprintf)
year_as_text boolean No false whether or not to display the year as text
reverse_years boolean No false display years in reverse order
field_array string No null if a name is given, the select boxes will be drawn such that the results will be returned to PHP in the form of name[Day], name[Year], name[Month].
day_size string No null adds size attribute to select tag if given
month_size string No null adds size attribute to select tag if given
year_size string No null adds size attribute to select tag if given
all_extra string No null adds extra attributes to all select/input tags if given
day_extra string No null adds extra attributes to select/input tags if given
month_extra string No null adds extra attributes to select/input tags if given
year_extra string No null adds extra attributes to select/input tags if given
field_order string No MDY the order in which to display the fields
field_separator string No \n string printed between different fields
month_value_format string No %m strftime format of the month values, default is %m for month numbers.

屬性 類型 是否必須 缺省值 描述
prefix string No Date_ 變量名稱前綴
time timestamp/YYYY-MM-DD No UNIX時間戳或年-月-日 使用時間類型(data/time)
start_year string No 年份或與當(dāng)前年份的相對值 下拉列表中第一個年份,或與當(dāng)前年份的相對值(正/負(fù) 幾年)
end_year string No 同start_year 下拉列表中最后一個年份,或與當(dāng)前年份的相對值(正/負(fù) 幾年)
display_days boolean No true 是否顯示天
display_months boolean No true 是否顯示月
display_years boolean No true 是否顯示年
month_format string No %B 月份的表示方法(strftime)
day_format string No %02d 天顯示的格式(sprintf)
day_value_format string No %d 天的表示方法(sprintf)
year_as_text boolean No false 是否以文本方式顯示年份
reverse_years boolean No false 逆序顯示年份
field_array string No null 如果指定了名稱,選定的區(qū)域?qū)⒁訹Day],[Year],[Month]的形式返回給PHP(待考)
day_size string No null 如果給定,為標(biāo)簽添加大小屬性
month_size string No null 如果給定,為標(biāo)簽添加大小屬性
year_size string No null 如果給定,為標(biāo)簽添加大小屬性
all_extra string No null 如果給定,為所有標(biāo)簽添加附加屬性
day_extra string No null 如果給定,為標(biāo)簽添加附加屬性
month_extra string No null 如果給定,為標(biāo)簽添加附加屬性
year_extra string No null 如果給定,為標(biāo)簽添加附加屬性
field_order string No MDY 顯示區(qū)域的順序
field_separator string No \n 各區(qū)域間輸出的分隔字符串
month_value_format string No %m 月份值的strftime表示方法,默認(rèn)為 %m

html_select_date is a custom function that creates date dropdowns for you. It can display any or all of year, month, and day.

自定義函數(shù) html_select_date 用于創(chuàng)建日期下拉菜單. 它可以顯示任意年月日.

Example 8-10. html_select_date
例 8-10. html_select_date 函數(shù)演示

{html_select_date}


OUTPUT:

<select name="Date_Month">
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12" selected>December</option>
</select>
<select name="Date_Day">
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13" selected>13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="Date_Year">
<option value="2001" selected>2001</option>
</select>

Example 8-11. html_select_date
例 8-11. html_select_date 函數(shù)演示

{* start and end year can be relative to current year *}
{html_select_date prefix="StartDate" time=$time start_year="-5" end_year="+1" display_days=false}

OUTPUT: (current year is 2000)

<select name="StartDateMonth">
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12" selected>December</option>
</select>
<select name="StartDateYear">
<option value="1999">1995</option>
<option value="1999">1996</option>
<option value="1999">1997</option>
<option value="1999">1998</option>
<option value="1999">1999</option>
<option value="2000" selected>2000</option>
<option value="2001">2001</option>
</select>
Artikel sebelumnya: Artikel seterusnya: