if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_2floorlevel]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_2floorlevel]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_2house]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_2house]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_2infotype]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_2infotype]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_2roomtype]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_2roomtype]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_ad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_ad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_ad_hits]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_ad_hits]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_admin]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_admin]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_agent]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_agent]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_agent_commen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_agent_commen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_area]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_area]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_article]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_article]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_basket]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_basket]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_cart]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_cart]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_category]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_category]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_city]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_city]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_commen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_commen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_contributors]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_contributors]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_dbimport]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_dbimport]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_download_file]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_download_file]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_download_server]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_download_server]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_download_soft]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_download_soft]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_fields]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_fields]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_flink]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_flink]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_function]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_function]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_gather]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_gather]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_gatherhis]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_gatherhis]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_gbook]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_gbook]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_industry]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_industry]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_info]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_info]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_keywords]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_keywords]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_label]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_label]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_ad]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_ad]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_area]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_area]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_commen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_commen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_hisprice]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_hisprice]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_hx]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_hx]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_photo]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_photo]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_lp_type]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_lp_type]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member_commen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member_commen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member_e]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member_e]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member_job]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member_job]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member_news]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member_news]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member_p]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member_p]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_member_products]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_member_products]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_module]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_module]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_newspaper]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_newspaper]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_newspaper_ban]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_newspaper_ban]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_newspaper_items]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_newspaper_items]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_payhis]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_payhis]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_post]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_post]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_province]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_province]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_pubserver]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_pubserver]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_role]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_role]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_shop]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_shop]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_shop_commen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_shop_commen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_shop_team]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_shop_team]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_slide]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_slide]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_source]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_source]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_special]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_special]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_tag_article]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_tag_article]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_tags]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_tags]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_team]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_team]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_template]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_template]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_video]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_video]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_video_commen]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_video_commen]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_vote]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_vote]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_voteitem]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_voteitem]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_wenda]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_wenda]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t_wenda_catalog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[t_wenda_catalog]
GO

