|
@@ -1,9 +1,9 @@
|
|
|
<?php
|
|
|
|
|
|
-$column = function()
|
|
|
+$project = function()
|
|
|
{
|
|
|
$array = array();
|
|
|
- $info = Dever::load('category/column-state');
|
|
|
+ $info = Dever::load('category/project-state');
|
|
|
if($info)
|
|
|
{
|
|
|
$array += $info;
|
|
@@ -86,16 +86,16 @@ return array
|
|
|
|
|
|
),
|
|
|
|
|
|
- 'column_id' => array
|
|
|
+ 'project_id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
- 'name' => '选择栏目',
|
|
|
- 'default' => Dever::input('option_column_id', 1),
|
|
|
- 'desc' => '选择栏目',
|
|
|
+ 'name' => '所属项目',
|
|
|
+ 'default' => Dever::input('option_project_id', 1),
|
|
|
+ 'desc' => '所属项目',
|
|
|
'match' => 'is_numeric',
|
|
|
'update' => 'select',
|
|
|
- 'option' => $column,
|
|
|
- 'list' => '{column_id} > 0 ? Dever::load("category/column-one#name", {column_id}) : "未选择"',
|
|
|
+ 'option' => $project,
|
|
|
+ 'list' => '{project_id} > 0 ? Dever::load("category/project-one#name", {project_id}) : "未选择"',
|
|
|
'edit' => true,
|
|
|
),
|
|
|
|
|
@@ -211,11 +211,15 @@ return array
|
|
|
|
|
|
'manage' => array
|
|
|
(
|
|
|
+ 'button' => array
|
|
|
+ (
|
|
|
+ '项目管理' => array('list', 'project&oper_parent=info&oper_project=category'),
|
|
|
+ ),
|
|
|
|
|
|
'list_type' => 'tree',
|
|
|
'list_button' => array
|
|
|
(
|
|
|
- 'add' => array('新增子分类', '"{info}" == -1 ? "info&option_info={id}&option_column_id={column_id}" : "info&option_info={info},{id}&option_column_id={column_id}"'),
|
|
|
+ 'add' => array('新增子分类', '"{info}" == -1 ? "info&option_info={id}&option_project_id={project_id}" : "info&option_info={info},{id}&option_project_id={project_id}"'),
|
|
|
),
|
|
|
),
|
|
|
|
|
@@ -227,7 +231,7 @@ return array
|
|
|
|
|
|
'option' => array
|
|
|
(
|
|
|
- 'column_id' => 'yes',
|
|
|
+ 'project_id' => 'yes',
|
|
|
'info_id' => -1,
|
|
|
'state' => 1,
|
|
|
),
|
|
@@ -241,7 +245,7 @@ return array
|
|
|
|
|
|
'option' => array
|
|
|
(
|
|
|
- 'column_id' => 'yes',
|
|
|
+ 'project_id' => 'yes',
|
|
|
'info_id' => 'yes',
|
|
|
'top_id' => 'yes',
|
|
|
'level' => 'yes',
|
|
@@ -260,7 +264,7 @@ return array
|
|
|
|
|
|
'option' => array
|
|
|
(
|
|
|
- 'column_id' => 'yes',
|
|
|
+ 'project_id' => 'yes',
|
|
|
'info_id' => 'yes',
|
|
|
'top_id' => 'yes',
|
|
|
'level' => 'yes',
|
|
@@ -279,7 +283,7 @@ return array
|
|
|
|
|
|
'option' => array
|
|
|
(
|
|
|
- 'column_id' => 'yes',
|
|
|
+ 'project_id' => 'yes',
|
|
|
'info_id' => 'yes',
|
|
|
'id' => array('yes', '!='),
|
|
|
'state' => 1,
|