<?php

/*
	[SupeSite] (C) 2007-2009 Comsenz Inc.
	$Id: model_field.inc.php 10898 2008-12-31 02:58:50Z zhaofei $
*/

//系统字段
$systemfieldarr = array(
		'0'	=>	array(
					'fieldname'	=>	'itemid',
					'fieldcomment'	=>	$alang['information_id'],
					'fieldtype'	=>	'MEDIUMINT',
					'fieldlength'	=>	'8',
					'fielddefault'	=>	$alang['since_the_increase'],
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'1',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'1'	=>	array(
					'fieldname'	=>	'catid',
					'fieldcomment'	=>	$alang['information_type_id'],
					'fieldtype'	=>	'SMALLINT',
					'fieldlength'	=>	'6',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'1',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'1',
					'allowpost'	=>	'1',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'1',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'2'	=>	array(
					'fieldname'	=>	'uid',
					'fieldcomment'	=>	$lang['users_uid'],
					'fieldtype'	=>	'MEDIUMINT',
					'fieldlength'	=>	'8',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'1',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'3'	=>	array(
					'fieldname'	=>	'tid',
					'fieldcomment'	=>	$alang['introduction_forum_message_id'],
					'fieldtype'	=>	'MEDIUMINT',
					'fieldlength'	=>	'8',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'4'	=>	array(
					'fieldname'	=>	'username',
					'fieldcomment'	=>	$alang['spaces_username'],
					'fieldtype'	=>	'CHAR',
					'fieldlength'	=>	'15',
					'fielddefault'	=>	'',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'5'	=>	array(
					'fieldname'	=>	'subject',
					'fieldcomment'	=>	$alang['information_title'],
					'fieldtype'	=>	'CHAR',
					'fieldlength'	=>	'80',
					'fielddefault'	=>	'',
					'formtype'	=>	'text',
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'1',
					'allowsearch'	=>	'1',
					'allowpost'	=>	'1',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'1',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'6'	=>	array(
					'fieldname'	=>	'subjectimage',
					'fieldcomment'	=>	$alang['subject_pic'],
					'fieldtype'	=>	'CHAR',
					'fieldlength'	=>	'80',
					'fielddefault'	=>	'',
					'formtype'	=>	'file',
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'1',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'1',
					'isflash'	=>	'0'
				),
		'7'	=>	array(
					'fieldname'	=>	'rates',
					'fieldcomment'	=>	$alang['score'],
					'fieldtype'	=>	'SMALLINT',
					'fieldlength'	=>	'6',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'8'	=>	array(
					'fieldname'	=>	'dateline',
					'fieldcomment'	=>	$alang['add_time'],
					'fieldtype'	=>	'INT',
					'fieldlength'	=>	'10',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'1',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'9'	=>	array(
					'fieldname'	=>	'lastpost',
					'fieldcomment'	=>	$alang['last_reply_time'],
					'fieldtype'	=>	'INT',
					'fieldlength'	=>	'10',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'10'	=>	array(
					'fieldname'	=>	'viewnum',
					'fieldcomment'	=>	$alang['space_order_viewnum'],
					'fieldtype'	=>	'MEDIUMINT',
					'fieldlength'	=>	'8',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'11'	=>	array(
					'fieldname'	=>	'replynum',
					'fieldcomment'	=>	$alang['space_order_replynum'],
					'fieldtype'	=>	'MEDIUMINT',
					'fieldlength'	=>	'8',
					'fielddefault'	=>	'0',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'12'	=>	array(
					'fieldname'	=>	'allowreply',
					'fieldcomment'	=>	$alang['whether_to_allow_return'],
					'fieldtype'	=>	'TINYINT',
					'fieldlength'	=>	'1',
					'fielddefault'	=>	'0',
					'formtype'	=>	'radio',
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'1',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'13'	=>	array(
					'fieldname'	=>	'grade',
					'fieldcomment'	=>	$alang['block_spaceitem_title_grade'],
					'fieldtype'	=>	'TINYINT',
					'fieldlength'	=>	'1',
					'fielddefault'	=>	'0',
					'formtype'	=>	'select',
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'1',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'14'	=>	array(
					'fieldname'	=>	'nid',
					'fieldcomment'	=>	$alang['news_id'],
					'fieldtype'	=>	'MEDIUMINT',
					'fieldlength'	=>	'8',
					'fielddefault'	=>	$alang['since_the_increase'],
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'1',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'0',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'15'	=>	array(
					'fieldname'	=>	'postip',
					'fieldcomment'	=>	$alang['published_ip'],
					'fieldtype'	=>	'VARCHAR',
					'fieldlength'	=>	'15',
					'fielddefault'	=>	'',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'0',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'16'	=>	array(
					'fieldname'	=>	'relativeitemids',
					'fieldcomment'	=>	$alang['related_information'],
					'fieldtype'	=>	'VARCHAR',
					'fieldlength'	=>	'255',
					'fielddefault'	=>	'',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'0',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'0',
					'isfixed'	=>	'0',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				),
		'17'	=>	array(
					'fieldname'	=>	'message',
					'fieldcomment'	=>	$alang['robot_robot_text'],
					'fieldtype'	=>	'TEXT',
					'fieldlength'	=>	'0',
					'fielddefault'	=>	'',
					'formtype'	=>	$alang['check_type'],
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'1',
					'isfixed'	=>	'0',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				)
	);

//内置字段模版
$simplefieldarr = array(
		'1'	=>	array(
					'id'	=>	'1',
					'fieldname'	=>	'author',
					'fieldcomment'	=>	$alang['space_order_uid'],
					'fieldtype'	=>	'CHAR',
					'fieldlength'	=>	'20',
					'fielddefault'	=>	'admin',
					'formtype'	=>	'text',
					'fielddata'	=>	'',
					'displayorder'	=>	'0',
					'allowindex'	=>	'0',
					'allowshow'	=>	'1',
					'allowlist'	=>	'0',
					'allowsearch'	=>	'0',
					'allowpost'	=>	'1',
					'isfixed'	=>	'1',
					'isbbcode'	=>	'0',
					'ishtml'	=>	'0',
					'isrequired'	=>	'0',
					'isfile'	=>	'0',
					'isimage'	=>	'0',
					'isflash'	=>	'0'
				)
	);
?>