CREATE TABLE [dbo].[t_2floorlevel] (
	[id] [int] NOT NULL ,
	[title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_2house] (
	[id] [int] NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[InfoTypeId] [int] NOT NULL ,
	[AreaId] [int] NOT NULL ,
	[RoomTypeId] [int] NOT NULL ,
	[FloorLevelId] [int] NOT NULL ,
	[Acreage] [float] NOT NULL ,
	[Price] [float] NOT NULL ,
	[PriceUnit] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ContactMan] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ContactType] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[OtherDes] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsCheck] [int] NOT NULL ,
	[UserIp] [varchar] (64) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModiTime] [datetime] NOT NULL ,
	[Hits] [int] NOT NULL ,
	[HouseType] [int] NULL ,
	[DelPass] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SexDemond] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[MapX] [int] NULL ,
	[MapY] [int] NULL ,
	[MapZ] [int] NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Bus] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsRecommend] [tinyint] NULL ,
	[PubBy] [tinyint] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_2infotype] (
	[id] [int] NOT NULL ,
	[title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_2roomtype] (
	[id] [int] NOT NULL ,
	[title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_ad] (
	[id] [int] NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[Title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[AdType] [int] NOT NULL ,
	[ExpiresTime] [datetime] NOT NULL ,
	[ModiTime] [datetime] NOT NULL ,
	[Hits] [int] NULL ,
	[EffectId] [int] NULL ,
	[LinkUrl] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_ad_hits] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[AdId] [int] NOT NULL ,
	[ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL ,
	[Area] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_admin] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[UserName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PassWord] [varchar] (32) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[LoginNum] [int] NOT NULL ,
	[IsLock] [tinyint] NOT NULL ,
	[RoleId] [int] NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_agent] (
	[id] [int] NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[UserName] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[UserPass] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Area] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [varchar] (70) COLLATE Chinese_PRC_CI_AS NULL ,
	[Tel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Fax] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[QQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Announce] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[Hits] [int] NOT NULL ,
	[IsCheck] [tinyint] NOT NULL ,
	[IsLock] [tinyint] NOT NULL ,
	[JoinDate] [datetime] NOT NULL ,
	[LastIp] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[SortId] [int] NOT NULL ,
	[InfoNum] [int] NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[LastLoginDate] [datetime] NULL ,
	[LoginNum] [int] NULL ,
	[IsRecommend] [tinyint] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_agent_commen] (
	[id] [int] NOT NULL ,
	[AgentId] [int] NOT NULL ,
	[UserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PubDate] [datetime] NOT NULL ,
	[PubIp] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Reply] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_area] (
	[id] [int] NOT NULL ,
	[Title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Pid] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_article] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[SubHeading] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[TitleColor] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[KeyWords] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[RelateKey] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[RelateNum] [int] NOT NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsOutLink] [tinyint] NOT NULL ,
	[OutLinkUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[ChannelId] [int] NULL ,
	[ParentId] [int] NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[TemplateId] [int] NOT NULL ,
	[SpecialId] [int] NOT NULL ,
	[Top1] [tinyint] NOT NULL ,
	[ToTop] [tinyint] NOT NULL ,
	[ToHot] [tinyint] NOT NULL ,
	[Recommend] [tinyint] NOT NULL ,
	[Images] [tinyint] NOT NULL ,
	[IsSlide] [tinyint] NOT NULL ,
	[Checked] [tinyint] NOT NULL ,
	[Author] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SourceFrom] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Editor] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Hits] [int] NOT NULL ,
	[SavePath] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Summary] [nvarchar] (555) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL ,
	[SortId] [int] NOT NULL ,
	[ModDate] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Tags] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_basket] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[SessionId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ContactName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Mobile] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Tel] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Postcode] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PayType] [int] NULL ,
	[Price] [decimal](18, 2) NOT NULL ,
	[Nums] [int] NOT NULL ,
	[Freight] [decimal](18, 2) NULL ,
	[Discount] [decimal](18, 2) NULL ,
	[Weight] [decimal](18, 2) NULL ,
	[PayStatus] [tinyint] NOT NULL ,
	[SendStatus] [tinyint] NULL ,
	[ExpressNo] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[InvoiceTitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OrderDate] [datetime] NULL ,
	[SendDate] [datetime] NULL ,
	[School] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_cart] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[BasketId] [int] NOT NULL ,
	[SessionId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GoodsId] [int] NOT NULL ,
	[GoodsTitle] [nvarchar] (70) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Photo] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Price] [decimal](18, 2) NOT NULL ,
	[Discount] [decimal](18, 0) NULL ,
	[Nums] [int] NOT NULL ,
	[Weight] [decimal](18, 2) NULL ,
	[IsOrder] [tinyint] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_category] (
	[id] [int] NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Template] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[SavePath] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ParentId] [int] NOT NULL ,
	[IsChannel] [int] NOT NULL ,
	[LinkUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Desrb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Keywords] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[SortNum] [int] NOT NULL ,
	[ModiTime] [datetime] NULL ,
	[ShowTemplateId] [int] NULL ,
	[AllowContributor] [int] NULL ,
	[DataModule] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_city] (
	[ZID] [nvarchar] (6) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ZUP] [nvarchar] (3) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZName] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZPostCode] [nvarchar] (6) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_commen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[ArticleId] [int] NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[Author] [varchar] (30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Ip] [varchar] (36) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[IsCheck] [tinyint] NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_contributors] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Author] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SourceFrom] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[IsCheck] [int] NOT NULL ,
	[PubDate] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_dbimport] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[db_type] [int] NOT NULL ,
	[db_driver] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_host] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_name] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_username] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_password] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_table] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_key] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_order] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[db_sql] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[categoryid] [int] NOT NULL ,
	[templateid] [int] NOT NULL ,
	[default_status] [int] NOT NULL ,
	[fields_map] [text] COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_download_file] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[SoftId] [int] NOT NULL ,
	[Title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[FileUrl] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ServerId] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_download_server] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Url] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Active] [tinyint] NULL ,
	[Demons] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_download_soft] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[CatalogId] [int] NOT NULL ,
	[SoftName] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[SoftChar] [char] (1) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftKey] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftVersion] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftLanguage] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftLicense] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftAttr] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftSize] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftStars] [int] NULL ,
	[SoftOs] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftAuthor] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftAuthorUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftDemoUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftPhoto] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftDesc] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftDemons] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SoftRecommend] [tinyint] NULL ,
	[SoftTop] [tinyint] NULL ,
	[InsertDate] [datetime] NULL ,
	[ModifyDate] [datetime] NULL ,
	[SoftHits] [int] NULL ,
	[SoftSort] [int] NOT NULL ,
	[IsCheck] [tinyint] NOT NULL ,
	[IsNeedLogin] [tinyint] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_fields] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[DataModule] [int] NOT NULL ,
	[FieldName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[FieldTitle] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[FieldType] [int] NOT NULL ,
	[FieldLen] [int] NOT NULL ,
	[FormType] [int] NOT NULL ,
	[FormText] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[FormDefault] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsBindTable] [int] NULL ,
	[BindPara] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShowInList] [int] NULL ,
	[SysFields] [tinyint] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_flink] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Url] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Logo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[SortId] [int] NOT NULL ,
	[LinkType] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_function] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Demons] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_gather] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Url] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Encode] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ParentId] [int] NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[TemplateId] [int] NOT NULL ,
	[ListLabelStart] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ListLabelEnd] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ReplaceUrl] [tinyint] NOT NULL ,
	[UrlFrom] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[UrlTo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReplaceStr] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PageSplitSet] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PageStart] [int] NULL ,
	[PageEnd] [int] NULL ,
	[TitleStart] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[TitleEnd] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ContentStart] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ContentEnd] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[AuthorStart] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[AuthorEnd] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[FromStart] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[FromEnd] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShowUrlStart] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShowUrlEnd] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_gatherhis] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Url] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_gbook] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[ObjId] [int] NOT NULL ,
	[TypeId] [int] NOT NULL ,
	[Author] [varchar] (30) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Ip] [varchar] (64) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_industry] (
	[id] [int] NOT NULL ,
	[Pid] [int] NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_info] (
	[id] [int] NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[InfoTypeId] [int] NOT NULL ,
	[ParentId] [int] NULL ,
	[CatalogId] [int] NOT NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Price] [decimal](18, 2) NOT NULL ,
	[Province] [int] NULL ,
	[City] [int] NULL ,
	[Area] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[ContactMan] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[QQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Tel] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Demons] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL ,
	[ExpireDate] [datetime] NULL ,
	[PubIp] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Hits] [int] NULL ,
	[IsCheck] [tinyint] NULL ,
	[IsDel] [tinyint] NULL ,
	[IsHot] [tinyint] NULL ,
	[IsTop] [tinyint] NULL ,
	[DelPass] [varchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[SavePath] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[HomePage] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Color] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Score] [int] NULL ,
	[ScoreEndDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_keywords] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Url] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_label] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Demons] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp] (
	[id] [int] NOT NULL ,
	[LpTypeId] [int] NOT NULL ,
	[LpAreaId] [int] NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_jzlb] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_minprice] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_price] [int] NULL ,
	[f_maxprice] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_zxqk] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_jtwz] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_kpsj] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_rzsj] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_jylb] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_fkfs] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wydz] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_qclx] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_xsxk] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_kfs] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_sldz] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_sldh] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_desc] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_zdmj] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_jzmj] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_lhl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_rjl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_dt] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_cw] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_wygs] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_wyf] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_zfs] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_wy_sgjd] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_ptss_zb] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[f_ptss_jc] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[f_date] [datetime] NOT NULL ,
	[f_hits] [int] NOT NULL ,
	[f_sort] [int] NOT NULL ,
	[f_type_title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_area_title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_recommend] [tinyint] NULL ,
	[f_date_modify] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_price_unit] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_traffic_pic] [varchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_mapx] [int] NULL ,
	[f_mapy] [int] NULL ,
	[f_mapz] [int] NULL ,
	[f_bbsurl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_char] [char] (1) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_ad] (
	[id] [int] NOT NULL ,
	[f_lptypeid] [int] NOT NULL ,
	[f_positionid] [int] NOT NULL ,
	[f_adtype] [int] NOT NULL ,
	[f_title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_src] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_width] [int] NULL ,
	[f_height] [int] NULL ,
	[f_url] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[f_date] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_area] (
	[id] [int] NOT NULL ,
	[title] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_commen] (
	[id] [int] NOT NULL ,
	[lp_id] [int] NULL ,
	[f_content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[f_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_sex] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_tel_office] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_tel_home] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_mobile] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_email] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_address] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_postcode] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_date] [datetime] NULL ,
	[f_ip] [varchar] (20) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_hisprice] (
	[id] [int] NOT NULL ,
	[lp_id] [int] NOT NULL ,
	[f_date] [datetime] NULL ,
	[f_price] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_desc] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[f_price_desc] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_hx] (
	[id] [int] NOT NULL ,
	[lp_id] [int] NOT NULL ,
	[f_title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_desc] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_photo] (
	[id] [int] NOT NULL ,
	[lp_id] [int] NOT NULL ,
	[f_title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_desc] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_lp_type] (
	[id] [int] NOT NULL ,
	[title] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[UserType] [int] NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[UserPass] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PassAsk] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PassAnswer] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Email] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[RegIp] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[RegDate] [datetime] NULL ,
	[LoginNum] [int] NULL ,
	[LastLoginIp] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[LastLoginDate] [datetime] NULL ,
	[IsLocked] [tinyint] NULL ,
	[Score] [int] NULL ,
	[IsCheck] [tinyint] NULL ,
	[UserLevel] [int] NULL ,
	[Balance] [decimal](10, 2) NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member_commen] (
	[id] [int] NOT NULL ,
	[MemberId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Reply] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL ,
	[Ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member_e] (
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Email] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[UserName] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ParentId] [int] NULL ,
	[IndustryId] [int] NOT NULL ,
	[ComType] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[CreateDate] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ContactMan] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Province] [int] NULL ,
	[City] [int] NULL ,
	[BusinessScope] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Tel] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Fax] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Mobile] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[QQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[HomePage] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[PostCode] [varchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Demons] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ModDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member_job] (
	[id] [int] NOT NULL ,
	[MemberId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Xueli] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Pnum] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Gzjy] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Area] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sexs] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Ages] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Salary] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member_news] (
	[id] [int] NOT NULL ,
	[MemberId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member_p] (
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Email] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[UserName] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[IdCard] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[BornDate] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sex] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[Age] [int] NULL ,
	[Province] [int] NULL ,
	[City] [int] NULL ,
	[Education] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Profession] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[InCome] [varchar] (150) COLLATE Chinese_PRC_CI_AS NULL ,
	[Tel] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Mobile] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[QQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MSN] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[HomePage] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[PostCode] [varchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Demons] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_member_products] (
	[id] [int] NOT NULL ,
	[MemberId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Types] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Price] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Guige] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_module] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[TableName] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Pid] [int] NULL ,
	[ListFields] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_newspaper] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL ,
	[ZhongQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DiQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_newspaper_ban] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[PaperId] [int] NOT NULL ,
	[ClassTitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Photo] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_newspaper_items] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[BanId] [int] NOT NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[LinkUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_payhis] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PayTo] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Money] [decimal](18, 2) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PayType] [int] NOT NULL ,
	[PubDate] [datetime] NOT NULL ,
	[Demons] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_post] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[f_user] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_reply] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_emot] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_homepage] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_email] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[f_im] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_ip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[f_date] [datetime] NOT NULL ,
	[f_replytime] [datetime] NULL ,
	[f_hidden] [tinyint] NULL ,
	[f_ischeck] [tinyint] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_province] (
	[ZID] [nvarchar] (3) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ZName] [nvarchar] (4) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZSName] [nvarchar] (2) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZLName] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZMainCity] [nvarchar] (6) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZProvinceType] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_pubserver] (
	[id] [int] NOT NULL ,
	[Title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PlayUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[DownUrl] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Demons] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_role] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[RoleName] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Privilege] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL ,
	[Catalogs] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_shop] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ViewImg] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[ChannelId] [int] NULL ,
	[ParentId] [int] NULL ,
	[CategoryId] [int] NOT NULL ,
	[Price] [numeric](18, 2) NULL ,
	[Discount] [numeric](18, 2) NULL ,
	[Stars] [int] NULL ,
	[Nums] [int] NULL ,
	[Author] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Press] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Banchi] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PageNum] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZiNum] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PrintDate] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Kaiben] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Paper] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[YinChi] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Isbn] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Package] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[EditorRm] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[AuthorDesc] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[Directory] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ModDate] [datetime] NULL ,
	[Hits] [int] NULL ,
	[IsRem] [tinyint] NULL ,
	[IsTop] [tinyint] NULL ,
	[IsHot] [tinyint] NULL ,
	[Weight] [decimal](18, 2) NULL ,
	[Subject] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MPrice] [decimal](18, 0) NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_shop_commen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[GoodsId] [int] NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Stars] [int] NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Reply] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_shop_team] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[TeamId] [int] NULL ,
	[ShopId] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_slide] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[CategoryId] [int] NOT NULL ,
	[ItemNum] [int] NOT NULL ,
	[Width] [int] NOT NULL ,
	[Height] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_source] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (200) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Stype] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_special] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Template] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[SavePath] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_tag_article] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[ArticleId] [int] NOT NULL ,
	[TagId] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_tags] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Weight] [int] NOT NULL ,
	[Hits] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_team] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[School] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ViewImg] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Price] [decimal](18, 2) NULL ,
	[MPrice] [decimal](18, 0) NULL ,
	[ModDate] [datetime] NULL ,
	[Hits] [int] NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_template] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_video] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[Title] [varchar] (150) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ViewImg] [varchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[ParentId] [int] NULL ,
	[CategoryId] [int] NOT NULL ,
	[NeedMoney] [numeric](18, 2) NULL ,
	[Fdesc] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Vurl] [text] COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModiTime] [datetime] NOT NULL ,
	[IsFree] [tinyint] NOT NULL ,
	[Author] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[VideoLen] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsRecommend] [int] NULL ,
	[JoinNum] [int] NULL ,
	[Hits] [int] NULL ,
	[Fcontent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[PubServerId] [int] NOT NULL ,
	[IsCheck] [tinyint] NULL ,
	[UserId] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsGuestPub] [tinyint] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_video_commen] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[ObjId] [int] NOT NULL ,
	[Author] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Ip] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsRecommend] [tinyint] NULL ,
	[ModiTime] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_vote] (
	[id] [int] NOT NULL ,
	[Title] [varchar] (100) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[OptionNum] [int] NOT NULL ,
	[OptionType] [tinyint] NOT NULL ,
	[Status] [tinyint] NOT NULL ,
	[ExpiresTime] [datetime] NOT NULL ,
	[ModiTime] [datetime] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_voteitem] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[VoteId] [int] NOT NULL ,
	[ItemName] [varchar] (250) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Hits] [int] NOT NULL 
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_wenda] (
	[id] [int] NOT NULL ,
	[CatalogId] [int] NULL ,
	[UserId] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Status] [int] NULL ,
	[PubIp] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PubDate] [smalldatetime] NULL ,
	[IsRem] [int] NULL ,
	[IsHot] [int] NULL ,
	[Hits] [int] NULL ,
	[LastReply] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReplyNum] [int] NULL ,
	[IsCheck] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO

