|
@@ -0,0 +1,200 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$type = array
|
|
|
+(
|
|
|
+ 'cate' => '集合',
|
|
|
+ 'community' => '社区',
|
|
|
+ 'shop' => '商城',
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+);
|
|
|
+
|
|
|
+$status = array
|
|
|
+(
|
|
|
+ 1 => '开启',
|
|
|
+ 2 => '关闭',
|
|
|
+);
|
|
|
+
|
|
|
+$direction = array
|
|
|
+(
|
|
|
+ 'left' => '左侧展开',
|
|
|
+);
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'function',
|
|
|
+
|
|
|
+ 'lang' => '功能设置',
|
|
|
+ 'menu' => false,
|
|
|
+ 'check' => 'type',
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'update' => 'hidden',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ '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,
|
|
|
+ ),
|
|
|
+
|
|
|
+ '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' => '页面展开的宽度',
|
|
|
+ 'default' => '86%',
|
|
|
+ 'desc' => '页面展开的宽度',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'direction' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-10',
|
|
|
+ 'name' => '页面展开方式',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '页面展开方式',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $direction,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'reorder' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '排序(数值越大越靠前)',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请输入排序',
|
|
|
+ 'match' => 'option',
|
|
|
+
|
|
|
+ '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' => true,
|
|
|
+ 'search' => 'date',
|
|
|
+
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+
|
|
|
+ 'list_button' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+ 'getAll' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'info_id' => 'yes',
|
|
|
+ 'state' => 1,
|
|
|
+ 'status' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'order' => array('reorder' => 'desc', 'id' => 'desc'),
|
|
|
+ 'col' => '*',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+);
|