|
@@ -1,357 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-$audit = Dever::config('base')->audit;
|
|
|
-
|
|
|
-$status = Dever::config('base')->status;
|
|
|
-
|
|
|
-$config = array
|
|
|
-(
|
|
|
-
|
|
|
- 'name' => 'info',
|
|
|
-
|
|
|
- 'lang' => '商品列表',
|
|
|
- 'order' => 200,
|
|
|
- 'auto' => 10000000,
|
|
|
-
|
|
|
- 'end' => array
|
|
|
- (
|
|
|
- 'insert' => 'goods/lib/manage.infoUpdate',
|
|
|
- 'update' => 'goods/lib/manage.infoUpdate',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'sync' => array
|
|
|
- (
|
|
|
- 'goods/info_category' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'where' => array('info_id', 'id'),
|
|
|
-
|
|
|
- 'update' => array('category_id' => 'category'),
|
|
|
-
|
|
|
- 'type' => 'delete',
|
|
|
- )
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'struct' => array
|
|
|
- (
|
|
|
- 'id' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => 'ID',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '',
|
|
|
- 'match' => 'is_numeric',
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
- 'name' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-800',
|
|
|
- 'name' => '标题',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '标题',
|
|
|
- 'match' => 'is_string',
|
|
|
- 'update' => 'textarea',
|
|
|
- 'search' => 'fulltext',
|
|
|
-
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
- 'category' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-500',
|
|
|
- 'name' => '分类',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '分类',
|
|
|
- 'match' => 'is_string',
|
|
|
- 'search' => 'linkage',
|
|
|
- 'update' => 'linkage',
|
|
|
- 'option' => Dever::url('api.get', 'category'),
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'top_category_id' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '顶级分类ID-顶级分类,用于分类查询',
|
|
|
- 'default' => '-1',
|
|
|
- 'desc' => '顶级分类ID',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- ),
|
|
|
-
|
|
|
- 'second_category_id' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '二级分类ID-二级分类,用于分类查询',
|
|
|
- 'default' => '-1',
|
|
|
- 'desc' => '二级分类ID',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- ),
|
|
|
-
|
|
|
- 'category_id' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '子分类ID-最后一个级别的分类,用于分类查询',
|
|
|
- 'default' => '-1',
|
|
|
- 'desc' => '子分类ID',
|
|
|
- 'match' => 'is_numeric',
|
|
|
- ),
|
|
|
-
|
|
|
- 'pic_cover' => array
|
|
|
- (
|
|
|
- 'type' => 'varchar-150',
|
|
|
- 'name' => '封面图-图片尺寸300*300px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '封面图',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'image',
|
|
|
- 'key' => '1',
|
|
|
- 'place' => '150',
|
|
|
- 'list_name' => '资源详情',
|
|
|
- 'list' => 'Dever::load("res/lib/manage.info", "{id}")',
|
|
|
- ),
|
|
|
-
|
|
|
- 'pic' => array
|
|
|
- (
|
|
|
- 'type' => 'text-255',
|
|
|
- 'name' => '多张图片-图片尺寸随意,一般为用户上传,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '多张图片',
|
|
|
- 'match' => 'option',
|
|
|
- 'update' => 'images',
|
|
|
- 'key' => '1',
|
|
|
- ),
|
|
|
-
|
|
|
- 'num_view' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '阅读数',
|
|
|
- 'default' => '0',
|
|
|
- 'desc' => '请填写阅读数',
|
|
|
- 'match' => 'option',
|
|
|
- 'search' => 'order',
|
|
|
- 'list' => '{num_view}+{num_add_view}',
|
|
|
- ),
|
|
|
-
|
|
|
- 'num_add_view' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '阅读数基数',
|
|
|
- 'default' => '0',
|
|
|
- 'desc' => '阅读数基数',
|
|
|
- 'match' => 'option',
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
- 'audit' => array
|
|
|
- (
|
|
|
- 'type' => 'tinyint-1',
|
|
|
- 'name' => '审核',
|
|
|
- 'default' => '2',
|
|
|
- 'desc' => '审核',
|
|
|
- 'match' => 'is_numeric',
|
|
|
-
|
|
|
- 'option' => $audit,
|
|
|
- 'search' => 'select',
|
|
|
- 'list' => true,
|
|
|
- 'edit' => true,
|
|
|
- ),
|
|
|
-
|
|
|
- 'status' => array
|
|
|
- (
|
|
|
- 'type' => 'tinyint-1',
|
|
|
- 'name' => '状态',
|
|
|
- 'default' => '1',
|
|
|
- 'desc' => '状态',
|
|
|
- 'match' => 'is_numeric',
|
|
|
-
|
|
|
- 'option' => $status,
|
|
|
- 'search' => 'select',
|
|
|
- 'list' => true,
|
|
|
- 'edit' => true,
|
|
|
- ),
|
|
|
-
|
|
|
- 'reorder' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '排序-数值越大越靠前,相当于置顶',
|
|
|
- 'default' => '1',
|
|
|
- 'desc' => '请输入排序',
|
|
|
- 'match' => 'option',
|
|
|
-
|
|
|
- 'search' => 'order',
|
|
|
- 'list' => true,
|
|
|
- 'order' => 'desc',
|
|
|
- 'edit' => true,
|
|
|
- ),
|
|
|
-
|
|
|
- 'udate' => array
|
|
|
- (
|
|
|
- 'type' => 'int-11',
|
|
|
- 'name' => '更新时间',
|
|
|
- 'match' => array('is_numeric', time()),
|
|
|
- 'desc' => '',
|
|
|
- ),
|
|
|
-
|
|
|
- 'content' => array
|
|
|
- (
|
|
|
- 'type' => 'text-800',
|
|
|
- 'name' => '内容',
|
|
|
- 'default' => '',
|
|
|
- 'desc' => '内容',
|
|
|
- 'match' => 'is_string',
|
|
|
-
|
|
|
- 'key' => '1',
|
|
|
- ),
|
|
|
-
|
|
|
- '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',
|
|
|
-
|
|
|
- ),
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'index' => array
|
|
|
- (
|
|
|
- 1 => array
|
|
|
- (
|
|
|
- 'search' => 'uid,category,top_category_id,second_category_id,category_id',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'version' => 1,
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'manage' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'res' => array
|
|
|
- (
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'mul' => true,
|
|
|
-
|
|
|
- 'button' => array
|
|
|
- (
|
|
|
-
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'list_button' => array
|
|
|
- (
|
|
|
- 'add' => array('属性设置', '"info_attr
|
|
|
- &project=res
|
|
|
- &search_option_info_id={id}
|
|
|
- &search_option_category={category}
|
|
|
- &oper_parent=info&oper_project=res
|
|
|
- &oper_save_jump=info
|
|
|
- &where_id={id}"'),
|
|
|
- 'br1' => array('<br />'),
|
|
|
- 'delete' => '删除',
|
|
|
- ),
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'request' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'search' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'ids' => array('yes-id', 'in'),
|
|
|
- 'name' => array('yes', 'like'),
|
|
|
- 'id' => 'yes',
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
|
|
|
- 'limit' => '0,1000',
|
|
|
- 'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'getAll' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'audit' => 2,
|
|
|
- 'category' => array('yes', 'like'),
|
|
|
- 'top_category_id' => 'yes',
|
|
|
- 'second_category_id' => 'yes',
|
|
|
- 'category_id' => 'yes',
|
|
|
-
|
|
|
-
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
|
|
|
- 'limit' => '0,10',
|
|
|
-
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'getPageAll' => array
|
|
|
- (
|
|
|
-
|
|
|
- 'option' => array
|
|
|
- (
|
|
|
- 'uid' => 'yes',
|
|
|
- 'name' => array('yes', 'like'),
|
|
|
- 'audit' => 2,
|
|
|
- 'category' => array('yes', 'like'),
|
|
|
- 'top_category_id' => 'yes',
|
|
|
- 'second_category_id' => 'yes',
|
|
|
- 'category_id' => 'yes',
|
|
|
-
|
|
|
-
|
|
|
- 'state' => 1,
|
|
|
- ),
|
|
|
- 'type' => 'all',
|
|
|
- 'order' => array('reorder' => 'desc', 'id' => 'desc'),
|
|
|
- 'page' => array(10, 'list'),
|
|
|
- 'col' => '*',
|
|
|
- ),
|
|
|
-
|
|
|
-
|
|
|
- 'addView' => array
|
|
|
- (
|
|
|
- 'type' => 'update',
|
|
|
- 'where' => array
|
|
|
- (
|
|
|
- 'id' => 'yes',
|
|
|
- ),
|
|
|
- 'set' => array
|
|
|
- (
|
|
|
- 'num_view' => array('1', '+='),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
-);
|
|
|
-
|
|
|
-return $config;
|