CREATE TABLE [dbo].[t_wenda_catalog] (
	[id] [int] NOT NULL ,
	[Title] [nvarchar] (250) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[t_ad] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_ad] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_ad_hits] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_ad_hits] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_admin] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_admin] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_area] WITH NOCHECK ADD 
	CONSTRAINT [PK_pre_common_district] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_article] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_article] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_basket] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_basket] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_cart] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_cart] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_category] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_category] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_commen] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_commen] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_contributors] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_contributors] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_dbimport] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_dbimport] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_download_file] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_download_file] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_download_server] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_download_server] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_download_soft] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_download_soft] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_fields] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_fields] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_flink] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_flink] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_function] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_function] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_gather] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_gather] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_gatherhis] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_gatherhis] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_gbook] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_gbook] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_industry] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_industry] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_keywords] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_keywords] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_label] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_label] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_member] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_member] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_member_e] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_member_e] PRIMARY KEY  CLUSTERED 
	(
		[UserId]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_member_p] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_member_p] PRIMARY KEY  CLUSTERED 
	(
		[UserId]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_module] WITH NOCHECK ADD 
	 PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_newspaper] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_newspaper] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_newspaper_ban] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_newspaper_ban] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_newspaper_items] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_newspaper_items] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_payhis] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_payhis] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_post] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_post] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_pubserver] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_pubserver] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_role] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_role] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_shop] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_shop] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_shop_commen] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_shop_commen] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_shop_team] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_shop_team] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_slide] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_slide] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_source] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_source] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_special] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_special] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_tag_article] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_tag_article] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_tags] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_tags] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_team] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_team] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_template] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_template] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_video] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_video] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_video_commen] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_video_commen] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_vote] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_vote] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_voteitem] WITH NOCHECK ADD 
	CONSTRAINT [PK_t_voteitem] PRIMARY KEY  CLUSTERED 
	(
		[id]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_ad] ADD 
	CONSTRAINT [DF_t_ad_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_ad_AdType] DEFAULT (0) FOR [AdType],
	CONSTRAINT [DF_t_ad_ExpiresTime] DEFAULT (getdate()) FOR [ExpiresTime],
	CONSTRAINT [DF_t_ad_ModiTime] DEFAULT (getdate()) FOR [ModiTime],
	CONSTRAINT [DF__t_ad__Hits__477199F1] DEFAULT (0) FOR [Hits],
	CONSTRAINT [DF__t_ad__EffectId__4865BE2A] DEFAULT (0) FOR [EffectId],
	CONSTRAINT [DF__t_ad__LinkUrl__4959E263] DEFAULT (0) FOR [LinkUrl]
