'集合', 'community' => '社区', 'shop' => '商城', 'times' => '时光', //'jump' => '穿越', //'befall' => '降临', //'music' => '音乐', //'ranking' => '排行', ); $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', //'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, ), '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' => 'left', '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 ( ), ), 'request' => array ( 'getAll' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'info_id' => 'yes', 'state' => 1, 'status' => 1, ), 'type' => 'all', 'order' => array('reorder' => 'desc', 'id' => 'desc'), 'col' => '*', ), ), );