123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?php
- return array
- (
- # 表名
- 'name' => 'page',
- # 显示给用户看的名称
- 'lang' => '章节管理',
- # 是否显示在后台菜单
- 'order' => 1,
- 'menu' => false,
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- 'order' => 'asc',
- 'list' => true,
- ),
- 'info_id' => array
- (
- 'type' => 'int-11',
- 'name' => '合集',
- 'default' => '',
- 'desc' => '合集',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'value' => Dever::input('search_option_info_id')
- ),
- 'year' => array
- (
- 'type' => 'int-11',
- 'name' => '年份-影响时光板块的内容选择',
- 'default' => '',
- 'desc' => '年份',
- 'match' => 'is_numeric',
- 'update' => 'year',
- 'search' => 'text',
- 'order' => 'desc',
- 'list' => true,
- ),
- 'name' => array
- (
- 'type' => 'varchar-150',
- 'name' => '章节名称',
- 'default' => '',
- 'desc' => '章节名称',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- 'edit' => true,
- ),
- 'page_id' => array
- (
- 'type' => 'int-11',
- 'name' => '上级章节',
- 'default' => '-1',
- 'desc' => '请选择上级章节',
- 'match' => 'is_numeric',
- 'update' => 'hidden',
- 'value' => Dever::input('option_page_id', -1),
- 'list' => '{page_id} > 0 ? Dever::load("collection/page-one#name", {page_id}) : "主章节"',
- ),
- '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,
- 'order' => 'asc',
- //'search' => 'date',
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
- ),
- ),
- 'manage' => array
- (
- # 列表页的类型
- 'list_type' => 'tree',
- 'list_button' => array
- (
- 'update' => '编辑',
- 'add' => array('新增子章节', '"{page_id}" == -1 ? "page&option_page_id={id}" : "page&option_page_id={page_id},{id}"', '{page_id} == -1'),
- 'list' => array('内容管理', '"content&search_option_info_id={info_id}&send_page_id={id}&oper_table=page&top_table=info&top_project=collection&page_type=1"' , '{page_id} > 0'),
- 'delete' => '删除',
- ),
- ),
- 'request' => array
- (
- 'child' => array
- (
- 'option' => array
- (
- 'state' => 1,
- 'page_id' => array(1, '>='),
- 'info_id' => 'yes',
- 'year' => 'yes',
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'asc', 'id' => 'asc'),
- 'col' => '*',
- ),
-
- 'main' => array
- (
- 'option' => array
- (
- 'state' => 1,
- 'page_id' => -1,
- 'info_id' => 'yes',
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'asc', 'id' => 'asc'),
- 'col' => '*',
- ),
- )
- );
|