|
@@ -1,6 +1,6 @@
|
|
|
<?php
|
|
|
|
|
|
-$times_id = Dever::input('option_times_id', -1);
|
|
|
+$parent_id = Dever::input('option_parent_id', -1);
|
|
|
return array
|
|
|
(
|
|
|
|
|
@@ -65,9 +65,9 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '年份',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'year',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'year',
|
|
|
'search' => 'text',
|
|
|
- 'order' => 'desc',
|
|
|
+
|
|
|
'list' => true,
|
|
|
),
|
|
|
|
|
@@ -78,13 +78,13 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '年份',
|
|
|
'match' => 'option',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'year',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'year',
|
|
|
'search' => 'text',
|
|
|
'order' => 'desc',
|
|
|
'list' => true,
|
|
|
),
|
|
|
|
|
|
- 'times_id' => array
|
|
|
+ 'parent_id' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|
|
|
'name' => '上级时光',
|
|
@@ -92,8 +92,8 @@ return array
|
|
|
'desc' => '请选择上级时光',
|
|
|
'match' => 'is_numeric',
|
|
|
'update' => 'hidden',
|
|
|
- 'value' => $times_id,
|
|
|
- 'list' => '{times_id} > 0 ? Dever::load("collection/times-one#name", {times_id}) : "主时间线"',
|
|
|
+ 'value' => $parent_id,
|
|
|
+ 'list' => '{parent_id} > 0 ? Dever::load("collection/times-one#name", {parent_id}) : "主时间线"',
|
|
|
),
|
|
|
|
|
|
'icon' => array
|
|
@@ -103,7 +103,7 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '时光图标',
|
|
|
'match' => 'option',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'image',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'image',
|
|
|
'key' => '1',
|
|
|
'place' => '80*80',
|
|
|
),
|
|
@@ -115,7 +115,7 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '图片',
|
|
|
'match' => 'option',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'image',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'image',
|
|
|
'key' => '1',
|
|
|
'place' => '330*330',
|
|
|
),
|
|
@@ -127,7 +127,7 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '描述',
|
|
|
'match' => 'option',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'text',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'text',
|
|
|
|
|
|
),
|
|
|
|
|
@@ -138,7 +138,7 @@ return array
|
|
|
'default' => '#ffffff',
|
|
|
'desc' => '文字颜色',
|
|
|
'match' => 'is_string',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'color',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'color',
|
|
|
),
|
|
|
|
|
|
'bgcolor' => array
|
|
@@ -148,7 +148,7 @@ return array
|
|
|
'default' => '#cccccc',
|
|
|
'desc' => '背景颜色',
|
|
|
'match' => 'is_string',
|
|
|
- 'update' => $times_id < 0 ? 'hidden': 'color',
|
|
|
+ 'update' => $parent_id < 0 ? 'hidden': 'color',
|
|
|
),
|
|
|
|
|
|
'reorder' => array
|
|
@@ -195,8 +195,10 @@ return array
|
|
|
'list_type' => 'tree',
|
|
|
'list_button' => array
|
|
|
(
|
|
|
- 'update' => array('编辑', 'times&option_times_id={times_id}'),
|
|
|
- 'add' => array('新增时间线', '"{times_id}" == -1 ? "times&option_times_id={id}" : "times&option_times_id={times_id},{id}"', '{times_id} == -1'),
|
|
|
+ 'update' => array('编辑', 'times&option_parent_id={parent_id}'),
|
|
|
+ 'add' => array('新增时间线', '"{parent_id}" == -1 ? "times&option_parent_id={id}" : "times&option_parent_id={parent_id},{id}"', '{parent_id} == -1'),
|
|
|
+
|
|
|
+ 'list5' => array('章节', '"page&search_option_info_id={info_id}&search_option_times_id_parent={times_id}&search_option_times_id={id}&oper_table=times&top_table=info"' , '{parent_id} > 0'),
|
|
|
'delete' => '删除',
|
|
|
),
|
|
|
),
|
|
@@ -208,7 +210,7 @@ return array
|
|
|
'option' => array
|
|
|
(
|
|
|
'state' => 1,
|
|
|
- 'times_id' => 'yes',
|
|
|
+ 'parent_id' => 'yes',
|
|
|
'info_id' => 'yes',
|
|
|
),
|
|
|
'type' => 'all',
|
|
@@ -221,7 +223,7 @@ return array
|
|
|
'option' => array
|
|
|
(
|
|
|
'state' => 1,
|
|
|
- 'times_id' => -1,
|
|
|
+ 'parent_id' => -1,
|
|
|
'info_id' => 'yes',
|
|
|
),
|
|
|
'type' => 'all',
|
|
@@ -234,7 +236,7 @@ return array
|
|
|
'option' => array
|
|
|
(
|
|
|
'state' => 1,
|
|
|
- 'times_id' => -1,
|
|
|
+ 'parent_id' => -1,
|
|
|
'info_id' => 'yes',
|
|
|
),
|
|
|
'type' => 'all',
|
|
@@ -247,13 +249,13 @@ return array
|
|
|
(
|
|
|
'option' => array
|
|
|
(
|
|
|
- 'times_id' => array(1, '>='),
|
|
|
+ 'parent_id' => array(1, '>='),
|
|
|
'info_id' => 'yes',
|
|
|
'state' => 1,
|
|
|
),
|
|
|
'type' => 'all',
|
|
|
'order' => array('year' => 'asc', 'reorder' => 'asc', 'id' => 'asc'),
|
|
|
- 'col' => '*|times_id|id|',
|
|
|
+ 'col' => '*|parent_id|id|',
|
|
|
),
|
|
|
|
|
|
'getNew' => array
|
|
@@ -261,7 +263,7 @@ return array
|
|
|
'option' => array
|
|
|
(
|
|
|
'state' => 1,
|
|
|
- 'times_id' => array(1, '>='),
|
|
|
+ 'parent_id' => array(1, '>='),
|
|
|
'year' => 'yes',
|
|
|
'info_id' => 'yes',
|
|
|
),
|