| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 | 
							- <?php
 
- return array
 
- (
 
- 	# 表名
 
- 	'name' => 'ranking',
 
- 	# 显示给用户看的名称
 
- 	'lang' => '积分榜单',
 
- 	# 是否显示在后台菜单
 
- 	'order' => 1,
 
- 	# 数据结构
 
- 	'struct' => array
 
- 	(
 
- 		'id' 		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> 'ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '',
 
- 			'match' 	=> 'is_numeric',
 
- 			'list'		=> true,
 
- 		),
 
- 		'user_id'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '用户参与id',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '用户参与id',
 
- 			'match' 	=> 'is_numeric',
 
- 			//'list'		=> true,
 
- 		),
 
- 		'uid'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '用户',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '用户',
 
- 			'match' 	=> 'is_numeric',
 
- 			'list'		=> true,
 
- 		),
 
- 		'score'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '本次分数',
 
- 			'default' 	=> '0',
 
- 			'desc' 		=> '本次分数',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'order'		=> 'desc',
 
- 			'list'		=> true,
 
- 		),
 
- 		'times'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '本次答题次数',
 
- 			'default' 	=> '0',
 
- 			'desc' 		=> '本次答题次数',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'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' 		=> '',
 
- 			'search'	=> 'date',
 
- 			'order'		=> 'desc',
 
- 			'list'		=> 'date("Y-m-d H:i:s", {cdate})',
 
- 		),
 
- 	),
 
- 	'manage' => array
 
- 	(
 
- 		'insert' => false,
 
- 		'edit' => false,
 
- 		'delete' => false,
 
- 	),
 
- 	'request' => array
 
- 	(
 
- 		
 
- 	)
 
- );
 
 
  |