application/admincommon.php

Functions

build_select()

build_select(string  $name, mixed  $options, mixed  $selected = array(), mixed  $attr = array()) : string

生成下拉列表

Parameters

string $name
mixed $options
mixed $selected
mixed $attr

Returns

string

build_radios()

build_radios(string  $name, array  $list = array(), mixed  $selected = null) : string

生成单选按钮组

Parameters

string $name
array $list
mixed $selected

Returns

string

build_checkboxs()

build_checkboxs(string  $name, array  $list = array(), mixed  $selected = null) : string

生成复选按钮组

Parameters

string $name
array $list
mixed $selected

Returns

string

build_category_select()

build_category_select(string  $name, string  $type, mixed  $selected = null, array  $attr = array(),   $header = array()) : string

生成分类下拉列表框

Parameters

string $name
string $type
mixed $selected
array $attr
$header

Returns

string

build_toolbar()

build_toolbar(array  $btns = NULL, array  $attr = array()) : string

生成表格操作按钮栏

Parameters

array $btns

按钮组

array $attr

按钮属性值

Returns

string

build_heading()

build_heading(string  $path = NULL,   $container = TRUE) : string

生成页面Heading

Parameters

string $path

指定的path

$container

Returns

string