status; $type = array ( 1 => '进入合集', 2 => '购买门票', 3 => '查看排行榜', 10 => '链接', ); return array ( # 表名 'name' => 'button', # 显示给用户看的名称 'lang' => '首页按钮配置', 'order' => 100, 'menu' => false, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', //'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, ), 'type' => array ( 'type' => 'int-11', 'name' => '类型', 'default' => '1', 'desc' => '类型', 'match' => 'is_numeric', 'update' => 'select', 'option' => $type, 'search' => 'select', 'list' => true, //'edit' => true, 'control' => 'type', ), 'link' => array ( 'type' => 'varchar-150', 'name' => '链接', 'default' => '', 'desc' => '链接', 'match' => 'option', 'update' => 'text', 'show' => 'type=10', ), 'info' => array ( 'type' => 'varchar-80', 'name' => '介绍', 'default' => '', 'desc' => '介绍', 'match' => 'option', 'update' => 'text', //'search' => 'fulltext', ), 'icon' => array ( 'type' => 'varchar-150', 'name' => '图标-图片尺寸150*150px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式', 'default' => '', 'desc' => '图标', 'match' => 'option', 'update' => 'image', 'key' => '1', 'place' => '150*150', ), 'reorder' => array ( 'type' => 'int-11', 'name' => '排序(数值越小越靠前)', 'default' => '1', 'desc' => '请输入排序', 'match' => 'option', 'update' => 'text', 'search' => 'order', 'list_name' => '排序', 'list' => true, 'order' => 'asc', '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 ( ), 'request' => array ( 'getAll' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'info_id' => 'yes', 'state' => 1, ), 'type' => 'all', 'order' => array('reorder' => 'asc', 'id' => 'desc'), 'col' => '*', ), ), );