| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 | 
							- <?php
 
- return array
 
- (
 
- 	# 表名
 
- 	'name' => 'action',
 
- 	# 显示给用户看的名称
 
- 	'lang' => '用户行为配置',
 
- 	'order' => 10,
 
- 	'check' => 'key',
 
- 	# 数据结构
 
- 	'struct' => array
 
- 	(
 
- 		'id' 		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> 'ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '',
 
- 			'match' 	=> 'is_numeric',
 
- 		),
 
- 		
 
- 		'name'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-80',
 
- 			'name' 		=> '行为名称',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '请输入行为名称',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'search'	=> 'fulltext',
 
- 			'list'		=> true,
 
- 		),
 
- 		'key'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-80',
 
- 			'name' 		=> '行为标识-用于程序中统计积分总数',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '行为标识',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'search'	=> 'fulltext',
 
- 			'list'		=> 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,
 
- 		),
 
- 	),
 
- 	'manage' => array
 
- 	(
 
- 		'delete' => false,
 
- 		'edit' => false,
 
- 		# 列表
 
- 		'list_button' => array
 
- 		(
 
- 			'list' => array('行为日志', '"action_log&search_option_action_id={id}&oper_parent=action"'),
 
- 		),
 
- 	),
 
- );
 
 
  |