GO

ALTER TABLE [dbo].[t_ad_hits] ADD 
	CONSTRAINT [DF_t_ad_hits_AdId] DEFAULT (0) FOR [AdId]
GO

ALTER TABLE [dbo].[t_admin] ADD 
	CONSTRAINT [DF_t_admin_LoginNum] DEFAULT (0) FOR [LoginNum],
	CONSTRAINT [DF_t_admin_IsLock] DEFAULT (0) FOR [IsLock],
	CONSTRAINT [DF_t_admin_RoleId] DEFAULT (0) FOR [RoleId],
	CONSTRAINT [DF_t_admin_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_article] ADD 
	CONSTRAINT [DF_t_article_RelateNum] DEFAULT (10) FOR [RelateNum],
	CONSTRAINT [DF_t_article_IsOutLink] DEFAULT (0) FOR [IsOutLink],
	CONSTRAINT [DF_t_article_ChannelId] DEFAULT (0) FOR [ChannelId],
	CONSTRAINT [DF_t_article_ParentId] DEFAULT (0) FOR [ParentId],
	CONSTRAINT [DF_t_article_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_article_TemplateId] DEFAULT (0) FOR [TemplateId],
	CONSTRAINT [DF_t_article_SpecialId] DEFAULT (0) FOR [SpecialId],
	CONSTRAINT [DF_t_article_Top1] DEFAULT (0) FOR [Top1],
	CONSTRAINT [DF_t_article_ToTop] DEFAULT (0) FOR [ToTop],
	CONSTRAINT [DF_t_article_ToHot] DEFAULT (0) FOR [ToHot],
	CONSTRAINT [DF_t_article_Recommend] DEFAULT (0) FOR [Recommend],
	CONSTRAINT [DF_t_article_Images] DEFAULT (0) FOR [Images],
	CONSTRAINT [DF_t_article_IsSlide] DEFAULT (0) FOR [IsSlide],
	CONSTRAINT [DF_t_article_Checked] DEFAULT (0) FOR [Checked],
	CONSTRAINT [DF_t_article_Hits] DEFAULT (0) FOR [Hits],
	CONSTRAINT [DF_t_article_ModiTime] DEFAULT (getdate()) FOR [ModiTime],
	CONSTRAINT [DF_t_article_SortId] DEFAULT (0) FOR [SortId]
GO

 CREATE  INDEX [IX_t_article] ON [dbo].[t_article]([CategoryId]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_t_article_1] ON [dbo].[t_article]([Checked]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_t_article_2] ON [dbo].[t_article]([ModiTime]) ON [PRIMARY]
GO

ALTER TABLE [dbo].[t_basket] ADD 
	CONSTRAINT [DF_t_basket_PayType] DEFAULT (0) FOR [PayType],
	CONSTRAINT [DF_t_basket_Pirce] DEFAULT (0.00) FOR [Price],
	CONSTRAINT [DF_t_basket_Nums] DEFAULT (0) FOR [Nums],
	CONSTRAINT [DF_t_basket_Freight] DEFAULT (0.00) FOR [Freight],
	CONSTRAINT [DF_t_basket_Discount] DEFAULT (0.00) FOR [Discount],
	CONSTRAINT [DF_t_basket_Weight] DEFAULT (0.00) FOR [Weight],
	CONSTRAINT [DF_t_basket_PayStatus] DEFAULT (0) FOR [PayStatus],
	CONSTRAINT [DF_t_basket_SendStatus] DEFAULT (0) FOR [SendStatus]
