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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CREATE TABLE [{$DataBasePrefix$}AccountDetails] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[CreateTime] [datetime] NULL ,
	[cMoney] [decimal](18, 2) NULL ,
	[cType] [int] NULL ,
	[uBalance] [decimal](18, 2) NULL ,
	[Remark] [nvarchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserID] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}AccountDetails] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}AccountDetails] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}AdZone] (
	[ZoneID] [int] IDENTITY (1, 1) NOT NULL ,
	[IncludeADID] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ZoneName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZoneJSName] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZoneIntro] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZoneType] [int] NULL ,
	[DefaultSetting] [bit] NOT NULL ,
	[ZoneSetting] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ZoneWidth] [int] NULL ,
	[ZoneHeight] [int] NULL ,
	[Active] [bit] NOT NULL ,
	[ShowType] [int] NULL ,
	[UpdateTime] [smalldatetime] NOT NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}AdZone] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}AdZone] PRIMARY KEY  CLUSTERED 
	(
		[ZoneID]
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Address] (
	[AddressID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[UserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Province] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ZipCode] [varchar] (6) COLLATE Chinese_PRC_CI_AS NULL ,
	[ConectPhone] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MobilePhone] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Address] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Address] PRIMARY KEY  CLUSTERED 
	(
		[AddressID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Admin] (
	[Admin_ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[PassWord] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[LastLogin] [datetime] NULL ,
	[LastLoginIP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginTimes] [int] NULL ,
	[AcceptIP] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[SecurityKey] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginDate] [datetime] NULL ,
	[LoginIP] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[EndDate] [datetime] NULL ,
	[Disable] [bit] NULL ,
	[Access] [int] NULL ,
	[Remark] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Power] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Admin] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Admin] PRIMARY KEY  CLUSTERED 
	(
		[Admin_ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}AdminGroup] (
	[AdminGourpID] [int] IDENTITY (1, 1) NOT NULL ,
	[AdminGroupName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Access] [int] NULL ,
	[Remark] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Power] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}AdminGroup] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}AdminGroup] PRIMARY KEY  CLUSTERED 
	(
		[AdminGourpID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}AdminUserGroup] (
	[UserGroupID] [int] IDENTITY (1, 1) NOT NULL ,
	[AdminID] [int] NULL ,
	[GroupID] [int] NULL ,
	[Remark] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}AdminUserGroup] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}AdminUserGroup] PRIMARY KEY  CLUSTERED 
	(
		[UserGroupID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}AdsClickRecorde] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[CreateTime] [datetime] NULL ,
	[ComeIP] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[ComeUrl] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserID] [int] NULL ,
	[AddPoint] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}AdsClickRecorde] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}AdsClickRecorde] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Advertisement] (
	[ADID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[ZoneID] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[ADType] [int] NULL ,
	[ADName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ImgUrl] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ImgWidth] [int] NULL ,
	[ImgHeight] [int] NULL ,
	[FlashWmode] [int] NULL ,
	[ADIntro] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[LinkUrl] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[LinkTarget] [int] NULL ,
	[LinkAlt] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[Priority] [int] NULL ,
	[Setting] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[CountView] [bit] NULL ,
	[Views] [int] NULL ,
	[CountClick] [bit] NULL ,
	[Clicks] [int] NULL ,
	[Passed] [bit] NULL ,
	[EndTime] [datetime] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Advertisement] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Advertisement] PRIMARY KEY  CLUSTERED 
	(
		[ADID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Announce] (
	[AnnounceID] [int] IDENTITY (1, 1) NOT NULL ,
	[AnnounceTitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[AnnounceType] [int] NULL ,
	[AnnounceImportant] [int] NULL ,
	[AnnounceContent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[AnnounceOwner] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[AnnounceBegin] [datetime] NULL ,
	[AnnounceEnd] [datetime] NULL ,
	[AnnounceReadCount] [int] NULL ,
	[AddTime] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Announce] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Announce] PRIMARY KEY  CLUSTERED 
	(
		[AnnounceID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Application] (
	[IdentifyID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IdentifyType] [int] NULL ,
	[Status] [int] NULL ,
	[AplayTime] [datetime] NULL ,
	[UpdateTime] [datetime] NULL ,
	[Editor] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Remark] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[UploadPhotoUrl] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[IdentifyDetail] [nvarchar] (3000) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Application] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Application] PRIMARY KEY  CLUSTERED 
	(
		[IdentifyID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Card] (
	[CardID] [int] IDENTITY (1, 1) NOT NULL ,
	[CardType] [int] NULL ,
	[CardNum] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardPassword] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardMoney] [decimal](18, 0) NULL ,
	[CardValidNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardAgentName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardValidUnit] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardEndDate] [datetime] NULL ,
	[CardState] [int] NULL ,
	[CardUserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CardCreateTime] [datetime] NULL ,
	[CardUseTime] [datetime] NULL ,
	[CardSellFrom] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Card] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Card] PRIMARY KEY  CLUSTERED 
	(
		[CardID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}City] (
	[AreaID] [int] NOT NULL ,
	[Country] [nvarchar] (20) COLLATE Chinese_PRC_CI_AS NULL ,
	[Province] [nvarchar] (25) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [nvarchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Area] [nvarchar] (25) COLLATE Chinese_PRC_CI_AS NULL ,
	[PostCode] [nvarchar] (15) COLLATE Chinese_PRC_CI_AS NULL ,
	[AreaCode] [nvarchar] (8) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}City] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}City] PRIMARY KEY  CLUSTERED 
	(
		[AreaID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}CityArea] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Province] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[Flag] [bit] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}CityArea] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}CityArea] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Class] (
	[ClassID] [int] NOT NULL ,
	[SpecialID] [int] NULL ,
	[ClassName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassType] [int] NULL ,
	[OpenType] [int] NULL ,
	[ParentID] [int] NULL ,
	[ParentPath] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[ParentDepth] [int] NULL ,
	[Depth] [int] NULL ,
	[RootID] [int] NULL ,
	[Child] [int] default 0 NULL ,
	[arrChildID] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[PrevID] [int] NULL ,
	[NextID] [int] NULL ,
	[OrderByID] [int] NULL ,
	[Tips] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReadMe] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[LinkUrl] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassDir] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ParentDir] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[SkinID] [int] NULL ,
	[ShowOnTop] [bit] NULL ,
	[ShowOnIndex] [bit] NULL ,
	[IsElite] [bit] NULL ,
	[EnableAdd] [bit] NULL ,
	[MaxPerPage] [int] NULL ,
	[ItemListOrderType] [int] NULL ,
	[ItemOpenType] [int] NULL ,
	[ItemCount] [int] default 0 NULL ,
	[CheckComment] [bit] NULL ,
	[PresentExp] [int] NULL ,
	[ShopCount] [int] NULL ,
	[ClassSkinID] [int] NULL ,
	[TemplateID] [int] NULL ,
	[ProductTemplateID] [int] NULL ,
	[ProductSkinID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Initials] [varchar] (10) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO

