| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 | 
							- <?php
 
- return array
 
- (
 
- 	# 表名
 
- 	'name' => 'page_module',
 
- 	# 显示给用户看的名称
 
- 	'lang' => '页面模块关联表',
 
- 	'menu' => false,
 
- 	# 数据结构
 
- 	'struct' => array
 
- 	(
 
- 		'id' 		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> 'ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '',
 
- 			'match' 	=> 'is_numeric',
 
- 			'search'	=> 'order',
 
- 			'list'		=> true,
 
- 		),
 
- 		
 
- 		'page_id'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '页面ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '页面ID',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'module_id'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '模块ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '模块ID',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		
 
- 		'cdate'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '录入时间',
 
- 			'match' 	=> array('is_numeric', DEVER_TIME),
 
- 			'desc' 		=> '',
 
- 			# 只有insert时才生效
 
- 			'insert'	=> true,
 
- 			'list'		=> 'date("Y-m-d H:i:s", {cdate})',
 
- 		),
 
- 	),
 
- 	'manage' => array
 
- 	(
 
- 		'lang' => 'name,desc',
 
- 	),
 
- 	# request 请求接口定义
 
- 	'request' => array
 
- 	(
 
- 		'getData' => array
 
- 	    (
 
- 	        'where' => array
 
- 	        (
 
- 	            'page_id' => 'yes-t_1.page_id',
 
- 	            'state' => 'yes-t_2.state-1',
 
- 	        ),
 
- 	        'join' => array
 
- 			(
 
- 				array
 
- 				(
 
- 					'table' => 'page/module',
 
- 					'type' => 'left join',
 
- 					'on' => array('module_id','id'),
 
- 					'col' => 't_1.id as tid',
 
- 				),
 
- 			),
 
- 	        'type' => 'all',
 
- 	        'order' => array('t_2.reorder' => 'asc', 't_2.id' => 'desc'),
 
- 			'col' => 'id,t_2.id,t_2.name,t_2.key,t_2.pic,t_2.desc,t_2.content,t_2.num,t_2.col|key',
 
- 	    ),
 
- 	)
 
- );
 
 
  |