extend/we/framework/functiontpl.func.php

Constants

TPL_INIT_CLOCK_TIME

TPL_INIT_CLOCK_TIME = 1

TPL_INIT_DATERANGE_DATE

TPL_INIT_DATERANGE_DATE = true

TPL_INIT_DATERANGE_TIME

TPL_INIT_DATERANGE_TIME = true

TPL_INIT_CALENDAR

TPL_INIT_CALENDAR = true

TPL_INIT_DISTRICT

TPL_INIT_DISTRICT = true

TPL_INIT_CATEGORY

TPL_INIT_CATEGORY = true

TPL_INIT_COORDINATE

TPL_INIT_COORDINATE = true

TPL_INIT_AVATAR

TPL_INIT_AVATAR = true

TPL_INIT_IMAGE

TPL_INIT_IMAGE = true

TPL_INIT_MULTI_IMAGE

TPL_INIT_MULTI_IMAGE = true

Functions

tpl_form_field_date()

tpl_form_field_date(  $name,   $value = '',   $withtime = false) 

Parameters

$name
$value
$withtime

tpl_form_field_clock()

tpl_form_field_clock(  $name,   $value = '') 

Parameters

$name
$value

tpl_form_field_daterange()

tpl_form_field_daterange(  $name,   $value = array(),   $time = false) 

Parameters

$name
$value
$time

tpl_form_field_calendar()

tpl_form_field_calendar(  $name,   $values = array()) 

Parameters

$name
$values

tpl_form_field_district()

tpl_form_field_district(  $name,   $values = array()) 

Parameters

$name
$values

tpl_form_field_category_2level()

tpl_form_field_category_2level(  $name,   $parents,   $children,   $parentid,   $childid) 

Parameters

$name
$parents
$children
$parentid
$childid

tpl_form_field_industry()

tpl_form_field_industry(  $name,   $pvalue = '',   $cvalue = '',   $parentid = 'industry_1',   $childid = 'industry_2') 

Parameters

$name
$pvalue
$cvalue
$parentid
$childid

tpl_form_field_coordinate()

tpl_form_field_coordinate(  $field,   $value = array()) 

Parameters

$field
$value

tpl_fans_form()

tpl_fans_form(  $field,   $value = '') 

Parameters

$field
$value

tpl_form_field_multi_image()

tpl_form_field_multi_image(\unknown  $name, array  $value = array(), array  $options = array()) : string

多图片上传

Parameters

\unknown $name
array $value
array $options

Returns

string

tpl_form_field_image()

tpl_form_field_image(  $name,   $value = '',   $default = '',   $options = array()) 

图片选择器

Parameters

$name
$value
$default
$options

tpl_ueditor()

tpl_ueditor(  $id,   $value = '',   $options = array()) 

富文本编辑器

Parameters

$id
$value
$options

tpl_form_field_audio()

tpl_form_field_audio(  $name,   $value = array(),   $options = array()) 

音频文件选择器

Parameters

$name
$value
$options

tpl_form_field_video()

tpl_form_field_video(  $name,   $value = '',   $options = array()) 

视频选择器

Parameters

$name
$value
$options