| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | <?php$seller = function(){	return Dever::db('code/seller')->state();};return array(	# 表名	'name' => 'config',	# 显示给用户看的名称	'lang' => '新增兑换码',	'order' => 1,	'menu' => false,	'end' => array	(		'update' => 'code/lib/manage.create',		'insert' => 'code/lib/manage.create',	),	# 数据结构	'struct' => array	(		'id' 		=> array		(			'type' 		=> 'int-11',			'name' 		=> '系统ID',			'default' 	=> '',			'desc' 		=> '',			'match' 	=> 'is_numeric',			'value'		=> Dever::input('where_id'),		),				'product_id'     => array        (            'type'      => 'int-11',            'name'      => '选择小刊',            'default'   => '',            'desc'      => '选择小刊',            'match'     => 'option',            'update'    => 'select',            'update_search' => 'journal/lib/manage.search_journal',        ),        'seller_id'     => array        (            'type'      => 'int-11',            'name'      => '选择销售商',            'default'   => '1',            'desc'      => '选择销售商',            'match'     => 'option',            'update'    => 'select',          	'option'	=> $seller,        ),				'num'		=> array		(			'type' 		=> 'varchar-32',			'name' 		=> '兑换码数量',			'default' 	=> '',			'desc' 		=> '请输入兑换码数量',			'match' 	=> 'is_string',			'update'	=> 'text',			'value'		=> '',		),		'product_num'		=> array		(			'type' 		=> 'varchar-32',			'name' 		=> '兑换本数',			'default' 	=> '1',			'desc' 		=> '兑换本数',			'match' 	=> 'is_string',			'update'	=> 'text',		),		'cdate'		=> array		(			'type' 		=> 'int-11',			'name' 		=> '录入时间',			'match' 	=> array('is_numeric', time()),			'desc' 		=> '',			# 只有insert时才生效			'insert'	=> true,		),	),	'manage' => array	(		# 后台管理不要列表页		'list' => 'update',	),);
 |