GO

ALTER TABLE [dbo].[t_cart] ADD 
	CONSTRAINT [DF_t_cart_BasketId] DEFAULT (0) FOR [BasketId],
	CONSTRAINT [DF_t_cart_Price] DEFAULT (0.00) FOR [Price],
	CONSTRAINT [DF_t_cart_Discount] DEFAULT (0.00) FOR [Discount],
	CONSTRAINT [DF_t_cart_Nums] DEFAULT (0) FOR [Nums],
	CONSTRAINT [DF_t_cart_Weight] DEFAULT (0.00) FOR [Weight],
	CONSTRAINT [DF_t_cart_IsOrder] DEFAULT (0) FOR [IsOrder]
GO

ALTER TABLE [dbo].[t_category] ADD 
	CONSTRAINT [DF_t_category_ParentId] DEFAULT (0) FOR [ParentId],
	CONSTRAINT [DF_t_category_IsChannel] DEFAULT (0) FOR [IsChannel],
	CONSTRAINT [DF_t_category_SortNum] DEFAULT (0) FOR [SortNum],
	CONSTRAINT [DF_t_category_ModiTime] DEFAULT (getdate()) FOR [ModiTime],
	CONSTRAINT [DF_t_category_ShowTemplateId] DEFAULT (1) FOR [ShowTemplateId],
	CONSTRAINT [DF_t_category_AllowContributor] DEFAULT (0) FOR [AllowContributor],
	CONSTRAINT [DF__t_categor__DataM__467D75B8] DEFAULT (1) FOR [DataModule]
GO

ALTER TABLE [dbo].[t_commen] ADD 
	CONSTRAINT [DF_t_commen_ArticleId] DEFAULT (0) FOR [ArticleId],
	CONSTRAINT [DF_t_commen_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_commen_IsCheck] DEFAULT (0) FOR [IsCheck],
	CONSTRAINT [DF_t_commen_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_contributors] ADD 
	CONSTRAINT [DF_t_contributors_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_contributors_IsCheck] DEFAULT (0) FOR [IsCheck]
GO

ALTER TABLE [dbo].[t_dbimport] ADD 
	CONSTRAINT [DF_t_dbimport_db_type] DEFAULT (0) FOR [db_type],
	CONSTRAINT [DF_t_dbimport_db_driver] DEFAULT ('') FOR [db_driver],
	CONSTRAINT [DF_t_dbimport_db_host] DEFAULT ('') FOR [db_host],
	CONSTRAINT [DF_t_dbimport_db_name] DEFAULT ('') FOR [db_name],
	CONSTRAINT [DF_t_dbimport_db_username] DEFAULT ('') FOR [db_username],
	CONSTRAINT [DF_t_dbimport_db_password] DEFAULT ('') FOR [db_password],
	CONSTRAINT [DF_t_dbimport_db_table] DEFAULT ('') FOR [db_table],
	CONSTRAINT [DF_t_dbimport_db_key] DEFAULT ('') FOR [db_key],
	CONSTRAINT [DF_t_dbimport_db_order] DEFAULT ('') FOR [db_order],
	CONSTRAINT [DF_t_dbimport_db_sql] DEFAULT ('') FOR [db_sql],
	CONSTRAINT [DF_t_dbimport_categoryid] DEFAULT (0) FOR [categoryid],
	CONSTRAINT [DF_t_dbimport_templateid] DEFAULT (0) FOR [templateid],
	CONSTRAINT [DF_t_dbimport_default_status] DEFAULT (0) FOR [default_status]
GO

ALTER TABLE [dbo].[t_download_file] ADD 
	CONSTRAINT [DF_t_download_file_SoftId] DEFAULT (0) FOR [SoftId],
	CONSTRAINT [DF_t_download_file_ServerId] DEFAULT (0) FOR [ServerId]
GO

ALTER TABLE [dbo].[t_download_server] ADD 
	CONSTRAINT [DF_t_download_server_Active] DEFAULT (0) FOR [Active]
GO

ALTER TABLE [dbo].[t_download_soft] ADD 
	CONSTRAINT [DF_t_download_soft_CatalogId] DEFAULT (0) FOR [CatalogId],
	CONSTRAINT [DF_t_download_soft_SoftStars] DEFAULT (0) FOR [SoftStars],
	CONSTRAINT [DF_t_download_soft_SoftRecommend] DEFAULT (0) FOR [SoftRecommend],
	CONSTRAINT [DF_t_download_soft_SoftTop] DEFAULT (0) FOR [SoftTop],
	CONSTRAINT [DF_t_download_soft_SoftHits] DEFAULT (0) FOR [SoftHits],
	CONSTRAINT [DF_t_download_soft_SoftSort] DEFAULT (0) FOR [SoftSort],
	CONSTRAINT [DF_t_download_soft_IsCheck] DEFAULT (0) FOR [IsCheck],
	CONSTRAINT [DF_t_download_soft_IsNeedLogin] DEFAULT (0) FOR [IsNeedLogin]
GO

 CREATE  INDEX [IX_t_download_soft_1] ON [dbo].[t_download_soft]([CatalogId]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_t_download_soft_2] ON [dbo].[t_download_soft]([ModifyDate]) ON [PRIMARY]
GO

 CREATE  INDEX [IX_t_download_soft_3] ON [dbo].[t_download_soft]([IsCheck]) ON [PRIMARY]
GO

ALTER TABLE [dbo].[t_fields] ADD 
	CONSTRAINT [DF_t_fields_DataModule] DEFAULT (0) FOR [DataModule],
	CONSTRAINT [DF_t_fields_FieldType] DEFAULT (1) FOR [FieldType],
	CONSTRAINT [DF_t_fields_FieldLen] DEFAULT (1) FOR [FieldLen],
	CONSTRAINT [DF_t_fields_FormType] DEFAULT (1) FOR [FormType],
	CONSTRAINT [DF__t_fields__IsBind__6501FCD8] DEFAULT (0) FOR [IsBindTable],
	CONSTRAINT [DF__t_fields__ShowIn__65F62111] DEFAULT (0) FOR [ShowInList],
	CONSTRAINT [DF__t_fields__SysFie__66EA454A] DEFAULT (0) FOR [SysFields]
