|
@@ -0,0 +1,95 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+|--------------------------------------------------------------------------
|
|
|
+| attr.php 分类属性关联表
|
|
|
+|--------------------------------------------------------------------------
|
|
|
+*/
|
|
|
+$menu = false;
|
|
|
+if (Dever::project('attr')) {
|
|
|
+ $menu = 'category';
|
|
|
+}
|
|
|
+$attr = function()
|
|
|
+{
|
|
|
+ $auth = Dever::load('attr/api.get', false);
|
|
|
+ return $auth;
|
|
|
+};
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'attr',
|
|
|
+
|
|
|
+ 'lang' => '分类属性设置',
|
|
|
+ 'order' => 100,
|
|
|
+ 'menu' => $menu,
|
|
|
+ 'check' => 'category',
|
|
|
+
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'category' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '分类',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '该分类下已有属性设置',
|
|
|
+ 'match' => 'is_string',
|
|
|
+
|
|
|
+ 'update' => 'linkage',
|
|
|
+ 'option' => Dever::url('api.get', 'category'),
|
|
|
+ 'list' => 'Dever::load("category/api.string", "{category}")',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'attr' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-800',
|
|
|
+ 'name' => '属性设置',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '属性设置',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'checkbox',
|
|
|
+ 'option' => $attr,
|
|
|
+ 'update_input' => '',
|
|
|
+ 'update_input_default' => '',
|
|
|
+ 'update_parent' => 'checkbox',
|
|
|
+ 'list' => 'Dever::load("attr/api.string", "{attr}", "{attr_input}")',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'attr_input' => array
|
|
|
+ (
|
|
|
+ 'type' => 'text-255',
|
|
|
+ 'name' => '属性值设置',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '属性值设置',
|
|
|
+ 'match' => 'option',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'cdate' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '录入时间',
|
|
|
+ 'match' => array('is_numeric', DEVER_TIME),
|
|
|
+ 'desc' => '',
|
|
|
+
|
|
|
+ 'insert' => true,
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|