CREATE TABLE [{$DataBasePrefix$}Complain] (
	[ComplainID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[ComplainType] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ComplainUserID] [int] NULL ,
	[ComplainUserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Reason] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Status] [bit] NULL ,
	[Result] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[StartTime] [datetime] NULL ,
	[UserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Complain] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Complain] PRIMARY KEY  CLUSTERED 
	(
		[ComplainID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}ConsumeLog] (
	[LogID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NOT NULL ,
	[UserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[ModuleType] [int] NULL ,
	[InfoID] [int] NULL ,
	[Point] [int] NULL ,
	[LogTime] [datetime] NOT NULL ,
	[Times] [int] NULL ,
	[IncomePayOut] [int] NULL ,
	[IP] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Inputer] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}ConsumeLog] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}ConsumeLog] PRIMARY KEY  CLUSTERED 
	(
		[LogID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Country] (
	[CountryID] [int] NOT NULL ,
	[Country] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Country] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Country] PRIMARY KEY  CLUSTERED 
	(
		[CountryID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}DeliverItem] (
	[DeliverID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[OrderID] [int] NULL ,
	[DeliverType] [int] NULL ,
	[DeliverDate] [datetime] NULL ,
	[HandlerName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DeliverCompany] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ExpressNumber] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Inputer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Remark] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Received] [bit] NULL ,
	[SalerID] [int] NULL ,
	[DeliverName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ConnetionName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}DeliverItem] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}DeliverItem] PRIMARY KEY  CLUSTERED 
	(
		[DeliverID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}DeliverType] (
	[TypeID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[TypeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Intro] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ChargeType] [int] NULL ,
	[IsDefault] [bit] NULL ,
	[IsDisabled] [bit] NULL ,
	[Charge] [decimal](18, 2) NULL ,
	[DeliverAraa] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}DeliverType] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}DeliverType] PRIMARY KEY  CLUSTERED 
	(
		[TypeID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}FProductClass] (
	[F_ProductClassID] [int] IDENTITY (1, 1) NOT NULL ,
	[F_ProductClassName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserID] [int] NULL ,
	[F_ProductClassRemark] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}FProductClass] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}FProductClass] PRIMARY KEY  CLUSTERED 
	(
		[F_ProductClassID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}FShopClass] (
	[F_ShopClassID] [int] IDENTITY (1, 1) NOT NULL ,
	[F_ShopClassName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserID] [int] NULL ,
	[F_ShopClassRemark] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}FShopClass] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}FShopClass] PRIMARY KEY  CLUSTERED 
	(
		[F_ShopClassID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}FriendLink] (
	[FriendLinkID] [int] IDENTITY (1, 1) NOT NULL ,
	[ShopID] [int] NOT NULL ,
	[FriendUserId] [int] NOT NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}FriendLink] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}FriendLink] PRIMARY KEY  CLUSTERED 
	(
		[FriendLinkID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Group] (
	[GroupID] [int] IDENTITY (1, 1) NOT NULL ,
	[GroupName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GroupIntro] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[GroupType] [int] NULL ,
	[MaxMessage] [int] NULL ,
	[AllowUploadSize] [int] NULL ,
	[SendMessage] [int] NULL ,
	[ShoppingDiscount] [int] NULL ,
	[OverDraft] [int] NULL ,
	[TransferCharge] [int] NULL ,
	[AllowSycharArticle] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[GroupMemberNum] [int] NULL ,
	[GroupPower] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[maxmessagesend] [int] NULL ,
	[maxproduct] [int] NULL ,
	[maxpaytype] [int] NULL ,
	[maxdelitype] [int] NULL ,
	[maxmyfav] [int] NULL ,
	[maxteambuyrate] [int] NULL ,
	[paytip] [decimal](18, 2) NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Group] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Group] PRIMARY KEY  CLUSTERED 
	(
		[GroupID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}GroupShopTemplate] (
	[GroupTempTeleID] [int] IDENTITY (1, 1) NOT NULL ,
	[TempID] [int] NULL ,
	[GroupShopID] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}GroupShopTemplate] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}GroupShopTemplate] PRIMARY KEY  CLUSTERED 
	(
		[GroupTempTeleID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}GuestBook] (
	[GuestBookID] [int] IDENTITY (1, 1) NOT NULL ,
	[TypeID] [int] NULL ,
	[TopicID] [int] NULL ,
	[UserID] [int] NULL ,
	[LastGuestID] [int] NULL ,
	[GuestType] [int] NULL ,
	[GuestName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestSex] [int] NULL ,
	[GuestOICQ] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestEmail] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestHomePage] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestIP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestTitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestContent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestDatetime] [datetime] NULL ,
	[GuestHits] [int] NULL ,
	[ReplyNum] [int] NULL ,
	[LastReplayContent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[LastReplayGuest] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LastReplayTime] [datetime] NULL ,
	[LastReplayTitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GuestIsPass] [int] NULL ,
	[GuestIsPrivate] [int] NULL ,
	[GuestOnTop] [int] NULL ,
	[GuestContentLength] [int] NULL ,
	[AdminReplayContent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[AdminReplayTime] [datetime] NULL ,
	[AdminReplay] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}GuestBook] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}GuestBook] PRIMARY KEY  CLUSTERED 
	(
		[GuestBookID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}HotKey] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[keyName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[hits] [int] NULL ,
	[search_url] [varchar] (1000) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}HotKey] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}HotKey] PRIMARY KEY  CLUSTERED 
	(
		[id] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}IndexArticle] (
	[ArticleID] [int] IDENTITY (1, 1) NOT NULL ,
	[ChannelID] [int] NULL ,
	[ClassID] [int] NULL ,
	[SpecialID] [int] NULL ,
	[LinkType] [int] NULL ,
	[ArticleType] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[TitleType] [int] NULL ,
	[ShortTitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LognTitle] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[ArticleContent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[LinkUrl] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[TitleLength] [int] NULL ,
	[PicUrl] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[IncludePic] [int] NULL ,
	[InputTime] [datetime] NULL ,
	[UpdateTime] [datetime] NULL ,
	[Hits] [int] NULL ,
	[Editor] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OnTop] [int] NULL ,
	[Elite] [int] NULL ,
	[ArticleUserID] [int] NULL ,
	[Validay] [int] NULL ,
	[Status] [int] NULL ,
	[UploadPicUrl] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsHighDisplay] [int] NULL ,
	[TemplatePath] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}IndexArticle] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}IndexArticle] PRIMARY KEY  CLUSTERED 
	(
		[ArticleID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Interface] (
	[InterfaceID] [int] IDENTITY (1, 1) NOT NULL ,
	[InterfaceName] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[InterfaceFrontUrl] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[InterfaceAdminUrl] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[EnableFrontInterface] [int] NULL ,
	[EnableAdminInterface] [int] NULL ,
	[RegClose] [int] NULL ,
	[LoginClose] [int] NULL ,
	[InterfaceType] [int] NULL ,
	[Version] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[AdminLoginUrl] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[AdminLoginOpenType] [int] NULL ,
	[AdminLoginPassword] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UpdateTime] [datetime] NULL ,
	[CrossDomain] [int] NULL ,
	[UserCenterUrl] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[CodePage] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Interface] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Interface] PRIMARY KEY  CLUSTERED 
	(
		[InterfaceID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}InvoiceItem] (
	[InvoiceID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[SalerID] [int] NULL ,
	[OrderFormID] [int] NULL ,
	[InvoiceType] [int] NULL ,
	[InvoiceNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[InvoiceTitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[InvoiceContent] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[InvoiceDate] [datetime] NULL ,
	[TotalMoney] [decimal](19, 2) NULL ,
	[Drawer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Inputer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[InputTime] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}InvoiceItem] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}InvoiceItem] PRIMARY KEY  CLUSTERED 
	(
		[InvoiceID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Label] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Type] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Define] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Template] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[UpdateTime] [datetime] NULL ,
	[OutPutType] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[StaticOutPut] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Label] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Label] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Log] (
	[LogID] [int] IDENTITY (1, 1) NOT NULL ,
	[LogType] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[VisitUrl] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[OperatObject] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[OperaTime] [datetime] NULL ,
	[Operator] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OperatorIP] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OperatorHostName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginErrTimes] [int] NULL ,
	[AppModule] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Log] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Log] PRIMARY KEY  CLUSTERED 
	(
		[LogID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Memory] (
	[ItemID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[Content] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Orders] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Memory] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Memory] PRIMARY KEY  CLUSTERED 
	(
		[ItemID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Message] (
	[MessageID] [int] IDENTITY (1, 1) NOT NULL ,
	[Sender] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[Receiver] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Content] [varchar] (1500) COLLATE Chinese_PRC_CI_AS NULL ,
	[SendTime] [datetime] NOT NULL ,
	[DelR] [int] NULL ,
	[DelS] [int] NULL ,
	[IsSend] [int] NULL ,
	[IsRead] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Message] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Message] PRIMARY KEY  CLUSTERED 
	(
		[MessageID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Module] (
	[id] [int] IDENTITY (1, 1) NOT NULL ,
	[name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IDName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[CssName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[NeedTitleHead] [int] NULL ,
	[Title] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[TitleLink] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[NeedMoreLink] [int] NULL ,
	[MoreLinkUrl] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[NeedSummary] [int] NULL ,
	[Summary] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Layout] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ContentTemplate] [varchar] (3000) COLLATE Chinese_PRC_CI_AS NULL ,
	[Status] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Module] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Module] PRIMARY KEY  CLUSTERED 
	(
		[id] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}MyFavourite] (
	[F_ID] [int] IDENTITY (1, 1) NOT NULL ,
	[F_UserID] [int] NULL ,
	[F_ProductID] [int] NULL ,
	[F_ShopID] [int] NULL ,
	[F_Update] [datetime] NULL ,
	[F_Type] [int] NULL ,
	[F_SearchName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[F_SearchContens] [varchar] (800) COLLATE Chinese_PRC_CI_AS NULL ,
	[F_ProductClassID] [int] NULL ,
	[F_ShopClassID] [int] NULL ,
	[F_Remark] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}MyFavourite] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}MyFavourite] PRIMARY KEY  CLUSTERED 
	(
		[F_ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}MySpace] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[ClassID] [int] NULL ,
	[ClassName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[onTop] [bit] NULL ,
	[Passed] [bit] NULL ,
	[IsElite] [bit] NULL ,
	[Hits] [int] NULL ,
	[OrderNum] [int] NULL ,
	[RssUrl] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[RssNum] [int] NULL ,
	[UpdateTime] [datetime] NULL ,
	[ArticleID] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}MySpace] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}MySpace] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}OnlinePaySeting] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[PayTitle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MerID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MerKey] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[MerName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[isOpen] [int] NULL ,
	[SysStr] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}OnlinePaySeting] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}OnlinePaySeting] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Order] (
	[OrderFormID] [int] IDENTITY (1, 1) NOT NULL ,
	[OrderFormNum] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[TradeType] [int] NULL ,
	[UserID] [int] NULL ,
	[BuyerName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopID] [int] NULL ,
	[SalerID] [int] NULL ,
	[SalerName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MoneyTotal] [decimal](19, 2) NULL ,
	[MoneyGoods] [decimal](19, 2) NULL ,
	[Remark] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[MoneyReceipt] [decimal](19, 2) NULL ,
	[InputTime] [datetime] NULL ,
	[UpdateTime] [datetime] NULL ,
	[ContacterName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Province] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZipCode] [int] NULL ,
	[Mobile] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Phone] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Status] [int] NULL ,
	[DeliverStatus] [int] NULL ,
	[PayStatus] [int] NULL ,
	[AuctionEndPrice] [decimal](18, 2) NULL ,
	[InvoiceContent] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[Invoiced] [int] NULL ,
	[NeedInvoice] [int] NULL ,
	[TeamBuyLeavel] [int] NULL ,
	[Invoice_TotalPrice] [decimal](18, 2) NULL ,
	[DeliverTypeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Deliver_TotalPrice] [decimal](18, 2) NULL ,
	[Cycle] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Order] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Order] PRIMARY KEY  CLUSTERED 
	(
		[OrderFormID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}OrderItem] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[OrderFormID] [int] NULL ,
	[OrderFormNum] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ProductID] [int] NULL ,
	[ProductName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Quantity] [int] NULL ,
	[StandPrice] [decimal](18, 0) NULL ,
	[Price] [decimal](18, 2) NULL ,
	[NeedInvoice] [int] NULL ,
	[InvoiceRate] [decimal](18, 2) NULL ,
	[totalPrice] [decimal](18, 2) NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}OrderItem] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}OrderItem] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}PageLabel] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Type] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Define] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Template] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[UpdateTime] [datetime] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}PageLabel] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}PageLabel] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}PayInfo] (
	[PaymentID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserID] [int] NULL ,
	[OrderFormNum] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PaymentNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[eBankID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[eBankInfo] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[MoneyPay] [decimal](18, 2) NULL ,
	[MoneyTrue] [decimal](18, 2) NULL ,
	[PayTime] [datetime] NULL ,
	[Status] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Remark] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[SalerID] [int] NULL ,
	[PayTypeID] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}PayInfo] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}PayInfo] PRIMARY KEY  CLUSTERED 
	(
		[PaymentID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}PayOnline] (
	[OnlinePayID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OrderID] [int] NULL ,
	[PayNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[eBankID] [int] NULL ,
	[PayMoney] [money] NULL ,
	[PayMoneyTrue] [money] NULL ,
	[PayTime] [datetime] NULL ,
	[PayStatus] [int] NULL ,
	[eBankInfo] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[Remark] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}PayOnline] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}PayOnline] PRIMARY KEY  CLUSTERED 
	(
		[OnlinePayID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}PayType] (
	[TypeID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NOT NULL ,
	[TypeName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Intro] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[Discount] [decimal](18, 0) NULL ,
	[IsDefault] [bit] NULL ,
	[IsDisabled] [bit] NULL ,
	[OnlinePay] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PayAccount] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PayType] [int] NULL ,
	[BussinessCount] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[BussinesMD5Key] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[PayTypeFlag] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}PayType] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}PayType] PRIMARY KEY  CLUSTERED 
	(
		[TypeID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Product] (
	[ProductID] [int] IDENTITY (1, 1) NOT NULL ,
	[ShopID] [int] NULL ,
	[SalerID] [int] NULL ,
	[ProductNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ClassID] [int] NULL ,
	[ProductName] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[ProductIntro] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ProductImageUrl] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[ProductSmallImageUrl] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[ProductMidImageUrl] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[UploadVideoUrl] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[NewDegree] [int] NULL ,
	[ProductType] [int] NULL ,
	[StandPrice] [decimal](18, 2) NULL ,
	[AuctionStartPrice] [decimal](19, 2) NULL ,
	[ImcrementPrice] [decimal](19, 2) NULL ,
	[CurrentPrice] [decimal](19, 2) NULL ,
	[MarketPrice] [decimal](19, 2) NULL ,
	[TeamName] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[TeamNum] [int] NULL ,
	[TempSubScriptionRate] [decimal](19, 2) NULL ,
	[TeamPrice1] [decimal](19, 2) NULL ,
	[TeamNumber1] [int] NULL ,
	[TeamPrice2] [decimal](19, 2) NULL ,
	[TeamNumber2] [int] NULL ,
	[TeamPrice3] [decimal](19, 2) NULL ,
	[TeamNumber3] [int] NULL ,
	[TeamPrice4] [decimal](19, 2) NULL ,
	[TeamNumber4] [int] NULL ,
	[TeamPrice5] [decimal](19, 2) NULL ,
	[TeamNumber5] [int] NULL ,
	[TeamCurrentNumber1] [int] NULL ,
	[TeamCurrentNumber2] [int] NULL ,
	[TeamCurrentNumber3] [int] NULL ,
	[TeamCurrentNumber4] [int] NULL ,
	[TeamCurrentNumber5] [int] NULL ,
	[PUnit] [nvarchar] (10) COLLATE Chinese_PRC_CI_AS NULL ,
	[OnTop] [bit] NULL ,
	[IsHot] [bit] NULL ,
	[IsElite] [bit] NULL ,
	[IsShopElite] [bit] NULL ,
	[Stocks] [int] NULL ,
	[EnableSale] [bit] NULL ,
	[BeginDate] [datetime] NULL ,
	[EndDate] [datetime] NULL ,
	[NoLimitDate] [int] NULL ,
	[Keyword] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[CreateTime] [datetime] NULL ,
	[UpdateTime] [datetime] NULL ,
	[Hits] [int] NULL ,
	[BuyTimes] [int] NULL ,
	[Inputer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ValidDay] [int] NULL ,
	[EnableSingleSell] [bit] NULL ,
	[Propority] [int] NULL ,
	[PayType] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DeliverType] [int] NULL ,
	[NeedInvoice] [bit] NULL ,
	[Guarantee] [bit] NULL ,
	[DeliverPayType] [int] NULL ,
	[OrderByID] [int] NULL ,
	[ShopProductCategoryID] [int] NULL ,
	[AutoPostBack] [bit] NULL ,
	[Remark] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[Province] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[TemplateID] [int] NULL ,
	[SkinID] [int] NULL ,
	[TaxRate] [decimal](18, 2) NULL ,
	[Cycle] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Product] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Product] PRIMARY KEY  CLUSTERED 
	(
		[ProductID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}ProductLikeCategory] (
	[ShopProductClassID] [int] IDENTITY (1, 1) NOT NULL ,
	[ShopID] [int] NULL ,
	[ShopProductClassName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[orderby] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}ProductLikeCategory] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}ProductLikeCategory] PRIMARY KEY  CLUSTERED 
	(
		[ShopProductClassID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Request] (
	[RequestID] [int] IDENTITY (1, 1) NOT NULL ,
	[RequesterID] [int] NOT NULL ,
	[RequestCategoryID] [int] NULL ,
	[RequestTitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Description] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[UploadImageUrl] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[RequestNumber] [int] NULL ,
	[Price] [decimal](19, 2) NULL ,
	[ValidDate] [int] NULL ,
	[RequestPlace] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[Remark] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[RequestClick] [int] NULL ,
	[RequestType] [int] NULL ,
	[RequestKey] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[CreateDate] [datetime] NULL ,
	[EnableRequest] [bit] NULL ,
	[EndDate] [datetime] NULL ,
	[Unit] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Request] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Request] PRIMARY KEY  CLUSTERED 
	(
		[RequestID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Review] (
	[ReviewsID] [int] IDENTITY (1, 1) NOT NULL ,
	[ShopID] [int] NULL ,
	[ProductID] [int] NULL ,
	[UserID] [int] NULL ,
	[OrderID] [int] NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReviewTitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReviewContent] [varchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReviewStar] [int] NULL ,
	[ReviewDate] [datetime] NULL ,
	[TransSize] [int] NULL ,
	[ReviewerID] [int] NULL ,
	[ReviewerName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReviewStatus] [int] NULL ,
	[ReviewUpdateTimes] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Review] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Review] PRIMARY KEY  CLUSTERED 
	(
		[ReviewsID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}SendEmail] (
	[SendEmailID] [int] IDENTITY (1, 1) NOT NULL ,
	[SendEmailTitle] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SendEmailAddress] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[SendEmailContent] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[SendEmailDate] [datetime] NULL ,
	[SendEmailFlag] [int] NULL ,
	[SendEmailNum] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}SendEmail] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}SendEmail] PRIMARY KEY  CLUSTERED 
	(
		[SendEmailID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Shop] (
	[ShopID] [int] IDENTITY (1, 1) NOT NULL ,
	[ShopOwnerID] [int] NULL ,
	[ShopOwnerName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopName] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopAdUrl] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopAnnouncement] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopGroupID] [int] NULL ,
	[ShopRegDate] [datetime] NULL ,
	[ShopCloseDate] [datetime] NULL ,
	[ShopClick] [int] NULL ,
	[ShopHelp] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopIntro] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopCredit] [int] NULL ,
	[ShopStatus] [int] NULL ,
	[ShopTemplateID] [nvarchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopStyle] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopCategoryID] [int] NULL ,
	[ShopChildID] [int] NULL ,
	[ShopImageUrl] [varchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[RecommendShop] [bit] NULL ,
	[Tax] [float] NULL ,
	[IsTax] [bit] NULL ,
	[ZipCode] [int] NULL ,
	[ShopAddress] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[LastTimeLogin] [datetime] NULL ,
	[ShopOperatorItem] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopProductClassID] [int] NULL ,
	[ShopURL] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopIdentify] [int] NULL ,
	[ShopProductNum] [int] NULL ,
	[SecUrl] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsUseSecUrl] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Shop] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Shop] PRIMARY KEY  CLUSTERED 
	(
		[ShopID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}ShopGroup] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[GroupName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[GroupIntro] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[Power] [nvarchar] (500) COLLATE Chinese_PRC_CI_AS NULL ,
	[TemplatePath] [nvarchar] (300) COLLATE Chinese_PRC_CI_AS NULL ,
	[MaxClass] [int] NULL ,
	[MaxElite] [int] NULL ,
	[IsUseSecUrl] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}ShopGroup] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}ShopGroup] PRIMARY KEY  CLUSTERED 
	(
		[ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}ShopMessage] (
	[M_ID] [int] IDENTITY (1, 1) NOT NULL ,
	[M_ReplayID] [int] NULL ,
	[M_Type] [int] NULL ,
	[M_ProductID] [int] NULL ,
	[M_ShopID] [int] NULL ,
	[M_DateTime] [datetime] NULL ,
	[M_UserID] [int] NULL ,
	[M_Status] [bit] NULL ,
	[M_Content] [varchar] (800) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_ReceiverID] [int] NULL ,
	[M_SenderName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_ReceiverName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_UserType] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[M_RequestID] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}ShopMessage] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}ShopMessage] PRIMARY KEY  CLUSTERED 
	(
		[M_ID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Skin] (
	[SkinID] [int] IDENTITY (1, 1) NOT NULL ,
	[SkinName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsDefault] [bit] NULL ,
	[Skin_CSS] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsDefaultInProject] [bit] NULL ,
	[ProjectName] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopSkin] [bit] NULL ,
	[SkinType] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SkinPath] [nvarchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[SkinPreviewImg] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Skin] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Skin] PRIMARY KEY  CLUSTERED 
	(
		[SkinID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}Special] (
	[SpecialID] [int] IDENTITY (1, 1) NOT NULL ,
	[ChannelID] [int] NULL ,
	[SpecialName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OpenType] [int] NULL ,
	[SpecialPicUrl] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[OrderID] [int] NULL ,
	[Tips] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ,
	[ReadMe] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[SkinID] [int] NULL ,
	[Template] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[SpecialDir] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MaxPerPage] [int] NULL ,
	[IsElite] [bit] NULL ,
	[Custom_Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsVisible] [bit] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}Special] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}Special] PRIMARY KEY  CLUSTERED 
	(
		[SpecialID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}TemplateProject] (
	[TemplateProjectID] [int] IDENTITY (1, 1) NOT NULL ,
	[TemplateProjectName] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NOT NULL ,
	[Intro] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[IsDefault] [bit] NOT NULL ,
	[Content] [ntext] COLLATE Chinese_PRC_CI_AS NULL ,
	[SkinDir] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}TemplateProject] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}TemplateProject] PRIMARY KEY  CLUSTERED 
	(
		[TemplateProjectID] 
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}TransferField] (
	[TransferFieldID] [int] IDENTITY (1, 1) NOT NULL ,
	[TransferID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[FieldName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[HLFieldName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DefaultValue] [text] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}TransferField] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}TransferField] PRIMARY KEY  CLUSTERED 
	(
		[TransferFieldID]
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}TransferSet] (
	[TransferID] [int] IDENTITY (1, 1) NOT NULL ,
	[InterfaceID] [int] NULL ,
	[TransferTableName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Other_UserID] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Other_UserName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[DBType] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[JumpUser] [int] NULL ,
	[AccessPath] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sql_Source] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sql_Name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sql_user] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Sql_Pass] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[TransferType] [int] NULL ,
	[Md5Size] [int] NULL ,
	[AutoID] [bit] NULL ,
	[StarID] [int] NULL ,
	[EndID] [int] NULL 
) ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}TransferSet] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}TransferSet] PRIMARY KEY  CLUSTERED 
	(
		[TransferID]
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}User] (
	[UserID] [int] IDENTITY (1, 1) NOT NULL ,
	[GroupID] [int] NULL ,
	[ClientID] [int] NULL ,
	[ContacterID] [int] NULL ,
	[CompanyID] [int] NULL ,
	[RssID] [int] NULL ,
	[UserType] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[UserName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Password] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Email] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Question] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Answer] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[RegTime] [datetime] NULL ,
	[JoinTime] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LastLoginTime] [datetime] NULL ,
	[LastLoginIP] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginTimes] [int] NULL ,
	[GoldCoin] [int] NULL ,
	[Point] [int] default 0 NULL ,
	[Ticket] [int] default 0 NULL ,
	[AdsEP] [int] default 0 NULL ,
	[UserEP] [int] default 0 NULL ,
	[Balance] [decimal](19, 2) default 0 NULL ,
	[ConsumePoint] [int] default 0 NULL ,
	[BeginTime] [datetime] NULL ,
	[ValidNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ValidUnit] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IsLocked] [int] NULL ,
	[UnreadMsg] [int] default 0 NULL ,
	[UserFriednGroup] [int] NULL ,
	[CheckNum] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[PassportID] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[RssOpen] [int] NULL ,
	[Modules] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopID] [int] default 0 NULL ,
	[Sex] [int] NULL ,
	[RegIP] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginIP] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[LoginTime] [datetime] NULL ,
	[BindEmail] [int] default 0 NULL ,
	[BindPhone] [int] default 0 NULL ,
	[EncryptMoney] [varchar] (200) COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}User] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}User] PRIMARY KEY  CLUSTERED 
	(
		[UserID]
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}UserExpRecorde] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NULL ,
	[UserEP] [bigint] NULL ,
	[cType] [int] NULL ,
	[CreateTime] [datetime] NULL ,
	[Remark] [ntext] COLLATE Chinese_PRC_CI_AS NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}UserExpRecorde] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}UserExpRecorde] PRIMARY KEY  CLUSTERED 
	(
		[ID]
	)  ON [PRIMARY] 