GO

ALTER TABLE [dbo].[t_flink] ADD 
	CONSTRAINT [DF_t_flink_SortId] DEFAULT (0) FOR [SortId],
	CONSTRAINT [DF_t_flink_LinkType] DEFAULT (0) FOR [LinkType]
GO

ALTER TABLE [dbo].[t_function] ADD 
	CONSTRAINT [DF_t_function_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_function_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_gather] ADD 
	CONSTRAINT [DF_t_gather_ParentId] DEFAULT (0) FOR [ParentId],
	CONSTRAINT [DF_t_gather_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_gather_TemplateId] DEFAULT (0) FOR [TemplateId],
	CONSTRAINT [DF_t_gather_ReplaceUrl] DEFAULT (0) FOR [ReplaceUrl],
	CONSTRAINT [DF_t_gather_PageStart] DEFAULT (0) FOR [PageStart],
	CONSTRAINT [DF_t_gather_PageEnd] DEFAULT (0) FOR [PageEnd]
GO

ALTER TABLE [dbo].[t_gatherhis] ADD 
	CONSTRAINT [DF_t_gatherhis_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_gbook] ADD 
	CONSTRAINT [DF_t_gbook_ObjId] DEFAULT (0) FOR [ObjId],
	CONSTRAINT [DF_t_gbook_TypeId] DEFAULT (0) FOR [TypeId],
	CONSTRAINT [DF_t_gbook_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_label] ADD 
	CONSTRAINT [DF_t_label_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_label_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_member] ADD 
	CONSTRAINT [DF_t_member_UserType] DEFAULT (0) FOR [UserType],
	CONSTRAINT [DF_t_member_LoginNum] DEFAULT (0) FOR [LoginNum],
	CONSTRAINT [DF_t_member_IsLocked] DEFAULT (0) FOR [IsLocked],
	CONSTRAINT [DF_t_member_Score] DEFAULT (0) FOR [Score],
	CONSTRAINT [DF_t_member_IsCheck] DEFAULT (0) FOR [IsCheck],
	CONSTRAINT [DF_t_member_UserLevel] DEFAULT (0) FOR [UserLevel],
	CONSTRAINT [DF__t_member__Balanc__6F7F8B4B] DEFAULT (0.00) FOR [Balance]
GO

 CREATE  UNIQUE  INDEX [IX_t_member] ON [dbo].[t_member]([UserId]) ON [PRIMARY]
GO

ALTER TABLE [dbo].[t_member_e] ADD 
	CONSTRAINT [DF_t_member_e_ParentId] DEFAULT (0) FOR [ParentId],
	CONSTRAINT [DF_t_member_e_IndustryId] DEFAULT (0) FOR [IndustryId],
	CONSTRAINT [DF_t_member_e_Province] DEFAULT (0) FOR [Province],
	CONSTRAINT [DF_t_member_e_City] DEFAULT (0) FOR [City]
GO

ALTER TABLE [dbo].[t_member_p] ADD 
	CONSTRAINT [DF_t_member_p_Province] DEFAULT (0) FOR [Province],
	CONSTRAINT [DF_t_member_p_City] DEFAULT (0) FOR [City]
GO

ALTER TABLE [dbo].[t_module] ADD 
	CONSTRAINT [DF__t_module__Pid__6F6A7CB2] DEFAULT (0) FOR [Pid]
GO

ALTER TABLE [dbo].[t_payhis] ADD 
	CONSTRAINT [DF_t_payhis_Money] DEFAULT (0.00) FOR [Money],
	CONSTRAINT [DF_t_payhis_PayType] DEFAULT (0) FOR [PayType],
	CONSTRAINT [DF_t_payhis_PubDate] DEFAULT (getdate()) FOR [PubDate]
GO

ALTER TABLE [dbo].[t_post] ADD 
	CONSTRAINT [DF_t_post_f_date] DEFAULT (getdate()) FOR [f_date],
	CONSTRAINT [DF_t_post_f_replytime] DEFAULT (getdate()) FOR [f_replytime],
	CONSTRAINT [DF_t_post_f_hidden] DEFAULT (0) FOR [f_hidden],
	CONSTRAINT [DF_t_post_f_ischeck] DEFAULT (0) FOR [f_ischeck]
GO

ALTER TABLE [dbo].[t_role] ADD 
	CONSTRAINT [DF_t_role_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_shop] ADD 
	CONSTRAINT [DF_t_shop_ParentId] DEFAULT (0) FOR [ParentId],
	CONSTRAINT [DF_t_shop_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_shop_NeedMoney] DEFAULT (0.00) FOR [Price],
	CONSTRAINT [DF_t_shop_Stars] DEFAULT (1) FOR [Stars],
	CONSTRAINT [DF_t_shop_Num] DEFAULT (0) FOR [Nums],
	CONSTRAINT [DF_t_shop_ModDate] DEFAULT (getdate()) FOR [ModDate],
	CONSTRAINT [DF_t_shop_Hits_1] DEFAULT (0) FOR [Hits],
	CONSTRAINT [DF_t_shop_IsRem] DEFAULT (0) FOR [IsRem],
	CONSTRAINT [DF_t_shop_IsTop] DEFAULT (0) FOR [IsTop],
	CONSTRAINT [DF_t_shop_IsHot] DEFAULT (0) FOR [IsHot],
	CONSTRAINT [DF_t_shop_Weight] DEFAULT (0.00) FOR [Weight],
	CONSTRAINT [DF_t_shop_MPrice] DEFAULT (0.00) FOR [MPrice]
GO

ALTER TABLE [dbo].[t_shop_commen] ADD 
	CONSTRAINT [DF_t_shop_commen_GoodsId] DEFAULT (0) FOR [GoodsId]
GO

ALTER TABLE [dbo].[t_shop_team] ADD 
	CONSTRAINT [DF_t_shop_team_TeamId] DEFAULT (0) FOR [TeamId],
	CONSTRAINT [DF_t_shop_team_ShopId] DEFAULT (0) FOR [ShopId]
GO

