123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <?php
- $type = array
- (
- 'cate' => '集合',
- 'community' => '社区',
- 'shop' => '商城',
- 'times' => '时光',
- //'jump' => '穿越',
- //'befall' => '降临',
- //'music' => '音乐',
- //'ranking' => '排行',
- 'my' => '个人',
- 'share' => '分享',
- 'return' => '返回',
- );
- $status = array
- (
- 1 => '开启',
- 2 => '关闭',
- );
- $times_set = array
- (
- 1 => '否',
- 2 => '是',
- );
- $direction = array
- (
- 'left' => '左侧展开',
- //'right' => '右侧展开',
- 'down' => '从下方展开',
- );
- return array
- (
- # 表名
- 'name' => 'function',
- # 显示给用户看的名称
- 'lang' => '功能设置',
- 'menu' => false,
- 'check' => 'info_id,type',
- # 数据结构
- 'struct' => array
- (
-
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'search' => 'order',
- 'update' => 'hidden',
- //'list' => true,
- ),
- 'info_id' => array
- (
- 'type' => 'int-11',
- 'name' => '合集',
- 'default' => '',
- 'desc' => '合集',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'value' => Dever::input('search_option_info_id')
- ),
- 'name' => array
- (
- 'type' => 'varchar-80',
- 'name' => '功能名称',
- 'default' => '',
- 'desc' => '功能名称',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'status' => array
- (
- 'type' => 'int-11',
- 'name' => '功能状态',
- 'default' => '1',
- 'desc' => '功能状态',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $status,
- 'list' => true,
- 'edit' => true,
- ),
- 'type' => array
- (
- 'type' => 'varchar-20',
- 'name' => '功能类型',
- 'default' => 'cate',
- 'desc' => '功能类型',
- 'match' => 'is_string',
- 'update' => 'radio',
- 'option' => $type,
- 'list' => true,
- 'control' => 'type',
- ),
- 'times_set' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '时光对应-如果选择是,则切换时光时,将自动进入当前正在浏览的相同的页号,要求所有时光下的内容页数必须相同,否则进入第一页。',
- 'default' => '1',
- 'desc' => '时光对应',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $times_set,
- 'show' => 'type=times',
- ),
- 'color' => array
- (
- 'type' => 'varchar-10',
- 'name' => '文字颜色-默认为白色',
- 'default' => '#ffffff',
- 'desc' => '文字颜色',
- 'match' => 'is_string',
- 'update' => 'color',
- ),
- 'bgcolor' => array
- (
- 'type' => 'varchar-10',
- 'name' => '背景颜色-默认为蓝色',
- 'default' => '#16C2C2',
- 'desc' => '背景颜色',
- 'match' => 'is_string',
- 'update' => 'color',
- ),
- 'width' => array
- (
- 'type' => 'varchar-10',
- 'name' => '页面展开的宽度-宽度是百分比,直接输入百分比的值,如80',
- 'default' => '86',
- 'desc' => '页面展开的宽度',
- 'match' => 'is_string',
- //'update' => 'text',
- ),
- 'direction' => array
- (
- 'type' => 'varchar-10',
- 'name' => '页面展开方式',
- 'default' => 'down',
- 'desc' => '页面展开方式',
- 'match' => 'is_string',
- 'update' => 'radio',
- 'option' => $direction,
- ),
- 'reorder' => array
- (
- 'type' => 'int-11',
- 'name' => '排序(数值越大越靠前)',
- 'default' => '1',
- 'desc' => '请输入排序',
- 'match' => 'option',
- //'update' => 'text',
- 'search' => 'order',
- 'list' => true,
- 'order' => 'desc',
- 'edit' => true,
- ),
- 'state' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '状态',
- 'default' => '1',
- 'desc' => '请选择状态',
- 'match' => 'is_numeric',
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '创建时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
- # 只有insert时才生效
- 'insert' => true,
- 'search' => 'date',
- //'list' => 'date("Y-m-d H:i:s", {cdate})',
- ),
- ),
- 'manage' => array
- (
- //'delete' => false,
- # 列表 商城要加入选品列表
- 'list_button' => array
- (
- 'list' => array('商品管理', '"product&search_option_info_id={info_id}&oper_table=function&top_table=info&top_project=collection"' , '"{type}" == "shop"'),
- 'fast' => array('社区管理', '"community&search_option_info_id={info_id}&oper_table=function&top_table=info&top_project=collection&where_id={id}"' , '"{type}" == "community"'),
- ),
- ),
- 'request' => array
- (
- 'getAll' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'info_id' => 'yes',
- 'state' => 1,
- 'status' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
- 'col' => '*',
- ),
- ),
- );
|