GO

CREATE TABLE [{$DataBasePrefix$}UserInfo] (
	[UserInfoID] [int] IDENTITY (1, 1) NOT NULL ,
	[UserID] [int] NOT NULL ,
	[Country] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Province] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[City] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ZipCode] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Address] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ComeFrom] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Nation] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Birthday] [datetime] NULL ,
	[TrueName] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[IDCard] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Marriage] [int] NULL ,
	[Family] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[InCome] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Eductation] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[GraduteSchool] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Interests] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[CreateTime] [datetime] NULL ,
	[UpdateTime] [datetime] NULL ,
	[Owner] [varchar] (30) COLLATE Chinese_PRC_CI_AS NULL ,
	[ICQ] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[OICQ] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MSN] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[HomePage] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[HomePhone] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[MobilePhone] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Fax] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[Taobaowangwang] [nvarchar] (80) COLLATE Chinese_PRC_CI_AS NULL ,
	[sex] [bit] NULL ,
	[NickName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[ShopID] [int] NULL ,
	[ContactTime] [int] NULL ,
	[ContactType] [int] NULL ,
	[IDCardPhoto] [varchar] (100) COLLATE Chinese_PRC_CI_AS NULL ,
	[SaleCrediet] [int] default 0 NULL ,
	[BuyCrediet] [int] default 0 NULL ,
	[UserType] [int] NULL ,
	[CompanyName] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
	[intro] [text] COLLATE Chinese_PRC_CI_AS NULL ,
	[AuthenticationType] [int] NULL ,
	[CompanyIdentify] [int] NULL ,
	[MobileIdentify] [int] NULL ,
	[BandShopIdentify] [int] NULL ,
	[OtherIdentify1] [int] NULL ,
	[OtherIdentify2] [int] NULL ,
	[OtherIdentify3] [int] NULL ,
	[OtherIdentify4] [int] NULL ,
	[ApplicationID] [int] NULL 
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [{$DataBasePrefix$}UserInfo] WITH NOCHECK ADD 
	CONSTRAINT [PK_{$DataBasePrefix$}UserInfo] PRIMARY KEY  CLUSTERED 
	(
		[UserInfoID]
	)  ON [PRIMARY] 
GO


Insert Into [{$DataBasePrefix$}Admin](UserName,PassWord,LoginTimes,LastLogin,SecurityKey,LoginDate,EndDate,Access,Disable,Power) values('admin','2CCFACA998CD5F7A083E28FD1CD47F34',0,'2008-12-05 03:24:35','9AHSTFME','2008-12-05 03:47:43','2018-01-01',1,0,'2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|2,2,2,2|0,2,2,2|0,2,2,2|0,2,2,20,2,2,0')
GO
Insert Into [{$DataBasePrefix$}OnlinePaySeting](PayTitle,MerID,MerKey,MerName,isOpen,SysStr) Values('支付宝','2088002080812416','814xp4tjqt5ebpvkg9y41v69hye2aa5g','zoulinxi@163.com',1,'alipay')
GO
INSERT INTO [{$DataBasePrefix$}ShopGroup](GroupName,GroupIntro,Power,TemplatePath,MaxClass,MaxElite,IsUseSecUrl) VALUES('普通店铺','普通店铺','addclass,changeskin,needcheck','店铺模板\高级店铺模板.html',0,0,1)
GO
INSERT INTO [{$DataBasePrefix$}Group](GroupName,GroupIntro,GroupType,MaxMessage,AllowUploadSize,SendMessage,ShoppingDiscount,OverDraft,TransferCharge,AllowSycharArticle,GroupMemberNum,GroupPower,maxmessagesend,maxproduct,maxpaytype,maxdelitype,maxmyfav,maxteambuyrate,paytip) VALUES('注册会员','注册会员',0,0,1000,0,0,0,0,'0',0,'showbuy,showsaler,allowopenshop,allowsaleproduct',0,100,5,5,50,0,0)
GO


INSERT INTO [{$DataBasePrefix$}TemplateProject](TemplateProjectName,Intro,IsDefault,Content,SkinDir) VALUES('网站默认方案','',1,'<TemplateDir>Template/网站默认方案/</TemplateDir><Intro></Intro><TemplateSetList><UserReg>通行证模板/用户注册页模板.html</UserReg><Login>通行证模板/用户登录页模板.html</Login><Passport>通行证模板/通行证模板.html</Passport><Password>通行证模板/用户修改密码页模板.html</Password><CategoryList>商品列表模板\分类列表模板.html</CategoryList><ProductList>商品列表模板\一口价商品列表.html</ProductList><TeamBuyList>商品列表模板\团够商品列表.html</TeamBuyList><ShopList>分类模板/店铺分类列表页面.html</ShopList><ShopIndex>分类模板/店铺分类首页.html</ShopIndex><Index>商城首页\网站首页.html</Index><IdentifyChoose>认证模板/认证方式选择页面.html</IdentifyChoose><IdentifyAgree>认证模板/认证协议页面.html</IdentifyAgree><IdentifyUser>认证模板/个人身份认证申请页面.html</IdentifyUser><IdentifyCompany>认证模板/企业认证申请页面.html</IdentifyCompany><IdentifySuccess>认证模板/认证资料提交成功页面.html</IdentifySuccess><IdentifyAlert>认证模板/认证提示页面.html</IdentifyAlert><MemberIndex>会员中心模板/会员中心框架页.html</MemberIndex><ShopBuy>商品订购流程模板/商品购买页面.html</ShopBuy><ShopResult>商品订购流程模板/流程结束页面.html</ShopResult><Sell>商品信息模板/商品出售选择页面.html</Sell><AuctionClassChoose>商品信息模板/发布求购页面.html</AuctionClassChoose><Browseoffer>商品信息模板/求购信息首页.html</Browseoffer><RequestProduct>商品信息模板/发布求购页面.html</RequestProduct><RequestDetail>商品信息模板/求购商品详细信息页面.html</RequestDetail><ShowProduct>商品信息模板/商品详细信息页面.html</ShowProduct><ProductCompare>商品信息模板/商品比较页面.html</ProductCompare><PublishPreview>商品信息模板/商品详细信息预览页面.html</PublishPreview><ClassChoose>商品信息模板/商品分类选择页面.html</ClassChoose><SaleProduct>商品信息模板/商品出售编辑页面.html</SaleProduct><EditProduct>商品信息模板/商品编辑页面.html</EditProduct><ShopIntro>店铺模板/店铺介绍页面.html</ShopIntro><ShopReview>店铺模板/信用评价页面.html</ShopReview><ShopAllMessage>店铺模板/店铺留言页面.html</ShopAllMessage><Article>文章模板/文章浏览页面.html</Article><ArticleList>\文章模板\文章列表页面.html</ArticleList><Announce>文章模板/公告浏览页面.html</Announce><SearchProduct>搜索页模板/商品搜索页面.html</SearchProduct><SearchShop>搜索页模板/店铺搜索页面.html</SearchShop><SpecialDefault>\专题模板\专题页模板.html</SpecialDefault><CommonShopIndex>\店铺模板\普通店铺模板.html</CommonShopIndex><SeniorShopIndex>店铺模板/高级店铺模板.html</SeniorShopIndex></TemplateSetList><Skin><Item><SkinName>默认商城专题风格</SkinName><SkinPath>/Default/Index.css</SkinPath><SkinType>Special</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>商城店铺粉色回忆风格</SkinName><SkinPath>/Default/Shop/woman.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_woman.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城店铺阳光地带风格</SkinName><SkinPath>/Default/Shop/yellow.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_yellow.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城店铺自然印象风格</SkinName><SkinPath>/Default/Shop/green.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_green.jpg</SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>商城店铺金属狂想风格</SkinName><SkinPath>/Default/Shop/black.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_black.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城店铺紫色心情风格</SkinName><SkinPath>/Default/Shop/fuchsia.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_fuchsia.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城店铺青青世界风格</SkinName><SkinPath>/Default/Shop/cyan.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_cyan.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>首页风格仿淘宝</SkinName><SkinPath>/Default/Index/taobao.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg>/UploadFile/Preview/Index_preview_taobao.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>淡蓝风格</SkinName><SkinPath>/Default/Auction/Sky.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>银色风格</SkinName><SkinPath>/Default/Auction/Sliver.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>粉红佳人</SkinName><SkinPath>/Default/Auction/PinkLady.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>绿色草原</SkinName><SkinPath>/Default/Auction/Green.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城店铺蓝色时尚风格</SkinName><SkinPath>/Default/Shop/blue.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_blue.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>橙色会员中心</SkinName><SkinPath>/Default/Member/Orange.css</SkinPath><SkinType>Member</SkinType><SkinPreviewImg>/UploadFile/Preview/Member_preview_orange.gif</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城基本风格-仿淘宝</SkinName><SkinPath>/Default/Basic/Orange.css</SkinPath><SkinType>ShopBase</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城基本风格-仿拍拍</SkinName><SkinPath>/Default/Basic/Blue.css</SkinPath><SkinType>ShopBase</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>商城基本风格-威购</SkinName><SkinPath>/Default/Basic/BaseStyle.css</SkinPath><SkinType>ShopBase</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>首页风格--仿拍拍</SkinName><SkinPath>/Default/Index/paipai.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>橙色风格</SkinName><SkinPath>/Default/Auction/Orange.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>淡蓝会员中心</SkinName><SkinPath>/Default/Member/Blue.css</SkinPath><SkinType>Member</SkinType><SkinPreviewImg>/UploadFile/Preview/Member_preview_blue.gif</SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购首页</SkinName><SkinPath>/Default/Index/IndexStyle.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg>/UploadFile/Preview/Index_preview_IndexStyle.jpg</SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>百万团购</SkinName><SkinPath>/Default/Special/baiwantgo.css</SkinPath><SkinType>Special</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>拍拍风格</SkinName><SkinPath>/taobao/HL/A.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Index.css</SkinPath><SkinType>Special</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/woman.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_woman.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/yellow.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_yellow.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/green.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_green.jpg</SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/black.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_black.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/fuchsia.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_fuchsia.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/cyan.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_cyan.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Index/taobao.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg>/UploadFile/Preview/Index_preview_taobao.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Auction/Sky.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Auction/Sliver.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Auction/PinkLady.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Auction/Green.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Shop/blue.css</SkinPath><SkinType>Shop</SkinType><SkinPreviewImg>/UploadFile/Preview/Shop_preview_blue.jpg</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Member/Orange.css</SkinPath><SkinType>Member</SkinType><SkinPreviewImg>/UploadFile/Preview/Member_preview_orange.gif</SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Basic/Orange.css</SkinPath><SkinType>ShopBase</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Basic/Blue.css</SkinPath><SkinType>ShopBase</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Basic/BaseStyle.css</SkinPath><SkinType>ShopBase</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Index/paipai.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Auction/Orange.css</SkinPath><SkinType>Product</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Member/Blue.css</SkinPath><SkinType>Member</SkinType><SkinPreviewImg>/UploadFile/Preview/Member_preview_blue.gif</SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Index/IndexStyle.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg>/UploadFile/Preview/Index_preview_IndexStyle.jpg</SkinPreviewImg><IsDefault>1</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/Default/Special/baiwantgo.css</SkinPath><SkinType>Special</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item><Item><SkinName>威购新方案</SkinName><SkinPath>/taobao/HL/A.css</SkinPath><SkinType>Index</SkinType><SkinPreviewImg></SkinPreviewImg><IsDefault>0</IsDefault></Item></Skin>','default')
GO


INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('默认商城专题风格',1,'',1,'网站默认方案',0,'Special','/Special/Index.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('银色风格',1,'',1,'网站默认方案',0,'Product','/Product/Sliver.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('商城首页',1,'',1,'网站默认方案',0,'Index','/Index/IndexStyle.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('分类商品列表样式',1,'',1,'网站默认方案',0,'Class','/Class/productlist.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('蓝色会员中心',1,'',1,'网站默认方案',0,'Member','/Member/Blue.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('商城基本风格',1,'',1,'网站默认方案',0,'Basic','/Basic/BaseStyle.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('商城店铺金属狂想风格',1,'',1,'网站默认方案',0,'Shop','/Shop//Shop/black.css','')
GO
INSERT INTO [{$DataBasePrefix$}Skin](SkinName,IsDefault,Skin_CSS,IsDefaultInProject,ProjectName,ShopSkin,SkinType,SkinPath,SkinPreviewImg) VALUES('分类店铺列表样式',0,'',1,'网站默认方案',0,'Class','/Class/shoplist.css','')
GO


INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('店铺商品列表','通用列表标签','<?xml version="1.0"?><root><Name>店铺商品列表</Name><Type>通用列表标签</Type><LabelType>data_programe</LabelType><LabelIntro></LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>0</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><SqlStr>select ProductID,ProductName,shopid,StandPrice,AuctionStartPrice,ProductSmallImageUrl,ProductType,CurrentPrice,LeftTime,ValidDay From {Prefix}Product Where ShopID=@shopid  Order By  @orderbystr</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut><parms><name>shopid</name><default>0</default><intro>店铺ID</intro></parms><parms><name>orderbystr</name><default>ProductID desc</default><intro>排序参数</intro></parms><parms><name>titlelen</name><default>20</default><intro>标题长度</intro></parms></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<div>
<ul>
<xsl:for-each select="/NewDataSet/Rows" >
<li style="float:left; width:150px; height:200px;">
<table id="DataList2" class="view" cellspacing="0" border="0" style="width:100%;border-collapse:collapse;">
	<tr>
                  <td style="width:20%;">
                       <div>
                          <div class="shopImg">
<xsl:element name="a">
<xsl:attribute name="href">{MZ.Config.InstallDir}Shop/Auction/Auction.aspx?ProductID=<xsl:value-of select="ProductID"/></xsl:attribute>
  <xsl:element name="img">
    <xsl:attribute name="src">../../<xsl:value-of select="ProductSmallImageUrl"/></xsl:attribute>
  </xsl:element>
</xsl:element>
                             </div>
                          <div class="shopTitle">
<xsl:element name="a">
<xsl:attribute name="href">../../Auction/Auction.aspx?ProductID=<xsl:value-of select="ProductID"/></xsl:attribute>
  <xsl:value-of select="ProductName"/>
</xsl:element> 
                         </div>
                          <div class="shopPrize">
                             <span id="ProducType" class="product_type_style"><xsl:value-of select="ProductType"/></span>：
<span id="Label5" class="product_price_style">

<xsl:if test="ProductType = ''一口价'' ">
<xsl:value-of select="StandPrice"/>
</xsl:if>
<xsl:if test="ProductType = ''拍卖'' ">
<xsl:value-of select="AuctionStartPrice"/>
</xsl:if>
<xsl:if test="ProductType = ''团购'' ">
<xsl:value-of select="CurrentPrice"/>
</xsl:if>

元</span></div>     
                          <div class="shopDay" > 
                              <span id="LabMoreThenDay">剩余时间：<script>showlefttime(<xsl:value-of select="LeftTime"/>)</script></span>
                          </div>
                      </div>
                   </td>
	</tr>
</table>
</li>
</xsl:for-each>
</ul>
</div>
             <div id="PageZone" style="width:100%;">
                   {MZ.SysLabel.ShowPage allnum="20" }
               </div>
</xsl:template>
</xsl:transform>','2008-12-22 11:10:40','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('店长推荐标签','通用列表标签','<?xml version="1.0"?><root><Name>店长推荐标签</Name><Type>通用列表标签</Type><LabelType>simple</LabelType><LabelIntro>店长推荐标签</LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>720</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><SqlStr>select top @num ProductID,ProductName,shopid,LeftTime,StandPrice,AuctionStartPrice,ProductSmallImageUrl,ProductType,CurrentPrice,ValidDay From {Prefix}Product Where ShopID=@shopid and IsElite=1</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><parms><name>shopid</name><default>0</default><intro>店铺ID</intro></parms><parms><name>nums</name><default>5</default><intro>显示数量</intro></parms><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform
 version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output method="html" />
<xsl:template match="/">

<table id="DataList1" class="view" cellspacing="0" cellpadding="0" border="0" style="border-width:0px;width:100%;border-collapse:collapse;">
	<tr>
<xsl:for-each select="/NewDataSet/Table">
		<td class="item" style="width:16%;">
          <ul>
            <li class="shopImg"> 
<xsl:element name="a">
<xsl:attribute name="href">../../Auction/Auction.aspx?ProductID=<xsl:value-of select="ProductID"/></xsl:attribute>
  <xsl:element name="img">
    <xsl:attribute name="src">../../<xsl:value-of select="ProductSmallImageUrl"/></xsl:attribute>
  </xsl:element>
</xsl:element>
            </li>
            <li class="shopTitle">
<xsl:element name="a">
<xsl:attribute name="href">../../Auction/Auction.aspx?ProductID=<xsl:value-of select="ProductID"/></xsl:attribute>
  <xsl:element name="span">
    <xsl:attribute name="class">product_name_style</xsl:attribute>
    <xsl:value-of select="ProductName"/>
  </xsl:element>
</xsl:element>
            </li>
            <li class="shopPrize">
<span id="ctl00_ContentPlaceHolder1_DataList1_ctl00_ProducType" class="product_type_style">
<xsl:value-of select="ProductType"/>
</span>：<span id="ctl00_ContentPlaceHolder1_DataList1_ctl00_Label3" class="product_price_style">
<xsl:if test="ProductType = ''一口价'' ">
<xsl:value-of select="StandPrice"/>
</xsl:if>
<xsl:if test="ProductType = ''拍卖'' ">
<xsl:value-of select="AuctionStartPrice"/>
</xsl:if>
<xsl:if test="ProductType = ''团购'' ">
<xsl:value-of select="CurrentPrice"/>
</xsl:if>
元</span> 
            </li>
            <li class="shopPrize">
<span id="ctl00_ContentPlaceHolder1_DataList1_ctl00_Label6" class="product_price_style">剩余时间：<script>showlefttime(<xsl:value-of select="LeftTime"/>)</script></span> 
            </li>
        </ul>
      </td>
</xsl:for-each>
	</tr>
</table>

</xsl:template>
</xsl:transform>','2008-12-22 11:10:40','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('分类列表','通用列表标签','<?xml version="1.0"?><root><Name>分类列表</Name><Type>通用列表标签</Type><LabelType>simple</LabelType><LabelIntro></LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>720</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><SqlStr>select ClassID,ClassName from {Prefix}Class where depth=0 Order By ClassID Asc</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut /></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:hl="labelproc" exclude-result-prefixes="hl">
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<div id="CategoryList"> 
             <div id="CategoryListContainer">
               <div class=''CategoryListContainerRight''>
                     <xsl:for-each select="/NewDataSet/Table">
                          <div class=''CategoryListContainerLeft''>
                                <div class=''CategoryListTitle''>
                                       <a> <xsl:attribute name="href">{MZ.SiteConfig.SiteUrl}Browse/ShopCategory.aspx?ParentID=<xsl:value-of select="classid"/></xsl:attribute> <xsl:attribute name="title"><xsl:value-of select="classname/></xsl:attribute></a>
                                </div>
                               {MZ.Lable id="子分类列表标签" parentid="<xsl:value-of select="classid"/>"}
                          </div>
                   </xsl:for-each>
   
             </div>
         </div>
 </xsl:template>
</xsl:transform>
','2008-12-22 11:10:40','','')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('子分类列表','通用列表标签','<?xml version="1.0"?><root><Name>子分类列表</Name><Type>通用列表标签</Type><LabelType>simple</LabelType><LabelIntro></LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>0</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><SqlStr>select classID,className From {Prefix}Class Where ParentID=@parentid</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><parms><name>parentid</name><default>0</default><intro>上级分类ID</intro></parms><OutPutType>activity</OutPutType><StaticOutPut /></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform
 version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output method="html" />
<xsl:template match="/">
<style>
.zifenlei ul li{
    padding:0 60px 0 0;
    float:left;
    width:100px;
    line-height:15px;
}
</style>
<div class="zifenlei">
<div style="line-height:15px;">您可以选择下面的详细分类：</div>
<ul>
<xsl:for-each select="/NewDataSet/Table">
     <li>
<xsl:element name="a">
<xsl:attribute name="href">{$HL.Config.InstallDir/}shop/Browse/ShopCategory.aspx?othertype=all&amp;ParentID=<xsl:value-of select="ClassID"/></xsl:attribute>
  <xsl:value-of select="ClassName"/> (<xsl:value-of select="ItemCount"/>)
</xsl:element>
    </li>
</xsl:for-each>
</ul>
</div>

</xsl:template>
</xsl:transform>','2008-12-22 11:10:40','','')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('商品一级分类下拉框','通用列表标签','<?xml version="1.0"?><root><Name>商品一级分类下拉框</Name><Type>通用列表标签</Type><LabelType>data_programe</LabelType><LabelIntro></LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>720</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><SqlStr>select ClassID,ClassName,ParentID from {Prefix}Class Where  Depth=0</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:hl="labelproc" exclude-result-prefixes="hl">
<xsl:output method="html" />
<xsl:template match="/">

<xsl:for-each select="/NewDataSet/Table">

<xsl:element name="option">
<xsl:attribute name="value"><xsl:value-of select="ClassID"/></xsl:attribute>
<xsl:value-of select="ClassName"/>
</xsl:element>

</xsl:for-each>

</xsl:template>
</xsl:transform>','2008-12-22 11:10:40','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('横条搜索标签','通用系统标签','<?xml version="1.0"?><root><Name>横条搜索标签</Name><Type>通用系统标签</Type><LabelType>通用系统标签</LabelType><LabelIntro></LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>12</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><SqlStr>select classID,className from {Prefix}Class where RootID=1</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut /></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" />
<xsl:template match="/">

	<select name="SearchType" class="searchbox" id="SearchType">
		<option value="Product">搜索商品</option>
	        <option value="Shop">搜索店铺</option>
	        <option value="ShopOwner">搜索店长</option>
	</select> <input 
	name="SearchText" type="text" size="30" maxlength="50" class="searchint" id="SearchText"/> <select 
	name="SearchProductClass" class="searchbox" id="SearchProductClass" >
		<option value="0">所有分类</option>
                {MZ.Label ID="商品一级分类下拉框" }
	</select> <input 
	type="button" name="SearchButton" value=""  class="searchbtm" onClick="GoSearch()" />

	<script language="JavaScript"> 
              <![CDATA[ 
                 function GoSearch()
                 {  
                     var x_SearchType=document.getElementById("SearchType").value;
                     var x_SearchText=document.getElementById("SearchText").value;
                     var x_SearchClass=document.getElementById("SearchProductClass").value;
                     var x_SearchGoUrl="{MZ.Config.InstallDir}";
                     if (x_SearchType == "Product")
                     {
                        x_SearchGoUrl=x_SearchGoUrl+"Productlist.aspx?page=1&title="+escape(x_SearchText)+"&amp;type="+ x_SearchType + "&amp;parentid=" + x_SearchClass;
                     }
                     else
                     {
                        var x_shopsaler='''',x_shopname='''';
                        if (x_SearchType == "ShopOwner")
                        {
                           x_shopsaler = x_SearchText;
                        }
                        else
                        {
                           x_shopname = x_SearchText;
                        }
                         x_SearchGoUrl= x_SearchGoUrl+"Search_Shop.aspx?page=1&amp;shopname=" + x_shopname + "&amp;shopsaler=" + x_shopsaler + "&amp;classid=" + x_SearchClass;

                     }
                      window.location.href=x_SearchGoUrl;
                  }
              ]]>            
	</script>

</xsl:template>
</xsl:transform>
','2008-12-22 11:10:40','','')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('热门搜索标签','通用列表标签','<?xml version="1.0"?><root><Name>热门搜索标签</Name><Type>通用列表标签</Type><LabelType>通用列表标签</LabelType><LabelIntro>热门搜索标签</LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>0</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><SqlStr>select top @shownums [KeyName],[search_url],[hits] from {Prefix}HotKey Order by [hits] desc</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><parms><name>shownums</name><default>10</default><intro>显示热门关键字</intro></parms><OutPutType>activity</OutPutType><StaticOutPut /></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" />
<xsl:param name="shownums" />
<xsl:template match="/">
<ul>
	<li class=''b''><a href=''search_Product.aspx''>高级搜索</a></li><li></li><li>热门:</li>
	<xsl:for-each select="/NewDataSet/Table">
	<li><a><xsl:attribute name="href"><xsl:value-of select="search_url"/></xsl:attribute><xsl:value-of select="KeyName"/></a> / </li>
        </xsl:for-each>
</ul>
</xsl:template>
</xsl:transform>','2008-12-24 16:11:02','','')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('专题列表标签','通用列表标签','<?xml version="1.0"?><root><Name>专题列表标签</Name><Type>通用列表标签</Type><LabelType>通用列表标签</LabelType><LabelIntro>专题列表</LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>17280</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><SqlStr>select top  @Num  SpecialID,SpecialName,SpecialDir  from {Prefix}Special Where isVisible=1</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><parms><name>SetupDir</name><default>Vertical</default><intro>网站专题目录</intro></parms><parms><name>IsElite</name><default>0</default><intro>是否推荐(0,1)</intro></parms><parms><name>Num</name><default>10</default><intro>显示专题数</intro></parms><OutPutType>activity</OutPutType><StaticOutPut /></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:hl="labelproc" exclude-result-prefixes="hl">
<xsl:output method="html" />
<xsl:param name="SetupDir" />
<xsl:param name="IsElite" />
<xsl:param name="Num" />
<xsl:template match="/">

<xsl:for-each select="/NewDataSet/Table">		
<ul class="fl">
  <li>
     <a> <xsl:attribute name="href">{MZ.Config.InstallDir}Specail/Specail.aspx?ID=<xsl:value-of select="SpecialID"/></xsl:attribute> <xsl:attribute name="title"></xsl:attribute><xsl:value-of select="SpecialName"/></a></li>
</ul>
</xsl:for-each>

</xsl:template>
</xsl:transform>
','2008-12-22 11:10:40','','')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('文章列表标签','通用列表标签','<?xml version="1.0"?><root><Name>文章列表标签</Name><Type>通用列表标签</Type><LabelType>通用列表标签</LabelType><LabelIntro>按模块列出文章</LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>0</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><SqlStr>select ArticleID,ArticleType,ShortTitle,LognTitle,LinkUrl,LinkType,InputTime,IsHighDisplay,Hits,OnTop,Elite from {Prefix}IndexArticle Where ChannelID=@CID and Status=3 Order By ArticleID desc</SqlStr><PageSqlStr>SELECT count(*)  FROM HLShop_IndexArticle</PageSqlStr><EnablePage>1</EnablePage><parms><name>CID</name><default>0</default><intro>模块ID</intro></parms><OutPutType>activity</OutPutType><StaticOutPut /></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt">
<xsl:output method="html" />
<xsl:param name="CID" />


<xsl:template match="/">

<xsl:if test="node()[NewDataSet/Table= '''']">
<xsl:apply-templates select="NULLTem"/>
</xsl:if>

<style>
.list_title{width:100%;}
.list_title ul{list-type-style:none;padding:0;margin:0;}
.list_title ul li{float:left;text-align:center;font-weight:bold;}
.list_title ul  #head_title{width:50%}
.list_title ul  #head_hits{width:15%;}
.list_title ul  #head_date{width:35%;}
#list_content{width:100%;list-style-type:none;margin:0;padding:0;}
#list_content li{height:20px;line-height:20px;}
#list_content a{display:inline-block; width:50%;}
#list_content .span_hits{display:inline-block; width:15%;text-align:center;}
#list_content .span_time{display:inline-block; width:35%;}
</style>
<div class="list_title" >
     <ul>
        <li id="head_title">文章标题</li>
        <li id="head_hits">浏览量</li>
        <li id="head_date">发表日期</li>
    </ul>
</div>
<div style="clear:both;"></div>
<ul id="list_content">
<xsl:for-each select="NewDataSet/Table">
  <li><span class="span_title">
    <a>       
      <xsl:attribute name="href">
           <xsl:choose>
                <xsl:when test="LinkType=''0''">
                        index.aspx?aid=<xsl:value-of select="ArticleID"/>
               </xsl:when>
               <xsl:otherwise>
                         <xsl:value-of select="LinkUrl"/>
               </xsl:otherwise>
           </xsl:choose>
        </xsl:attribute>
        <xsl:attribute name="title"><xsl:value-of select="ShortTitle"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>
         <xsl:choose>
                <xsl:when test="IsHighDisplay=1">
                     <span Class="H"><xsl:value-of select="ShortTitle"/></span> 
               </xsl:when>
               <xsl:otherwise>
                        <xsl:value-of select="ShortTitle"/>
               </xsl:otherwise>
           </xsl:choose>
         </a>
        </span>
        <span class="span_hits"><xsl:value-of select="Hits"/></span>
        <span class="span_time"><xsl:value-of   select="InputTime"  /></span>

   </li>
</xsl:for-each>
</ul>
</xsl:template>
<xsl:template match="NULLTem">暂无数据</xsl:template>
</xsl:transform>
','2008-12-22 11:10:40','','')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('首页轮显标签','通用系统标签','<?xml version="1.0"?><root><Name>首页轮显标签</Name><Type>通用系统标签</Type><LabelType>通用系统标签</LabelType><LabelIntro>首页轮显标签</LabelIntro><LabelDataType>sql_sysquery</LabelDataType><CacheTime>720</CacheTime><OutType>data_programe</OutType><ConnStr></ConnStr><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut><SqlStr>select  [ArticleID],  [LinkType], [ArticleType], [ShortTitle], [LinkUrl],  [UploadPicUrl], [IsHighDisplay] from {Prefix}IndexArticle Where 
ArticleID in(select top @TextNum [ArticleID] where ChannelID=@moduleID and status=3 and ArticleType=''Text'' Order By ArticleID desc)   
or
ArticleID in(select top @ImgNum [ArticleID] where ChannelID=@moduleID and status=3 and ArticleType=''IMG'' Order By ArticleID desc)
or
ArticleID in(select top @TextImgNum [ArticleID] where ChannelID=@moduleID and status=3 and ArticleType=''IMGText'' Order By ArticleID desc)
Order by ArticleType asc, ArticleID desc</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><parms><name>moduleID</name><default>9</default><intro>文章模块ID</intro></parms><parms><name>TextNum</name><default>0</default><intro>纯文字文章条数</intro></parms><parms><name>ImgNum</name><default>0</default><intro>纯图片文章条数</intro></parms><parms><name>TextImgNum</name><default>6</default><intro>图文文章条数</intro></parms></root>','<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">

<script type="text/javascript">  
   var IndexFlash=[ <xsl:call-template name="IMGTextList">
           <xsl:with-param name="DataTable" select="/NewDataSet/Table[ArticleType=''IMGText'']"/>
           </xsl:call-template>["","",""]]; 
</script>

</xsl:template>


<xsl:template name="IMGTextList">
<xsl:param name="DataTable"/>
<xsl:for-each select="$DataTable">
               <xsl:choose>
                  <xsl:when test="LinkType=''0''">
                       ["<xsl:value-of select="ShortTitle"/>","<xsl:value-of 
select="UploadPicUrl"/>","<xsl:value-of select="LinkUrl"/>"],
                 </xsl:when>
                 <xsl:otherwise>
                       ["<xsl:value-of select="ShortTitle"/>","{MZ.Config.SiteUrl}<xsl:value-of 
select="UploadPicUrl"/>","<xsl:value-of select="LinkUrl"/>"],
                 </xsl:otherwise>
               </xsl:choose>
    
            
 </xsl:for-each>


</xsl:template>

</xsl:transform>','2008-12-22 11:10:40','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('网站友情链接','通用系统标签','<?xml version="1.0"?><root><Name>网站友情链接</Name><Type>通用系统标签</Type><LabelType>simple</LabelType><LabelIntro>网站底部友情链接</LabelIntro><LabelDataType>static</LabelDataType><CacheTime>0</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><SqlStr></SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut></root>','<div class="link">
  <div class="lnk">
    <div class="ln"><div>
    <h2>友情链接：</h2>
	<ul>
	<li><a href="http://shop.jaju.cn" target="_blank">家具网</a></li>
	</ul>
    </div></div>
  </div>
</div>','2008-12-22 11:10:40','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('网站底部标签','通用系统标签','<?xml version="1.0"?><root><Name>网站底部标签</Name><Type>通用系统标签</Type><LabelType>simple</LabelType><LabelIntro>网站底部标签</LabelIntro><LabelDataType>static</LabelDataType><CacheTime>0</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><SqlStr></SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut></root>','<div class="copyright">
{MZ.Config.CopyRight}
</div>','2008-12-24 9:53:42','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('网站顶部标签','通用系统标签','<?xml version="1.0"?><root><Name>网站顶部标签</Name><Type>通用系统标签</Type><LabelType>simple</LabelType><LabelIntro></LabelIntro><LabelDataType>static</LabelDataType><CacheTime>0</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><SqlStr>select classID,className From HLShop_Class where RootID=0</SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut></root>','<div class="head">
    <div class="hl"></div>
    <div class="hm">
        <div class="mt">
          <div class="logo">{MZ.Config.Logo}</div>
          <div class="fr">
            <div class="t1">
              <div class="fl">
<script>
if ({MZ.Config.LogingUserID}==0){
	document.write("你好，欢迎光临{MZ.Config.SiteName}！ 请 <a href=''/passport/login.aspx'' class=''blue''>登录</a> 或 <a href=''/passport/userreg.aspx'' class=''blue''>注册</a>");
}else{
	document.write("你好 <span class=''red''>{MZ.Config.UserCookies}</span>，欢迎光临！ <a href=''/passport/Logout.aspx\'' onClick=\"return confirm(''确定退出本次登录吗？'')\"> [退出]</a>");
}
</script>
              </div>
              <div class="fr"><a href="/categorylist.aspx">我要买</a> | <a href="/saleproduct.aspx">我要卖</a> | <a href="/member/index.aspx">我的商城</a> | <a href="/shoppingcart.aspx">购物车</a> | </a> <a href=''/Member/Shop_Message.aspx''>短消息</a> | <a href=''/Member/Shop_MyFavourite.aspx''>收藏夹</a> | <a href=''http://www.mall-z.com''>帮助中心</a></div>
            </div>
            <div class="t2">
            <ul class="fl">
			  <li id="home"><a href="/">首 页</a></li>
			  <li id="news"><a href="/ArticleList.aspx">新闻中心</a></li>
			  <li id="market"><a href="/ProductList.aspx?type=market">商品集市</a></li>
			  <li id="auctionMall"><a href="/ProductList.aspx?type=auctionMall">拍卖市场</a></li>
			  <li id="teamBuy"><a href="/ProductList.aspx?type=teamBuy">团购广场</a></li>
			  <li id="shop"><a href="/shopclass.aspx">店铺大厅</a></li>
			</ul>
            <ul class="fr"><li><a href="#new">新品推荐</a></li><li><a href="#hot">热销商品</a></li><li><a href="/ProductList.aspx?seleshow=secondhandL">二手精品</a></li></ul>
            </div>
          </div>
        </div>
        <div class="mb">
          <div class="sp">
            <ul style="float:left; padding:11px 0 0 5px;"><img src="/images/btm2.gif" /></ul>
            {MZ.Label ID="专题列表标签" Num="10" }
            <ul class="fr"><li><a href="http://www.mall-z.com" class="f69">技术论坛</a></li><li><a href="/member/index.aspx" class="f69">会员中心</a></li></ul>
          </div>
          <div class="se">
            <p>{MZ.Label ID="横条搜索标签" }</p>
            {MZ.Label ID="热门搜索标签" shownums="8" }
          </div>
        </div>
    </div>
    <div class="hr"></div>
</div>','2008-12-25 16:01:01','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('会员中心头部标签','通用系统标签','<?xml version="1.0"?><root><Name>会员中心头部标签</Name><Type>通用系统标签</Type><LabelType>simple</LabelType><LabelIntro>会员中心头</LabelIntro><LabelDataType>static</LabelDataType><CacheTime>17280</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><OutPutType>activity</OutPutType><StaticOutPut>.html</StaticOutPut><SqlStr></SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage></root>','<div class="Head">
	<div class="HeadTop">
		<div class="fl">
        	<a href="/"><img src="/Images/member/logo.gif" ></a>    
		</div>	     
		<div class="fr">
		<p>
			<a href="/categorylist.aspx">我要买</a> | <a href="/saleproduct.aspx">我要卖</a> | <a href="/member/index.aspx">我的商城</a> | <a href="/shoppingcart.aspx">购物车</a> | </a> <a href=''/Member/Shop_Message.aspx''>短消息</a> | <a href=''/Member/Shop_MyFavourite.aspx''>收藏夹</a> | <a href=''/lastvisited.aspx'' target=''_blank''>最近浏览</a> | <a href=''http://www.mall-z.com''>帮助中心</a>											
		</p>
		<ul>
			<li><a href="/">商城首页</a></li>
			<li><a href="javascript:void(0)" onclick="initContent(''Shop_BuyManageOrder.aspx'')">我的订单</a></li>
			<li><a href="javascript:void(0)" onclick="initContent(''Shop_MyAuctionProduct.aspx'')">我在竞拍</a></li>
			<li><a href="javascript:void(0)" onclick="initContent(''Shop_buyTeam.aspx'')">我在团购</a></li>
			<li><a href="javascript:void(0)" onclick="initContent(''Shop_Saler_Message.aspx'')">我的留言</a></li>
			<li><a href="javascript:void(0)" onclick="initContent(''Shop_MyFavourite.aspx'')">我的收藏</a></li>
		</ul>
		</div>
	</div>
	<div class="HeadBot">
		<div class="fl"><ul><li class="act" onclick="switchInfo(this, ''buyer'');">我是买家</li><li onclick="switchInfo(this, ''saler'');">我是卖家</li></ul></div>
		<div class="fl">
<script>
if ({MZ.Config.LogingUserID}==0){
	document.write(" 你好，欢迎光临{MZ.Config.SiteName}！ 请 <a href=''/passport/login.aspx''>登录</a> 或 <a href=''/passport/userreg.aspx''>注册</a>");
}else{
	document.write(" 你好 <span class=''red''>{MZ.Config.UserCookies}</span>，欢迎光临！ <a href=''/passport/Logout.aspx\'' onClick=\"return confirm(''确定退出本次登录吗？'')\"> [退出]</a>");
}
</script>
		</div>
		<div class="fr">{MZ.Label ID="横条搜索标签" }</div>
	</div>
</div>','2008-12-22 11:10:40','activity','.html')
GO
INSERT INTO [{$DataBasePrefix$}Label](Name,Type,Define,Template,UpdateTime,OutPutType,StaticOutPut) VALUES('拼音索引','通用系统标签','<?xml version="1.0"?><root><Name>拼音索引</Name><Type>通用系统标签</Type><LabelType>simple</LabelType><LabelIntro>拼音索引商品分类</LabelIntro><LabelDataType>static</LabelDataType><CacheTime>0</CacheTime><OutType>simple</OutType><ConnStr></ConnStr><OutPutType>static</OutPutType><StaticOutPut>pingyinyinsuo.html</StaticOutPut><SqlStr></SqlStr><PageSqlStr></PageSqlStr><EnablePage>0</EnablePage></root>','<style>
	  .classlist ul li{float:left; width:80px;}
	  .classlist{padding-left:10px;}
	  .classlist a{font-weight:normal;}
</style>
<div style="display:none;" class=''classlist'' id="DivClassByInitials" style="position:absolute; width:650px; border:1px #CCC solid; background-color:#FFFCD2; line-height:25px;" onmouseover="this.style.display=''''" onmouseout="return HiddenClassDiv()"></div>
	  <script>
	    function ShowClassDiv(initials)
	    {
	        document.getElementById(''DivClassByInitials'').style.display='''';
	        var _ajax_=new HttpAjax();
	        var xmlReq = _ajax_.createXMLHttpRequest();
	        xmlReq.open("GET","/WebService/ShopService.ashx?Action=GetClassByInitials&initials="+initials+"&Rnd="+Math.random(),true);
	        xmlReq.send(null);
	        xmlReq.onreadystatechange = function() {if(xmlReq.readyState == 4){
	            var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
	            if(xmldoc.load(xmlReq.responseXML))
	            {
	                var nodelist = xmldoc.documentElement.selectNodes("//Table");
	                var str = "<ul>";
	                for(var i= 0;i<nodelist.length;i++)
                     {
                         str += "<li><a";
if(nodelist[i].selectSingleNode("OpenType").firstChild.nodeValue == "1")
str += "target=_blank ";
str +=" href=''ProductList.aspx?ClassID="+nodelist[i].selectSingleNode("ClassID").firstChild.nodeValue +"''>"+nodelist[i].selectSingleNode("ClassName").firstChild.nodeValue+"</a></li>";
                     }
                     str += "</ul>";
	                document.getElementById(''DivClassByInitials'').innerHTML = str;
	            }
	        }}
	    }
	    function HiddenClassDiv()
	    {
	        document.getElementById(''DivClassByInitials'').style.display=''none'';
	    }
	  </script>
	  <a onmouseover="return ShowClassDiv(''a'')" onmouseout="return HiddenClassDiv()">a</a> | 
	  <a onmouseover="return ShowClassDiv(''b'')" onmouseout="return HiddenClassDiv()">b</a> | 
	  <a onmouseover="return ShowClassDiv(''c'')" onmouseout="return HiddenClassDiv()">c</a> | 
	  <a onmouseover="return ShowClassDiv(''d'')" onmouseout="return HiddenClassDiv()">d</a> | 
	  <a onmouseover="return ShowClassDiv(''e'')" onmouseout="return HiddenClassDiv()">e</a> | 
	  <a onmouseover="return ShowClassDiv(''f'')" onmouseout="return HiddenClassDiv()">f</a> | 
	  <a onmouseover="return ShowClassDiv(''g'')" onmouseout="return HiddenClassDiv()">g</a> | 
	  <a onmouseover="return ShowClassDiv(''h'')" onmouseout="return HiddenClassDiv()">h</a> | 
	  <a onmouseover="return ShowClassDiv(''g'')" onmouseout="return HiddenClassDiv()">g</a> | 
	  <a onmouseover="return ShowClassDiv(''k'')" onmouseout="return HiddenClassDiv()">k</a> | 
	  <a onmouseover="return ShowClassDiv(''l'')" onmouseout="return HiddenClassDiv()">l</a> | 
	  <a onmouseover="return ShowClassDiv(''m'')" onmouseout="return HiddenClassDiv()">m</a> | 
	  <a onmouseover="return ShowClassDiv(''n'')" onmouseout="return HiddenClassDiv()">n</a> | 
	  <a onmouseover="return ShowClassDiv(''o'')" onmouseout="return HiddenClassDiv()">o</a> | 
	  <a onmouseover="return ShowClassDiv(''p'')" onmouseout="return HiddenClassDiv()">p</a> | 
	  <a onmouseover="return ShowClassDiv(''q'')" onmouseout="return HiddenClassDiv()">q</a> | 
	  <a onmouseover="return ShowClassDiv(''r'')" onmouseout="return HiddenClassDiv()">r</a> | 
	  <a onmouseover="return ShowClassDiv(''s'')" onmouseout="return HiddenClassDiv()">s</a> | 
	  <a onmouseover="return ShowClassDiv(''t'')" onmouseout="return HiddenClassDiv()">t</a> | 
	  <a onmouseover="return ShowClassDiv(''u'')" onmouseout="return HiddenClassDiv()">u</a> | 
	  <a onmouseover="return ShowClassDiv(''w'')" onmouseout="return HiddenClassDiv()">w</a> | 
	  <a onmouseover="return ShowClassDiv(''x'')" onmouseout="return HiddenClassDiv()">x</a> | 
	  <a onmouseover="return ShowClassDiv(''y'')" onmouseout="return HiddenClassDiv()">y</a> | 
	  <a onmouseover="return ShowClassDiv(''z'')" onmouseout="return HiddenClassDiv()">z</a>','2008-12-30 17:50:43','static','pingyinyinsuo.html')