ALTER TABLE [dbo].[t_slide] ADD 
	CONSTRAINT [DF_t_slide_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_slide_ItemNum] DEFAULT (4) FOR [ItemNum],
	CONSTRAINT [DF_t_slide_Width] DEFAULT (200) FOR [Width],
	CONSTRAINT [DF_t_slide_Height] DEFAULT (200) FOR [Height]
GO

ALTER TABLE [dbo].[t_special] ADD 
	CONSTRAINT [DF_t_special_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_tag_article] ADD 
	CONSTRAINT [DF_t_tag_article_ArticleId] DEFAULT (0) FOR [ArticleId],
	CONSTRAINT [DF_t_tag_article_TagId] DEFAULT (0) FOR [TagId]
GO

ALTER TABLE [dbo].[t_tags] ADD 
	CONSTRAINT [DF_t_tags_Weight] DEFAULT (0) FOR [Weight],
	CONSTRAINT [DF_t_tags_Hits] DEFAULT (0) FOR [Hits],
	CONSTRAINT [IX_t_tags] UNIQUE  NONCLUSTERED 
	(
		[Title]
	)  ON [PRIMARY] 
GO

ALTER TABLE [dbo].[t_team] ADD 
	CONSTRAINT [DF_t_team_Price] DEFAULT (0.00) FOR [Price],
	CONSTRAINT [DF_t_team_MPrice] DEFAULT (0.00) FOR [MPrice],
	CONSTRAINT [DF_t_team_Hits] DEFAULT (0) FOR [Hits]
GO

ALTER TABLE [dbo].[t_template] ADD 
	CONSTRAINT [DF_t_template_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_video] ADD 
	CONSTRAINT [DF_t_video_ParentId] DEFAULT (0) FOR [ParentId],
	CONSTRAINT [DF_t_video_CategoryId] DEFAULT (0) FOR [CategoryId],
	CONSTRAINT [DF_t_video_NeedMoney] DEFAULT (0.00) FOR [NeedMoney],
	CONSTRAINT [DF_t_video_IsFree] DEFAULT (0) FOR [IsFree],
	CONSTRAINT [DF_t_video_IsRecommend] DEFAULT (0) FOR [IsRecommend],
	CONSTRAINT [DF_t_video_JoinNum] DEFAULT (0) FOR [JoinNum],
	CONSTRAINT [DF_t_video_Hits] DEFAULT (1) FOR [Hits],
	CONSTRAINT [DF_t_video_PubServerId] DEFAULT (0) FOR [PubServerId],
	CONSTRAINT [DF_t_video_IsCheck] DEFAULT (0) FOR [IsCheck],
	CONSTRAINT [DF_t_video_IsGuestPub] DEFAULT (0) FOR [IsGuestPub]
GO

ALTER TABLE [dbo].[t_video_commen] ADD 
	CONSTRAINT [DF_t_video_commen_ObjId] DEFAULT (0) FOR [ObjId],
	CONSTRAINT [DF_t_video_commen_IsRecommend] DEFAULT (0) FOR [IsRecommend]
GO

ALTER TABLE [dbo].[t_vote] ADD 
	CONSTRAINT [DF_t_vote_OptionNum] DEFAULT (0) FOR [OptionNum],
	CONSTRAINT [DF_t_vote_OptionType] DEFAULT (0) FOR [OptionType],
	CONSTRAINT [DF_t_vote_Status] DEFAULT (0) FOR [Status],
	CONSTRAINT [DF_t_vote_ExpiresTime] DEFAULT (getdate()) FOR [ExpiresTime],
	CONSTRAINT [DF_t_vote_ModiTime] DEFAULT (getdate()) FOR [ModiTime]
GO

ALTER TABLE [dbo].[t_voteitem] ADD 
	CONSTRAINT [DF_t_voteitem_VoteId] DEFAULT (0) FOR [VoteId],
	CONSTRAINT [DF_t_voteitem_Hits] DEFAULT (0) FOR [Hits]
GO

INSERT INTO t_admin(UserName,PassWord,LoginNum,IsLock,RoleId,ModiTime) VALUES ('admins','2AEFC34200A294A3CC7DB81B43A81873',0,0,0,GetDate());
GO

INSERT INTO t_category(id,Title,Template,SavePath,ParentId,IsChannel,LinkUrl,Desrb,Keywords,SortNum,ModiTime,ShowTemplateId) values(1,'首页','/Template/index.html','/',0,1,'/','CMS首页','CMS首页',1,GetDate(),1);
GO

INSERT INTO t_label (CategoryId,Title,Demons,Content,ModiTime) values (1,'$Flink$','友情链接','GetFlinks(4,8,0,#ffffff,#f5f5f5)',GetDate());

GO

INSERT INTO t_label (CategoryId,Title,Demons,Content,ModiTime) values (0,'$Head$','头文件','ImportUri(0,utf-8,/Template/head.htm)',GetDate());

GO

INSERT INTO t_label (CategoryId,Title,Demons,Content,ModiTime) values (0,'$Root$','网站尾','ImportUri(0,utf-8,/Template/root.htm)',GetDate());

GO
insert into t_download_server(Title,Url,Active,Demons) values('当前服务器','/download',1,'下载软件存放在当前网站download文件夹里');
GO

insert into t_module(Title,TableName,Pid,ListFields) values('文章','t_article',0,'');
GO

insert into t_module(Title,TableName,Pid,ListFields) values('下载','t_download_soft',0,'');
GO

insert into t_module(Title,TableName,Pid,ListFields) values('视频','t_video',0,'');
GO

insert into t_module(Title,TableName,Pid,ListFields) values('商品','t_shop',0,'');
GO
          
insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'id','id',1,50,1,'id','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'Title','Title',1,50,1,'Title','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'SubHeading','SubHeading',1,50,1,'SubHeading','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'Photo','Photo',1,50,1,'Photo','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'SavePath','SavePath',1,50,1,'SavePath','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'Summary','Summary',1,50,1,'Summary','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(1,'ModDate','ModDate',1,50,1,'ModDate','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftName','SoftName',1,50,1,'SoftName','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftKey','SoftKey',1,50,1,'SoftKey','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftVersion','SoftVersion',1,50,1,'SoftVersion','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftLanguage','SoftLanguage',1,50,1,'SoftLanguage','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftLicense','SoftLicense',1,50,1,'SoftLicense','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftAttr','SoftAttr',1,50,1,'SoftAttr','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftSize','SoftSize',1,50,1,'SoftSize','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftAuthor','SoftAuthor',1,50,1,'SoftAuthor','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftPhoto','SoftPhoto',1,50,1,'SoftPhoto','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftDemons','SoftDemons',1,50,1,'SoftDemons','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'ModifyDate','ModifyDate',1,50,1,'ModifyDate','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(2,'SoftHits','SoftHits',1,50,1,'SoftHits','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(3,'Title','Title',1,50,1,'Title','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(3,'ViewImg','ViewImg',1,50,1,'ViewImg','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(3,'ModiTime','ModiTime',1,50,1,'ModiTime','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(3,'Author','Author',1,50,1,'Author','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(3,'VideoLen','VideoLen',1,50,1,'VideoLen','',0,'||',1,1);
GO

insert into t_fields(DataModule,FieldName,FieldTitle,FieldType,FieldLen,FormType,FormText,FormDefault,IsBindTable,BindPara,ShowInList,SysFields) values(3,'Hits','Hits',1,50,1,'Hits','',0,'||',1,1);
GO

          

INSERT INTO t_template(Title,Content,ModiTime) values('文章模板一','<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$Title$-$CategoryName$</title>
<meta name="description" content="$Description$" />
<meta name="keywords" content="$Keywords$" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/show.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/commen.js"></script>
<script type="text/javascript">
function homePage(obj){
	obj.style.behavior="url(#default#homepage)";
	obj.setHomePage("$SiteUrl$");
}
function showCheckCodes(){
	var codepath=document.getElementById(''showcheckcode_img'').src;
	if(codepath.indexOf(''blank.gif'')!=-1){
      document.getElementById(''showcheckcode_img'').src=''/CaptchaImage.aspx'';
    } 	
}
function checkSub(obj){
	with(obj){
		if(Author.value==""){
			alert("请输入用户名!");
			Author.select();
			Author.focus();
			return false;
		}
		if(Content.value=="" || Content.value.length<1){
			alert("请输入评论内容!");
			Content.select();
			Content.focus();
			return false;
		}
		if(CertCode.value==""){
			alert("请输入验证码!");
			CertCode.select();
			CertCode.focus();
			return false;
		}
	}
}
</script>
</head>

<body>
<div class="container">
	$Head$
  <div class="br"></div>
  <div class="position">现在位置：<a href="$SiteUrl$">首页</a>$Position$</div>
  <div class="contain">
	<!--left-->
	<div class="left">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
	    <tr>
	      <td class="table_th"><span class="table_title">编辑推荐</span></td>
	      </tr>
	    <tr>
	      <td>
        $Dynamic_Recommend$
        </td>
	      </tr>
	    </table>
      <div class="br"></div>
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
	    <tr>
	      <td class="table_th"><span class="table_title">热门点击</span></td>
	      </tr>
	    <tr>
	      <td>
        $Dynamic_Hits$
        </td>
	      </tr>
	    </table>
      <div class="br"></div>
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
	    <tr>
	      <td class="table_th"><span class="table_title">图片推荐</span></td>
	      </tr>
	    <tr>
	      <td class="pad5">
        $Dynamic_Pics$
        </td>
	      </tr>
	    </table>
  </div>
	<div class="right">
	  <div class="show_container">
				
			<div class="title">$Title$</div>
			<div class="titleparas">作者：$Author$ 日期：$ModiTime$ 出处：$SourceFrom$ 点击:<span id="content_hits"></span></div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="content">$Content$</td>
              </tr>
              <tr>
                 <td>
                 上一篇：$PreArticle$
                 下一篇：$NextArticle$
                 </td>
              </tr>
        </table>
			<p align="center">$PageSplitList$</p>	
			<div class="tools">
				<ul>
				<li><a href="$SiteUrl$">返回首页</a></li>
				<li><a href="javascript:print();">打印本文</a></li>
				<li><a href="#" onclick="window.external.AddFavorite(location.href,document.title);">加入收藏</a></li>
				<li><a href="#">返回顶部</a></li>
				<li><a href="javascript:window.close()">关闭窗口</a></li>
				</ul>
			</div>			  
		  <!--开始评论-->
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="border">
              <tr>
                <td width="50%" class="thead"><img src="/images/line1.gif" width="6" height="17" align="absmiddle" /> 相关文章</td>
                <td class="thead"><span class="col_right"><a href="/Commen/view.aspx?id=$id$" target="_blank">查看留言</a></span> <img src="/images/line1.gif" width="6" height="17" align="absmiddle" /> 发表评论 </td>
              </tr>
              <tr>
                <td valign="top">
				<div class="relatelink">
					<ul>
					  $RelateLink$
					</ul>
				</div>
				</td>
                <td valign="top"><form action="/Commen/Save.aspx" method="post" name="form1" id="form1" onsubmit="return checkSub(this)">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center" valign="middle">用 户：</td>
                        <td align="left" valign="middle"><input name="Author" type="text" id="Author" size="15" maxlength="30" onfocus="showCheckCodes()" /></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle">内 容：</td>
                        <td align="left" valign="middle"><textarea name="Content" style="width:90%;" rows="5" id="Content" onfocus="showCheckCodes()"></textarea></td>
                      </tr>
                      <tr>
                        <td align="center" valign="middle">验证码：</td>
                        <td align="left" valign="middle"><input name="CertCode" type="text" onfocus="showCheckCodes()" size="6" />
                            <img src="/images/blank.gif" align="absmiddle" id="showcheckcode_img" onfocus="showCheckCodes()" onclick="this.src=''/CaptchaImage.aspx''" alt="看不清?换一张试试!" /></td>
                      </tr>
                      <tr>
                        <td height="45" align="center" valign="middle"></td>
                        <td align="left" valign="middle"><input type="hidden" value="$id$" name="ArticleId" />
                            <input type="hidden" value="$CategoryId$" name="CategoryId" />
                            <input type="submit" name="Submit" value="提交" />
                            <input type="reset" name="Submit2" value="重写" /></td>
                      </tr>
                    </table>
                </form></td>
              </tr>
        </table>
		  <!--end -->
	  </div>
	</div>
  <div class="clear"></div>
</div>
<div class="br"></div>
$Root$
</div>
<script src="/js/stat.aspx?id=$id$"></script>
</body>
</html>',GetDate())
GO