
if exists (select 1
          from sysobjects
          where  id = object_id('sp_Account_ChangeIntegral')
          and type in ('P','PC'))
   drop procedure sp_Account_ChangeIntegral
   
exec('
---用户积分变化
CREATE PROCEDURE [sp_Account_ChangeIntegral]
(
	@userID int,
	@integral int,
	@isChangeTotalIntegral bit,
	@changeLevel int output
)
AS
BEGIN
	IF(@isChangeTotalIntegral=0) 
	BEGIN
		UPDATE T_UserAccount SET UsableIntegral=UsableIntegral+@integral WHERE id=@UserID
		UPDATE T_UserAccount SET TodayIntegral=TodayIntegral+@integral WHERE id=@UserID
		
	END 
	else
	BEGIN
		UPDATE T_UserAccount SET UsableIntegral=UsableIntegral+@integral WHERE id=@UserID
		UPDATE T_UserAccount SET TodayIntegral=TodayIntegral+@integral WHERE id=@UserID
	
		UPDATE T_UserAccount SET TotalIntegral=TotalIntegral+@integral WHERE id=@UserID
		declare @userLevel int
		declare @userIteratedIntegral int
		declare @newLevel int
		set @userLevel=(select [Userlevel] from T_UserAccount WHERE id=@UserID)
		set @userIteratedIntegral=(select TotalIntegral from T_UserAccount WHERE id=@UserID)
		set @newLevel=(select top 1 [level] from T_Data_Level WHERE @userIteratedIntegral>=Integral order by [level] desc)
		if(@newLevel<>@userLevel)
		begin
			UPDATE T_UserAccount SET [Userlevel]=@newLevel WHERE id=@UserID
			set @changeLevel=@newLevel-@userLevel
		end
		else
			set @changeLevel=0
	END 
END')






if exists (select 1
            from  sysobjects
           where  id = object_id('T_Application')
            and   type = 'U')
   drop table T_Application


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Area')
            and   type = 'U')
   drop table T_Area


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Article')
            and   type = 'U')
   drop table T_Article


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Article_Class')
            and   type = 'U')
   drop table T_Article_Class


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Article_Content')
            and   type = 'U')
   drop table T_Article_Content


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Article_Slide')
            and   type = 'U')
   drop table T_Article_Slide


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Class')
            and   type = 'U')
   drop table T_Class


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Comment')
            and   type = 'U')
   drop table T_Comment


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Company')
            and   type = 'U')
   drop table T_Company


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Company_Class')
            and   type = 'U')
   drop table T_Company_Class


if exists (select 1
            from  sysindexes
           where  id    = object_id('T_Company_Product')
            and   name  = 'IX_Company_Product_CompanyId'
            and   indid > 0
            and   indid < 255)
   drop index T_Company_Product.IX_Company_Product_CompanyId


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Company_Product')
            and   type = 'U')
   drop table T_Company_Product


if exists (select 1
            from  sysobjects
           where  id = object_id('T_ConvPhone')
            and   type = 'U')
   drop table T_ConvPhone


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Data_Level')
            and   type = 'U')
   drop table T_Data_Level


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Dict')
            and   type = 'U')
   drop table T_Dict


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Dict_Class')
            and   type = 'U')
   drop table T_Dict_Class


if exists (select 1
            from  sysobjects
           where  id = object_id('T_EditOnline_File')
            and   type = 'U')
   drop table T_EditOnline_File


if exists (select 1
            from  sysobjects
           where  id = object_id('T_EditOnline_File_Version')
            and   type = 'U')
   drop table T_EditOnline_File_Version


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Email_Task')
            and   type = 'U')
   drop table T_Email_Task


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Email_Template')
            and   type = 'U')
   drop table T_Email_Template


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Html_Master')
            and   type = 'U')
   drop table T_Html_Master


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Html_MasterFile')
            and   type = 'U')
   drop table T_Html_MasterFile


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Html_Route')
            and   type = 'U')
   drop table T_Html_Route


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Img')
            and   type = 'U')
   drop table T_Img


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Info')
            and   type = 'U')
   drop table T_Info


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Info_Class')
            and   type = 'U')
   drop table T_Info_Class


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Info_Content')
            and   type = 'U')
   drop table T_Info_Content


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Link')
            and   type = 'U')
   drop table T_Link


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Navigation')
            and   type = 'U')
   drop table T_Navigation


if exists (select 1
            from  sysobjects
           where  id = object_id('T_NewHouse')
            and   type = 'U')
   drop table T_NewHouse


if exists (select 1
            from  sysobjects
           where  id = object_id('T_NewHouse_Brief')
            and   type = 'U')
   drop table T_NewHouse_Brief


if exists (select 1
            from  sysobjects
           where  id = object_id('T_NewHouse_Slide')
            and   type = 'U')
   drop table T_NewHouse_Slide


if exists (select 1
            from  sysobjects
           where  id = object_id('T_News')
            and   type = 'U')
   drop table T_News


if exists (select 1
            from  sysobjects
           where  id = object_id('T_News_Content')
            and   type = 'U')
   drop table T_News_Content


if exists (select 1
            from  sysobjects
           where  id = object_id('T_OperateType')
            and   type = 'U')
   drop table T_OperateType


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Recommend')
            and   type = 'U')
   drop table T_Recommend


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Recommend_Class')
            and   type = 'U')
   drop table T_Recommend_Class


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Sales')
            and   type = 'U')
   drop table T_Sales


if exists (select 1
            from  sysobjects
           where  id = object_id('T_SinglePage')
            and   type = 'U')
   drop table T_SinglePage


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Site_Config')
            and   type = 'U')
   drop table T_Site_Config


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Slide')
            and   type = 'U')
   drop table T_Slide


if exists (select 1
            from  sysobjects
           where  id = object_id('T_SysLog')
            and   type = 'U')
   drop table T_SysLog


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Template')
            and   type = 'U')
   drop table T_Template


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Template_Tag')
            and   type = 'U')
   drop table T_Template_Tag


if exists (select 1
            from  sysobjects
           where  id = object_id('T_UserAccount')
            and   type = 'U')
   drop table T_UserAccount


if exists (select 1
            from  sysobjects
           where  id = object_id('T_UserHistory')
            and   type = 'U')
   drop table T_UserHistory


if exists (select 1
            from  sysobjects
           where  id = object_id('T_VerifyCode')
            and   type = 'U')
   drop table T_VerifyCode


if exists (select 1
            from  sysobjects
           where  id = object_id('T_ViewHistory')
            and   type = 'U')
   drop table T_ViewHistory


if exists (select 1
            from  sysobjects
           where  id = object_id('T_YellowPage')
            and   type = 'U')
   drop table T_YellowPage


if exists (select 1
            from  sysobjects
           where  id = object_id('T_YellowPage_Class')
            and   type = 'U')
   drop table T_YellowPage_Class


if exists (select 1
            from  sysobjects
           where  id = object_id('T_YellowPage_Content')
            and   type = 'U')
   drop table T_YellowPage_Content

   
if exists (select 1
            from  sysobjects
           where  id = object_id('T_BBS_Board')
            and   type = 'U')
   drop table T_BBS_Board

if exists (select 1
            from  sysobjects
           where  id = object_id('T_BBS_Master')
            and   type = 'U')
   drop table T_BBS_Master

if exists (select 1
            from  sysobjects
           where  id = object_id('T_BBS_Re')
            and   type = 'U')
   drop table T_BBS_Re


if exists (select 1
            from  sysobjects
           where  id = object_id('T_BBS_Topic')
            and   type = 'U')
   drop table T_BBS_Topic


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Ad_Place')
            and   type = 'U')
   drop table T_Ad_Place


/*==============================================================*/
/* Table: T_Ad_Place                                            */
/*==============================================================*/
create table T_Ad_Place (
   Id                   int                  identity,
   AdType               tinyint              null,
   Name                 varchar(50)          null,
   Width                int                  null,
   Height               int                  null,
   Status               tinyint              null,
   Remark               varchar(2000)        null,
   constraint PK_T_AD_PLACE primary key (Id)
)



if exists (select 1
            from  sysindexes
           where  id    = object_id('T_Ad')
            and   name  = 'IX_Ad_PlaceId'
            and   indid > 0
            and   indid < 255)
   drop index T_Ad.IX_Ad_PlaceId


if exists (select 1
            from  sysobjects
           where  id = object_id('T_Ad')
            and   type = 'U')
   drop table T_Ad


/*==============================================================*/
/* Table: T_Ad                                                  */
/*==============================================================*/
create table T_Ad (
   Id                   int                  identity,
   PlaceId              int                  null,
   AdType               tinyint              null,
   Name                 varchar(50)          null,
   Url                  varchar(500)         null,
   Width                int                  null,
   Height               int                  null,
   Img1                 int                  null,
   Img2                 int                  null,
   File1                varchar(150)         null,
   File2                varchar(150)         null,
   Script               varchar(1000)        null,
   StartDate            datetime             null,
   EndDate              datetime             null,
   Status               tinyint              null,
   Remark               varchar(500)         null,
   OrderIndex           int                  null,
   constraint PK_T_AD primary key (Id)
)


/*==============================================================*/
/* Index: IX_Ad_PlaceId                                         */
/*==============================================================*/
create index IX_Ad_PlaceId on T_Ad (
PlaceId ASC
)




/*==============================================================*/
/* Table: T_Application                                         */
/*==============================================================*/
create table T_Application (
   Id                   int                  not null,
   Name                 varchar(500)         null,
   Code                 varchar(500)         null,
   Total                int                  null,
   NotReviewed          int                  null,
   Status               float                null,
   constraint PK_T_APPLICATION primary key (Id)
)


/*==============================================================*/
/* Table: T_Area                                                */
/*==============================================================*/
create table T_Area (
   Id                   int                  not null,
   Name                 varchar(500)         null,
   Code                 varchar(500)         null,
   ParentId             int                  null,
   OrderIndex           int                  null,
   Status               tinyint              null,
   constraint PK_T_AREA primary key (Id)
)


/*==============================================================*/
/* Table: T_Article                                             */
/*==============================================================*/
create table T_Article (
   Id                   int                  identity,
   AddUserId            int                  null,
   ClassId              int                  null,
   RedirectUrl          varchar(500)         null,
   CoverId              int                  null,
   IncludeSlide         bit                  null,
   Title                varchar(200)         null,
   SubTitle             varchar(200)         null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   Depict               varchar(500)         null,
   Keyword              varchar(200)         null,
   Source               varchar(50)          null,
   Author               varchar(50)          null,
   Editor               varchar(50)          null,
   AddTime              datetime             null,
   AddSysTime           datetime             null default getdate(),
   OrderIndex           int                  null,
   Status               int                  null,
   ViewCount            int                  null,
   ViewCount24H         int                  null,
   ViewCount7Days       int                  null,
   ViewCountMonth       int                  null,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   IsDelete             bit                  not null default 0,
   constraint PK_T_ARTICLE primary key (Id)
)


/*==============================================================*/
/* Table: T_Article_Class                                       */
/*==============================================================*/
create table T_Article_Class (
   Id                   int                  not null,
   Name                 varchar(50)          null,
   Code                 varchar(50)          null,
   ParentId             int                  null,
   OrderIndex           int                  null,
   TitleSEO             varchar(500)         null,
   KeywordSEO           varchar(500)         null,
   DepictSEO            varchar(500)         null,
   ListPageTemplate     varchar(200)         null,
   DetailPageTemplate   varchar(200)         null,
   Status               tinyint              null,
   constraint PK_T_ARTICLE_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_Article_Content                                     */
/*==============================================================*/
create table T_Article_Content (
   ArticleId            int                  not null,
   Content              text                 null,
   constraint PK_T_ARTICLE_CONTENT primary key (ArticleId)
)


/*==============================================================*/
/* Table: T_Article_Slide                                       */
/*==============================================================*/
create table T_Article_Slide (
   Id                   int                  identity,
   ArticleId            int                  null,
   ImgId                int                  null,
   constraint PK_T_ARTICLE_SLIDE primary key (Id)
)


/*==============================================================*/
/* Table: T_Class                                               */
/*==============================================================*/
create table T_Class (
   Id                   int                  identity,
   GroupId              int                  not null,
   ClassId              int                  null,
   ClassName            varchar(500)         null,
   AddTime              datetime             null default getdate(),
   OrderIndex           int                  null,
   constraint PK_T_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_Comment                                             */
/*==============================================================*/
create table T_Comment (
   Id                   int                  identity,
   GroupId              int                  null,
   ObjectId             int                  null,
   QuoteId              int                  null,
   AddUser              int                  null,
   Body                 varchar(1000)        null,
   AddTime              datetime             null,
   LastReTime           datetime             null,
   Status               tinyint              null,
   constraint PK_T_COMMENT primary key (Id)
)


/*==============================================================*/
/* Table: T_Company                                             */
/*==============================================================*/
create table T_Company (
   Id                   int                  identity,
   ClassId              int                  not null,
   AddUserId            int                  null,
   TemplateId           int                  null,
   AreaId               int                  null,
   Redirect             varchar(200)         null,
   Domain               varchar(50)          null,
   Name                 varchar(50)          not null,
   NameColor            varchar(50)          null,
   NameIsBold           bit                  null,
   CoverId              int                  null,
   TopImg               int                  null,
   Tel1                 varchar(50)          null,
   Tel2                 varchar(50)          null,
   BusinessHours        varchar(50)          null,
   Address              varchar(200)         null,
   MapPoint             varchar(100)         null,
   Fax                  varchar(50)          null,
   Contact              varchar(50)          null,
   Content              text                 null,
   Depict               varchar(500)         null,
   IsCheckLicense       bit                  null,
   IsPartner            bit                  null,
   Status               int                  null,
   AddTime              datetime             not null default getdate(),
   OrderIndex           int                  null,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   IsDelete             bit                  not null default 0,
   ViewCount            int                  not null default 0,
   ViewCount24H         int                  not null default 0,
   ViewCount7Days       int                  not null default 0,
   ViewCountMonth       int                  not null default 0,
   constraint PK_T_COMPANY primary key (Id)
)


/*==============================================================*/
/* Table: T_Company_Class                                       */
/*==============================================================*/
create table T_Company_Class (
   Id                   int                  not null,
   Name                 varchar(50)          null,
   ParentId             int                  null,
   Code                 varchar(100)         null,
   Status               tinyint              null,
   Depict               varchar(1000)        null,
   OrderIndex           int                  null,
   DepictSEO            varchar(500)         null,
   TitleSEO             varchar(500)         null,
   KeywordSEO           varchar(500)         null,
   ListPageTemplate     varchar(200)         null,
   DetailPageTemplate   varchar(200)         null,
   constraint PK_T_COMPANY_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_Company_Product                                     */
/*==============================================================*/
create table T_Company_Product (
   Id                   int                  identity,
   AddUserId            int                  null,
   CompanyId            int                  null,
   CoverId              int                  null,
   Title                varchar(200)         null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   Price                float                null,
   Brand                varchar(50)          null,
   Depict               varchar(500)         null,
   Content              text                 null,
   UpdateTime           datetime             null,
   AddTime              datetime             null,
   OrderIndex           int                  null,
   Status               int                  null,
   IsDelete             bit                  not null default 0,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   constraint PK_T_COMPANY_PRODUCT primary key (Id)
)


/*==============================================================*/
/* Index: IX_Company_Product_CompanyId                          */
/*==============================================================*/
create index IX_Company_Product_CompanyId on T_Company_Product (
CompanyId ASC
)


/*==============================================================*/
/* Table: T_ConvPhone                                           */
/*==============================================================*/
create table T_ConvPhone (
   Id                   int                  identity,
   ClassId              int                  null,
   Title                varchar(200)         not null,
   Phone                varchar(100)         null default getdate(),
   Url                  varchar(500)         null,
   Color                varchar(50)          null,
   IsBold               bit                  null,
   Depict               varchar(1000)        null,
   ToIndex              bit                  null,
   OrderIndex           int                  null,
   AddTime              datetime             not null default getdate(),
   constraint PK_T_CONVPHONE primary key (Id)
)


/*==============================================================*/
/* Table: T_Data_Level                                          */
/*==============================================================*/
create table T_Data_Level (
   Level                int                  not null,
   Name                 varchar(500)         null,
   Integral             float                null,
   constraint PK_T_DATA_LEVEL primary key (Level)
)


/*==============================================================*/
/* Table: T_Dict                                                */
/*==============================================================*/
create table T_Dict (
   Id                   int                  identity,
   ClassId              int                  not null,
   ItemId               int                  null,
   ItemName             varchar(500)         null,
   OrderIndex           int                  null,
   constraint PK_T_DICT primary key (Id)
)


/*==============================================================*/
/* Table: T_Dict_Class                                          */
/*==============================================================*/
create table T_Dict_Class (
   Id                   int                  not null,
   Name                 varchar(500)         null,
   constraint PK_T_DICT_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_EditOnline_File                                     */
/*==============================================================*/
create table T_EditOnline_File (
   Id                   int                  identity,
   FileType             tinyint              null,
   "File"               varchar(500)         null,
   Name                 varchar(500)         null,
   LastEditTime         datetime             null,
   constraint PK_T_EDITONLINE_FILE primary key (Id)
)


/*==============================================================*/
/* Table: T_EditOnline_File_Version                             */
/*==============================================================*/
create table T_EditOnline_File_Version (
   Id                   int                  identity,
   FileId               int                  null,
   TemplateId           int                  null,
   Content              text                 null,
   VersionNumber        int                  null,
   EditTime             datetime             not null default getdate(),
   EditUser             int                  null,
   constraint PK_T_EDITONLINE_FILE_VERSION primary key (Id)
)


/*==============================================================*/
/* Table: T_Email_Task                                          */
/*==============================================================*/
create table T_Email_Task (
   Id                   int                  identity,
   "From"               varchar(100)         null,
   "To"                 varchar(100)         null,
   Title                varchar(100)         null,
   Body                 text                 null,
   IsHtml               bit                  null,
   SendNum              int                  null,
   Level                tinyint              null
)


/*==============================================================*/
/* Table: T_Email_Template                                      */
/*==============================================================*/
create table T_Email_Template (
   Id                   int                  identity,
   Name                 varchar(50)          null,
   Title                varchar(100)         null,
   Body                 text                 null,
   IsSys                bit                  null,
   AddTime              datetime             null,
   ModifyTime           datetime             null,
   Status               tinyint              null,
   IsHtml               bit                  null,
   Remark               text                 null,
   constraint PK_T_EMAIL_TEMPLATE primary key (Id)
)


/*==============================================================*/
/* Table: T_Html_Master                                         */
/*==============================================================*/
create table T_Html_Master (
   Id                   int                  identity,
   "Rule"               varchar(500)         null,
   MasterFile           varchar(500)         null,
   CreateInterval       int                  null,
   Status               tinyint              null,
   Method               varchar(50)          null
)


/*==============================================================*/
/* Table: T_Html_MasterFile                                     */
/*==============================================================*/
create table T_Html_MasterFile (
   Id                   int                  identity,
   Name                 varchar(50)          null,
   "File"               varchar(500)         null,
   Depict               text                 null,
   LastModifyTime       datetime             null,
   constraint PK_T_HTML_MASTERFILE primary key (Id)
)


/*==============================================================*/
/* Table: T_Html_Route                                          */
/*==============================================================*/
create table T_Html_Route (
   Id                   int                  identity,
   Name                 varchar(50)          null,
   "From"               varchar(1000)        null,
   "To"                 varchar(1000)        null,
   Status               tinyint              null
)


/*==============================================================*/
/* Table: T_Img                                                 */
/*==============================================================*/
create table T_Img (
   Id                   int                  identity,
   ObjectId             int                  null,
   ObjectType           int                  not null,
   Name                 varchar(100)         null,
   Depict               varchar(1000)        null,
   "Group"              int                  null,
   "File"               varchar(500)         null,
   MThumbnail           varchar(500)         null,
   Thumbnail            varchar(500)         null,
   Length               bigint               null,
   GUID                 varchar(100)         null,
   AddTime              datetime             null,
   OrderIndex           int                  null,
   constraint PK_T_IMG primary key (Id)
)


/*==============================================================*/
/* Table: T_Info                                                */
/*==============================================================*/
create table T_Info (
   Id                   int                  identity,
   ClassId              int                  not null,
   AddUserId            int                  not null,
   AreaId               int                  null,
   Title                varchar(200)         null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   CoverId              int                  null,
   SupplyAndDemand      tinyint              null,
   DegreeOfAging        float                null,
   Bedrooms             int                  null,
   Hall                 int                  null,
   HouseSpace           float                null,
   HouseAge             float                null,
   Floor                int                  null,
   TotalFloor           int                  null,
   Contact              varchar(100)         null,
   Address              varchar(200)         null,
   Tel                  varchar(100)         null,
   MobilePhone          varchar(100)         null,
   QQ                   varchar(20)          null,
   Depict               varchar(1000)        null,
   Company              varchar(100)         null,
   HireCount            int                  null,
   Price                float                null,
   AddTime              datetime             null,
   EndTime              datetime             null,
   Status               tinyint              null,
   OrderIndex           int                  null,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   MapPoint             varchar(200)         null,
   IsDelete             bit                  not null default 0,
   ViewCount            int                  not null default 0,
   ViewCount24H         int                  not null default 0,
   ViewCount7Days       int                  not null default 0,
   ViewCountMonth       int                  not null default 0,
   ManagePassword       varchar(50)          null,
   RefreshTime          datetime             null,
   constraint PK_T_INFO primary key (Id)
)

/*==============================================================*/
/* Table: T_Info_Class                                          */
/*==============================================================*/
create table T_Info_Class (
   Id                   int                  not null,
   Name                 varchar(50)          null,
   ParentId             int                  null,
   Code                 varchar(100)         null,
   InfoType             tinyint              null,
   Status               tinyint              null,
   Depict               varchar(1000)        null,
   OrderIndex           int                  null,
   DepictSEO            varchar(500)         null,
   TitleSEO             varchar(500)         null,
   KeywordSEO           varchar(500)         null,
   ListPageTemplate     varchar(200)         null,
   DetailPageTemplate   varchar(200)         null,
   constraint PK_T_INFO_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_Info_Content                                        */
/*==============================================================*/
create table T_Info_Content (
   InfoId               int                  not null,
   Content              text                 null,
   constraint PK_T_INFO_CONTENT primary key (InfoId)
)


/*==============================================================*/
/* Table: T_Link                                                */
/*==============================================================*/
create table T_Link (
   Id                   int                  identity,
   ClassId              int                  null,
   Title                varchar(200)         not null,
   Url                  varchar(500)         null,
   Img                  varchar(500)         null default getdate(),
   Depict               varchar(1000)        null,
   IsBold               bit                  null,
   ToIndex              bit                  null,
   OrderIndex           int                  null,
   AddTime              datetime             not null default getdate(),
   Color                varchar(50)          null,
   constraint PK_T_LINK primary key (Id)
)


/*==============================================================*/
/* Table: T_Navigation                                          */
/*==============================================================*/
create table T_Navigation (
   Id                   int                  identity,
   NavType              tinyint              null,
   Name                 varchar(50)          null,
   Url                  varchar(500)         null,
   Color                varchar(50)          null,
   OrderIndex           int                  null,
   Target               varchar(50)          null,
   IsSystemNav          bit                  null,
   IsBold               bit                  null,
   CssTag               varchar(50)          null,
   Img                  varchar(200)         null,
   "Group"              int                  null,
   Status               tinyint              null,
   constraint PK_T_NAVIGATION primary key (Id)
)



/*==============================================================*/
/* Table: T_NewHouse                                            */
/*==============================================================*/
create table T_NewHouse (
   Id                   int                  identity,
   AddUserId            int                  null,
   AreaId               int                  null,
   HouseType            tinyint              null,
   SaleStatus           tinyint              null,
   Name                 varchar(50)          not null,
   NameColor            varchar(50)          null,
   NameIsBold           bit                  null,
   HouseCount           int                  null,
   Address              varchar(200)         null,
   Developer            varchar(50)          null,
   AveragePrice         int                  null,
   OpenDate             datetime             null,
   CheckInDate          datetime             null,
   SalesOffice          varchar(200)         null,
   Tel                  varchar(50)          null,
   Tel2                 varchar(50)          null,
   FloorArea            float                null,
   CoveredArea          float                null,
   PlotRatio            float                null,
   GreenRatio           float                null,
   PropertyCompany      varchar(50)          null,
   ParkingSpace         int                  null,
   PropertyManagementFee float                null,
   MapPoint             varchar(100)         null,
   Status               tinyint              null,
   AddTime              datetime             null default getdate(),
   OrderIndex           int                  null,
   CoverId              int                  null,
   IsDelete             bit                  not null default 0,
   ViewCount            int                  not null default 0,
   ViewCount24H         int                  not null default 0,
   ViewCount7Days       int                  not null default 0,
   ViewCountMonth       int                  not null default 0,
   constraint PK_T_NEWHOUSE primary key (Id)
)


/*==============================================================*/
/* Table: T_NewHouse_Brief                                      */
/*==============================================================*/
create table T_NewHouse_Brief (
   HouseId              int                  not null,
   Brief                text                 null,
   constraint PK_T_NEWHOUSE_BRIEF primary key (HouseId)
)


/*==============================================================*/
/* Table: T_NewHouse_Slide                                      */
/*==============================================================*/
create table T_NewHouse_Slide (
   Id                   int                  identity,
   NewHouseId           int                  null,
   ImgId                int                  null,
   constraint PK_T_NEWHOUSE_SLIDE primary key (Id)
)


/*==============================================================*/
/* Table: T_News                                                */
/*==============================================================*/
create table T_News (
   Id                   int                  identity,
   AddUserId            int                  null,
   ApplicationId        int                  null,
   ObjectId             int                  null,
   CoverId              int                  null,
   Title                varchar(200)         null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   Depict               varchar(1000)        null,
   Keyword              varchar(500)         null,
   Source               varchar(50)          null,
   Author               varchar(50)          null,
   Editor               varchar(50)          null,
   AddTime              datetime             null,
   AddSysTime           datetime             null default getdate(),
   OrderIndex           int                  null,
   Status               int                  null,
   ViewCount            int                  not null default 0,
   ViewCount24H         int                  not null default 0,
   ViewCount7Days       int                  null,
   ViewCountMonth       int                  not null,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   IsDelete             bit                  not null default 0,
   constraint PK_T_NEWS primary key (Id)
)


/*==============================================================*/
/* Table: T_News_Content                                        */
/*==============================================================*/
create table T_News_Content (
   NewsId               int                  not null,
   Content              text                 null,
   constraint PK_T_NEWS_CONTENT primary key (NewsId)
)


/*==============================================================*/
/* Table: T_OperateType                                         */
/*==============================================================*/
create table T_OperateType (
   OperateId            int                  not null,
   Name                 varchar(50)          null,
   Integral             float                null,
   Remark               varchar(500)         null,
   constraint PK_T_OPERATETYPE primary key (OperateId)
)


/*==============================================================*/
/* Table: T_Recommend                                           */
/*==============================================================*/
create table T_Recommend (
   Id                   int                  identity,
   ClassId              int                  not null,
   Title                varchar(500)         null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   ObjectId             int                  null,
   Img                  varchar(500)         null,
   Url                  varchar(500)         null,
   Commender            int                  null,
   AddTime              datetime             null,
   EndTime              datetime             null,
   OrderIndex           int                  null,
   constraint PK_T_RECOMMEND primary key (Id)
)


/*==============================================================*/
/* Table: T_Recommend_Class                                     */
/*==============================================================*/
create table T_Recommend_Class (
   Id                   int                  not null,
   Object               int                  not null,
   Name                 varchar(500)         null,
   Depict               varchar(5000)        null,
   constraint PK_T_RECOMMEND_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_Sales                                               */
/*==============================================================*/
create table T_Sales (
   Id                   int                  identity,
   AddUserId            int                  null,
   CompanyId            int                  null,
   Banner               varchar(500)         null,
   StartDate            datetime             null,
   EndDate              datetime             null,
   Title                varchar(200)         null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   Depict               varchar(1000)        null,
   Content              text                 null,
   AddTime              datetime             null,
   OrderIndex           int                  null,
   Status               int                  null,
   IsDelete             bit                  not null default 0,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   constraint PK_T_SALES primary key (Id)
)


/*==============================================================*/
/* Table: T_SinglePage                                          */
/*==============================================================*/
create table T_SinglePage (
   Id                   int                  identity,
   Title                varchar(500)         not null,
   Content              text                 null,
   ModifyTime           datetime             null default getdate(),
   IsSys                bit                  null,
   constraint PK_T_SINGLEPAGE primary key (Id)
)


/*==============================================================*/
/* Table: T_Site_Config                                         */
/*==============================================================*/
create table T_Site_Config (
   Id                   int                  identity,
   Name                 varchar(100)         null,
   AreaName             varchar(50)          null,
   Url                  varchar(500)         null,
   Config               image                null,
   Template             int                  null,
   DesKey               varchar(8)           null,
   UploadFolder         varchar(100)         null,
    ServiceTel1         varchar(20)         null,
	 ServiceTel2         varchar(20)         null,
	  ServiceQQ1         varchar(20)         null,
	   ServiceQQ2         varchar(20)         null,
	    ShowIndexToolBar        bit         null,
		 ShowWeather         bit         null,
		  WeixinQR         varchar(50)         null,
		   AlipayAccount         varchar(50)         null,
		    AlipayPartnerId         varchar(50)         null,
			 AlipayKey         varchar(50)         null,
   constraint PK_T_SITE_CONFIG primary key (Id)
)


/*==============================================================*/
/* Table: T_Slide                                               */
/*==============================================================*/
create table T_Slide (
   Id                   int                  identity,
   ObjectType           int                  null,
   ObjectId             int                  null,
   ImgId                int                  null,
   constraint PK_T_SLIDE primary key (Id)
)


/*==============================================================*/
/* Table: T_SysLog                                              */
/*==============================================================*/
create table T_SysLog (
   Id                   int                  identity,
   UserId               int                  null,
   Url                  varchar(500)         null,
   Type                 tinyint              null,
   Application          int                  null,
   Log                  varchar(5000)        null,
   AddTime              datetime             null,
   constraint PK_T_SYSLOG primary key (Id)
)


/*==============================================================*/
/* Table: T_Template                                            */
/*==============================================================*/
create table T_Template (
   Id                   int                  not null,
   Name                 varchar(500)         null,
   Folder               varchar(500)         null,
   Status               tinyint              null,
   constraint PK_T_TEMPLATE primary key (Id)
)


/*==============================================================*/
/* Table: T_Template_Tag                                        */
/*==============================================================*/
create table T_Template_Tag (
   Id                   int                  identity,
   TagType              tinyint              null,
   Name                 varchar(500)         null,
   Tag                  varchar(500)         null,
   "File"               varchar(500)         null,
   Status               tinyint              null,
   constraint PK_T_TEMPLATE_TAG primary key (Id)
)


/*==============================================================*/
/* Table: T_UserAccount                                         */
/*==============================================================*/
create table T_UserAccount (
   Id                   int                  identity,
   LoginName            varchar(50)          null,
   Password             varchar(100)         null,
   NickName             varchar(50)          null,
   Email                varchar(100)         null,
   UserFace             varchar(200)         null,
   Sex                  tinyint              null,
   UserRole             int                  null,
   UserLevel            int                  null,
   RegTime              datetime             null,
   LoginCount           int                  null,
   LastLoginTime        datetime             null,
   ThisLoginTime        datetime             null,
   UsableIntegral       float                null,
   TotalIntegral        float                null,
   TodayIntegral        float                null,
   Status               tinyint              null,
   VerifyStr            varchar(200)         null,
   VerifyStrCreateTime  datetime             null,
   Tel                  varchar(100)         null,
   QQ                   varchar(50)          null,
   QQOpenId             varchar(50)          null,
   IsDelete             bit                  not null default 0,
   QQAccessToken        varchar(50)          null,
   constraint PK_T_USERACCOUNT primary key (Id)
)


/*==============================================================*/
/* Table: T_UserHistory                                         */
/*==============================================================*/
create table T_UserHistory (
   Id                   int                  identity,
   UserId               int                  null,
   OperateId            int                  null,
   ObjectId             int                  null,
   ChangeIntegral       float                null,
   Remark               varchar(500)         null,
   AddTime              datetime             not null default getdate(),
   constraint PK_T_USERHISTORY primary key (Id)
)


/*==============================================================*/
/* Table: T_VerifyCode                                          */
/*==============================================================*/
create table T_VerifyCode (
   Id                   int                  identity,
   Question             varchar(100)         not null,
   Answer               varchar(100)         null,
   constraint PK_T_VERIFYCODE primary key (Id)
)


/*==============================================================*/
/* Table: T_ViewHistory                                         */
/*==============================================================*/
create table T_ViewHistory (
   Id                   int                  identity,
   ApplicationId        int                  null,
   ObjectId             int                  null,
   ViewUserId           int                  null,
   Ip                   varchar(300)         null,
   ViewTime             datetime             null,
   constraint PK_T_VIEWHISTORY primary key (Id)
)


/*==============================================================*/
/* Table: T_YellowPage                                          */
/*==============================================================*/
create table T_YellowPage (
   Id                   int                  identity,
   ClassId              int                  not null,
   AddUserId            int                  null,
   AreaId               int                  null,
   Name                 varchar(50)          not null,
   NameColor            varchar(50)          null,
   NameIsBold           bit                  null,
   CoverId              int                  null,
   Product              varchar(300)         null,
   Tel1                 varchar(50)          null,
   Tel2                 varchar(50)          null,
   Address              varchar(200)         null,
   MapPoint             varchar(200)         null,
   Fax                  varchar(50)          null,
   Contact              varchar(50)          null,
   Depict               varchar(1000)        null,
   Status               int                  null,
   AddTime              datetime             not null default getdate(),
   OrderIndex           int                  null,
   CheckUserId          int                  null,
   CheckTime            datetime             null,
   IsDelete             bit                  not null default 0,
   ViewCount            int                  not null default 0,
   ViewCount24H         int                  not null default 0,
   ViewCount7Days       int                  not null default 0,
   ViewCountMonth       int                  not null default 0,
   constraint PK_T_YELLOWPAGE primary key (Id)
)


/*==============================================================*/
/* Table: T_YellowPage_Class                                    */
/*==============================================================*/
create table T_YellowPage_Class (
   Id                   int                  not null,
   Name                 varchar(50)          null,
   ParentId             int                  null,
   Code                 varchar(100)         null,
   Status               tinyint              null,
   Depict               varchar(1000)        null,
   OrderIndex           int                  null,
   DepictSEO            varchar(500)         null,
   TitleSEO             varchar(500)         null,
   KeywordSEO           varchar(500)         null,
   ListPageTemplate     varchar(200)         null,
   DetailPageTemplate   varchar(200)         null,
   constraint PK_T_YELLOWPAGE_CLASS primary key (Id)
)


/*==============================================================*/
/* Table: T_YellowPage_Content                                  */
/*==============================================================*/
create table T_YellowPage_Content (
   YellowPageId         int                  not null,
   Content              text                 null,
   constraint PK_T_YELLOWPAGE_CONTENT primary key (YellowPageId)
)



/*==============================================================*/
/* Table: T_BBS_Board                                           */
/*==============================================================*/
create table T_BBS_Board (
   Id                   int                  identity,
   ParentId             int                  null,
   Code                 varchar(100)         null,
   Name                 varchar(100)         not null,
   CoverId              int                  null,
   Depict               varchar(500)         null,
   TopicCount           int                  null,
   PostCount            int                  null,
   TodayPostCount       int                  null,
   AddTime              datetime             null,
   UpdateTime           datetime             null,
   Status               int                  null,
   OrderIndex           int                  not null default 0,
   IsSys                bit                  null,
   GuestAllowView       bit                  null,
   constraint PK_T_BBS_BOARD primary key (Id)
)


/*==============================================================*/
/* Table: T_BBS_Master                                          */
/*==============================================================*/
create table T_BBS_Master (
   Id                   int                  identity,
   UserId               int                  not null,
   BoardId              int                  not null,
   AddTime              datetime             null,
   constraint PK_T_BBS_MASTER primary key (Id)
)


/*==============================================================*/
/* Table: T_BBS_Re                                              */
/*==============================================================*/
create table T_BBS_Re (
   Id                   int                  identity,
   TopicId              int                  not null,
   AddUserId            int                  not null,
   Content              text                 null,
   Depict               varchar(500)         null,
   QuoteId              int                  null,
   AddTime              datetime             null,
   UpdateTime           datetime             null,
   UpdateUser           int                  null,
   IsDelete             bit                  null,
   Status               tinyint              null,
   constraint PK_T_BBS_RE primary key (Id)
)


/*==============================================================*/
/* Index: IX_BBS_Re_TopicId                                     */
/*==============================================================*/
create index IX_BBS_Re_TopicId on T_BBS_Re (
TopicId ASC
)


/*==============================================================*/
/* Table: T_BBS_Topic                                           */
/*==============================================================*/
create table T_BBS_Topic (
   Id                   int                  identity,
   AddUserId            int                  not null,
   BoardId              int                  not null,
   Title                varchar(100)         not null,
   Content              text                 null,
   TitleColor           varchar(50)          null,
   TitleIsBold          bit                  null,
   Depict               varchar(500)         null,
   LastReplyUser        int                  null,
   LastReplyTime        datetime             null,
   IsBest               bit                  null,
   TopIndex             int                  null,
   AddTime              datetime             null,
   UpdateTime           datetime             null,
   OrderTime            datetime             null,
   UpdateUser           int                  null,
   ReCount              int                  null,
   ViewCount            int                  null,
   ViewCount24H         int                  null,
   ViewCount7Days       int                  null,
   ViewCountMonth       int                  null,
   Status               tinyint              null,
   IsDelete             bit                  null,
   IsDraft              bit                  null,
   OrderIndex           int                  not null default 0,
   MustReView           bit                  null,
   AddUserView          bit                  null,
   constraint PK_T_BBS_TOPIC primary key (Id)
)


/*==============================================================*/
/* Index: IX_BBS_Topic_BoardId                                  */
/*==============================================================*/
create index IX_BBS_Topic_BoardId on T_BBS_Topic (
BoardId ASC
)



/*开始初始化数据*/


/******  Table [T_Site_Config] Begin ******/
delete From [T_Site_Config]
insert into T_Site_Config([Name],AreaName,Url,Template,DesKey,UploadFolder,Config)values('Data地方门户系统','','',1,'35fs79hf','/upload','')
/******  Table [T_Site_Config] End ******/

/******  Table [T_Template] Begin ******/
delete From [T_Template]
insert into T_Template([id],[Name],Folder,[Status])values(1,'默认','default',2)
insert into T_Template([id],[Name],Folder,[Status])values(2,'橙色','orange',2)
insert into T_Template([id],[name],Folder,[Status])values(3,'蓝色v2','blue',2)

/******  Table [T_Template] End ******/

/******  Table [T_UserAccount] Begin ******/
delete From [T_UserAccount]
insert into T_UserAccount(LoginName,[Password],NickName,UserRole,[status],isdelete,RegTime)values('admin','21232F297A57A5A743894A0E4A801FC3','管理员',101,4,0,GETDATE())
/******  Table [T_UserAccount] End ******/

/******  Table [T_Class] Begin ******/
delete From [T_Class]
insert into T_Class(GroupId,ClassId,ClassName,OrderIndex)values(1,1,'合作网站',100)
insert into T_Class(GroupId,ClassId,ClassName,OrderIndex)values(1,2,'友情链接',100)
insert into T_Class(GroupId,ClassId,ClassName,OrderIndex)values(2,1,'常用',100)
insert into T_Class(GroupId,ClassId,ClassName,OrderIndex)values(2,2,'宾馆、酒店',100)
insert into T_Class(GroupId,ClassId,ClassName,OrderIndex)values(2,3,'娱乐、休闲、餐饮',100)
insert into T_Class(GroupId,ClassId,ClassName,OrderIndex)values(2,4,'政府机关、公共服务',100)
/******  Table [T_Class] End ******/

/******  Table [T_Info_Class] Begin ******/
delete From [T_Info_Class]
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(1,'房产',0,'001',1,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(2,'招聘',0,'002',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(3,'二手',0,'003',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(4,'生活服务',0,'004',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(5,'商务服务',0,'005',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(6,'汽车',0,'006',4,2,100)

insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(100,'房产出售',1,'001001',1,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(101,'房产出租',1,'001002',1,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(102,'商铺/门面',1,'001003',1,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(103,'房产求购',1,'001004',1,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(104,'房产求租',1,'001005',1,2,100)

insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(150,'业务/销售',2,'002001',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(151,'营业员/导购',2,'002002',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(152,'文秘/文员',2,'002003',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(153,'客服/话务',2,'002004',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(154,'美工/设计师',2,'002005',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(155,'老师/家教',2,'002006',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(156,'技工/工人',2,'002007',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(157,'服务员/传菜员',2,'002008',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(158,'保安/仓管',2,'002009',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(159,'厨师/配菜员',2,'002010',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(160,'保姆/钟点工',2,'002011',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(161,'司机/跟车',2,'002012',2,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(162,'其它',2,'002013',2,2,100)

insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(200,'家电',3,'003001',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(201,'手机',3,'003002',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(202,'电脑/配件',3,'003003',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(203,'数码',3,'003004',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(204,'家具/家居',3,'003005',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(205,'办公用品',3,'003006',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(206,'图书/音像/软件',3,'003007',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(207,'设备',3,'003008',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(208,'宠物',3,'003010',3,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(209,'其它',3,'003009',3,2,100)


insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(250,'家政',4,'004001',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(251,'搬家',4,'004002',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(252,'保洁清洗',4,'004003',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(253,'钟点工/保姆',4,'004004',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(254,'家电/电脑维修',4,'004005',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(255,'美发/美体',4,'004006',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(256,'摄影冲印',4,'004007',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(257,'教育培训',4,'004008',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(258,'婚庆',4,'004008',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(259,'其它',4,'004010',4,2,100)

insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(300,'印刷/喷绘',5,'005001',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(301,'广告媒体',5,'005002',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(302,'招商加盟',5,'005003',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(303,'网站建设',5,'005004',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(304,'工商注册',5,'005005',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(305,'其它',5,'005006',4,2,100)

insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(350,'家用汽车',6,'006001',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(351,'摩托车',6,'006002',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(352,'自行车/电动车',6,'006003',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(353,'其它汽车',6,'006004',4,2,100)
insert into T_Info_Class(Id,[name],ParentId,Code,InfoType,[Status],OrderIndex)values(354,'租赁',6,'006005',4,2,100)
/******  Table T_Info_Class End ******/

/******  Table [T_YellowPage_Class] Begin ******/
delete From [T_YellowPage_Class]
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(1,'休闲娱乐',0,'001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(2,'餐饮美食',0,'002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(3,'购物',0,'003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(4,'生活服务',0,'004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(5,'商务服务',0,'005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(6,'公共服务',0,'006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(7,'企业',0,'007',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(100,'酒吧',1,'001001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(101,'KTV',1,'001002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(102,'电影院',1,'001003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(103,'运动健身',1,'001004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(104,'旅游',1,'001005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(105,'宾馆/酒店',1,'001006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(106,'茶馆',1,'001007',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(107,'其它休闲场所',1,'001008',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(200,'中餐',2,'002001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(201,'西餐',2,'002002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(202,'自助餐',2,'002003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(203,'日韩料理',2,'002004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(204,'海鲜',2,'002005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(205,'火锅',2,'002006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(206,'快餐/小吃',2,'002007',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(207,'宵夜',2,'002008',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(208,'茶馆',2,'002009',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(209,'其它',2,'002010',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(300,'商场',3,'003001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(301,'超市便利',3,'003002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(302,'市场',3,'003003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(303,'手机/数码',3,'003004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(304,'电脑/办公',3,'003005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(305,'家电/电器',3,'003006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(306,'食品/烟/酒',3,'003007',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(307,'日用百货',3,'003008',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(308,'服装',3,'003009',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(309,'金银珠宝/饰品',3,'0030010',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(310,'建材',3,'0030011',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(311,'其它',3,'0030012',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(400,'婚庆/摄影',4,'004001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(401,'美发/美体/丽人',4,'004002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(402,'家政/搬家',4,'004003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(403,'家电维修',4,'004004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(404,'宠物/花鸟',4,'004005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(405,'教育培训',4,'004006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(406,'洗衣/干洗',4,'004007',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(407,'装修/建材',4,'004008',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(408,'药房/药店',4,'004009',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(409,'卫生院/诊所',4,'004010',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(410,'其它',4,'004011',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(500,'印刷/包装',5,'005001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(501,'喷绘/制卡',5,'005002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(502,'广告媒体',5,'005003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(503,'网站建设',5,'005004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(504,'物流货运',5,'005005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(505,'电脑/网络/综合布线',5,'005006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(506,'法律财税',5,'005007',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(507,'其它',5,'005008',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(600,'党政机关',6,'006001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(601,'医院',6,'006002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(602,'银行',6,'006003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(603,'学校',6,'006004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(604,'电力/水利',6,'006005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(605,'公共交通',6,'006006',2,100)

insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(700,'采掘/冶炼',7,'007001',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(701,'机械制造',7,'007002',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(702,'电子信息',7,'007003',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(703,'媒体/出版 ',7,'007004',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(704,'文化服务',7,'007005',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(705,'食品生产',7,'007006',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(706,'建筑/房地产',7,'007007',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(707,'农林牧渔',7,'007008',2,100)
insert into T_YellowPage_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(708,'其它',7,'007009',2,100)
/******  Table T_YellowPage_Class End ******/

/******  Table [T_Company_Class] Begin ******/
delete From [T_Company_Class]
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(1,'休闲娱乐',0,'001',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(2,'餐饮美食',0,'002',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(3,'购物',0,'003',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(4,'生活服务',0,'004',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(5,'商务服务',0,'005',2,100)

insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(100,'酒吧',1,'001001',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(101,'KTV',1,'001002',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(102,'电影院',1,'001003',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(103,'运动健身',1,'001004',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(104,'旅游',1,'001005',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(105,'宾馆/酒店',1,'001006',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(106,'茶馆',1,'001007',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(107,'其它休闲场所',1,'001008',2,100)

insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(200,'中餐',2,'002001',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(201,'西餐',2,'002002',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(202,'自助餐',2,'002003',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(203,'日韩料理',2,'002004',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(204,'海鲜',2,'002005',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(205,'火锅',2,'002006',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(206,'快餐/小吃',2,'002007',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(207,'宵夜',2,'002008',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(208,'茶馆',2,'002009',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(209,'其它',2,'002010',2,100)

insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(300,'商场',3,'003001',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(301,'超市便利',3,'003002',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(302,'市场',3,'003003',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(303,'手机/数码',3,'003004',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(304,'电脑/办公',3,'003005',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(305,'家电/电器',3,'003006',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(306,'食品/烟/酒',3,'003007',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(307,'日用百货',3,'003008',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(308,'服装',3,'003009',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(309,'金银珠宝/饰品',3,'0030010',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(310,'建材',3,'0030011',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(311,'其它',3,'0030012',2,100)

insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(400,'婚庆/摄影',4,'004001',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(401,'美发/美体/丽人',4,'004002',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(402,'家政/搬家',4,'004003',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(403,'家电维修',4,'004004',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(404,'宠物/花鸟',4,'004005',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(405,'教育培训',4,'004006',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(406,'洗衣/干洗',4,'004007',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(407,'装修/建材',4,'004008',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(408,'药房/药店',4,'004009',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(409,'卫生院/诊所',4,'004010',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(410,'其它',4,'004011',2,100)

insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(500,'印刷/包装',5,'005001',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(501,'喷绘/制卡',5,'005002',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(502,'广告媒体',5,'005003',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(503,'网站建设',5,'005004',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(504,'物流货运',5,'005005',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(505,'电脑/网络/综合布线',5,'005006',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(506,'法律财税',5,'005007',2,100)
insert into T_Company_Class(Id,[name],ParentId,Code,[Status],OrderIndex)values(507,'其它',5,'005008',2,100)

/******  Table T_Company_Class End ******/


/******  Table [T_Article_Class] Begin ******/
delete From [T_Article_Class]
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(1,'本地新闻','001',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(2,'国内新闻','002',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(3,'国际新闻','003',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(4,'社会民生','004',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(5,'娱乐新闻','005',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(6,'综合','006',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(7,'房产新闻','007',0,2,100)
insert into T_Article_Class(Id,[name],[Code],ParentId,[Status],OrderIndex)values(100,'装修','100',0,2,100)
/******  Table T_Article_Class End ******/

/******  Table [T_OperateType] Begin ******/
delete From [T_OperateType]
insert into T_OperateType(OperateId,[Name],[Integral])values(1000001,'注册',5)
insert into T_OperateType(OperateId,[Name],[Integral])values(1000002,'登录',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1000003,'修改头像',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1000004,'第一次上传头像',10)
insert into T_OperateType(OperateId,[Name],[Integral])values(1000005,'修改昵称',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1100001,'发布文章',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1100002,'删除文章',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1100003,'修改文章',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1100004,'关闭文章',0)

insert into T_OperateType(OperateId,[Name],[Integral])values(1200001,'发布黄页',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1200002,'删除黄页',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1200003,'修改黄页',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1200004,'关闭黄页',0)

insert into T_OperateType(OperateId,[Name],[Integral])values(1300001,'发布信息',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1300002,'删除信息',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1300003,'修改信息',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1300004,'关闭信息',0)

insert into T_OperateType(OperateId,[Name],[Integral])values(1400001,'发布楼盘',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1400002,'删除楼盘',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1400003,'修改楼盘',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1400004,'关闭楼盘',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1400005,'上传楼盘照片',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1400006,'发布楼盘动态',0)

insert into T_OperateType(OperateId,[Name],[Integral])values(1500001,'发布促销',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1500002,'删除促销',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1500003,'修改促销',0)
insert into T_OperateType(OperateId,[Name],[Integral])values(1500004,'关闭促销',0)
/******  Table T_OperateType End ******/

/******  Table [T_Data_Level] Begin ******/
delete From [T_Data_Level]
insert into T_Data_Level([Level],[Name],Integral)values(1,'幼儿园',0)
insert into T_Data_Level([Level],[Name],Integral)values(2,'小学',50)
insert into T_Data_Level([Level],[Name],Integral)values(3,'初中',150)
insert into T_Data_Level([Level],[Name],Integral)values(4,'高中',300)
insert into T_Data_Level([Level],[Name],Integral)values(5,'大学',800)
insert into T_Data_Level([Level],[Name],Integral)values(6,'研究生',1500)
insert into T_Data_Level([Level],[Name],Integral)values(7,'博士',3000)
/******  Table T_Data_Level End ******/

/******  Table [T_Recommend_Class] Begin ******/
delete From [T_Recommend_Class]
insert into T_Recommend_Class([id],[Name],[Object])values(1,'首页-幻灯片',100)
insert into T_Recommend_Class([id],[Name],[Object])values(2,'首页-头条',1)
insert into T_Recommend_Class([id],[Name],[Object])values(3,'首页-推荐资讯',1)
insert into T_Recommend_Class([id],[Name],[Object])values(4,'首页-推荐楼盘',6)
insert into T_Recommend_Class([id],[Name],[Object])values(5,'首页-推荐黄页',2)
insert into T_Recommend_Class([id],[Name],[Object])values(6,'首页-右上自定义推荐',100)
insert into T_Recommend_Class([id],[Name],[Object])values(7,'首页-推荐商家',7)

insert into T_Recommend_Class([id],[Name],[Object])values(100,'新闻资讯首页-幻灯片',1)
insert into T_Recommend_Class([id],[Name],[Object])values(101,'新闻资讯首页-看点',1)
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(102,'新闻资讯首页-头条',1,'中上有介绍的')
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(103,'新闻资讯首页-推荐新闻块一',1,'')
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(104,'新闻资讯首页-推荐新闻块二',1,'')
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(105,'新闻资讯首页-推荐新闻块三',1,'')
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(106,'新闻资讯首页-专题',1,'右上')
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(107,'新闻资讯首页-娱乐热图',1,'')
insert into T_Recommend_Class([id],[Name],[Object],Depict)values(108,'新闻资讯各页-侧边推荐图文',1,'')

insert into T_Recommend_Class([id],[Name],[Object])values(200,'房产首页-幻灯片',100)
insert into T_Recommend_Class([id],[Name],[Object])values(201,'房产首页-最新优惠',100)
insert into T_Recommend_Class([id],[Name],[Object])values(202,'房产首页-头条',1)
insert into T_Recommend_Class([id],[Name],[Object])values(203,'房产首页-推荐新闻',1)
insert into T_Recommend_Class([id],[Name],[Object])values(204,'房产首页-推荐楼盘',6)
insert into T_Recommend_Class([id],[Name],[Object])values(205,'房产首页-推荐装修公司',2)
insert into T_Recommend_Class([id],[Name],[Object])values(206,'房产首页-装修文章',1)
insert into T_Recommend_Class([id],[Name],[Object])values(207,'房产各页-侧边推荐楼盘',6)

insert into T_Recommend_Class([id],[Name],[Object])values(300,'分类信息首页-幻灯片',100)
insert into T_Recommend_Class([id],[Name],[Object])values(301,'分类信息首页-头条',3)
insert into T_Recommend_Class([id],[Name],[Object])values(302,'分类信息首页-推荐信息',3)
insert into T_Recommend_Class([id],[Name],[Object])values(303,'分类信息各页-侧边推荐信息',3)


insert into T_Recommend_Class([id],[Name],[Object])values(403,'黄页各页-侧边推荐黄页',2)

insert into T_Recommend_Class([id],[Name],[Object])values(500,'商家首页-推荐商家',7)
insert into T_Recommend_Class([id],[Name],[Object])values(501,'商家首页-推荐促销',5)
insert into T_Recommend_Class([id],[Name],[Object])values(502,'商家首页-侧边推荐促销',5)
insert into T_Recommend_Class([id],[Name],[Object])values(503,'商家首页-推荐商品',8)

insert into T_Recommend_Class([id],[Name],[Object])values(600,'论坛-帖子头条',9)
insert into T_Recommend_Class([id],[Name],[Object])values(601,'论坛-推荐帖子',9)
insert into T_Recommend_Class([id],[Name],[Object])values(602,'论坛首页-幻灯片',100)
insert into T_Recommend_Class([id],[Name],[Object])values(603,'论坛-推荐版块',10)


/******  Table T_Recommend_Class End ******/


delete from T_ad_place
SET IDENTITY_INSERT T_ad_place ON 
insert into T_ad_place(id,adtype,[name],width,height,[status])values(1,1,'首页-导航栏下方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(2,1,'首页-房产上方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(3,1,'首页-房产下方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(4,1,'首页-商家下方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(5,1,'首页-便民电话下方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(6,1,'首页-新闻右侧',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(7,1,'新闻频道首页-顶部',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(8,1,'房产频道首页-顶部',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(9,1,'房产频道首页-房产新闻下方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(10,1,'房产频道首页-楼盘下方',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(11,1,'楼盘列表-右侧',240,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(12,1,'分类信息频道首页-顶部',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(13,1,'分类信息列表页-右侧',250,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(14,1,'商家频道首页-顶部',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(15,1,'商家信息列表页-右侧',240,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(16,1,'黄页频道首页-顶部',1200,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(17,1,'论坛-右侧',270,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(18,1,'手机版首页-顶部',0,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(19,1,'橙色模板首页-左上幻灯片下',0,0,2)
insert into T_ad_place(id,adtype,[name],width,height,[status])values(20,1,'首页-右侧下方',0,0,2)
SET IDENTITY_INSERT T_ad_place OFF



/******  Table [T_SinglePage] Begin ******/
set identity_insert [T_SinglePage] on
delete From [T_SinglePage]
insert into T_SinglePage([id],Title,IsSys,[Content])values(1,'用户注册协议',1,'<p style="font-size:14px;line-height:2em">本协议由您与{$dp_c_site_name}共同缔结，本协议具有合同效力。<br /><strong>一、定义</strong><br />用户，包含注册用户和非注册用户。注册用户是指通过{$dp_c_site_url}完成全部注册程序后，使用{$dp_c_site_name}平台服务的用户。非注册用户是指未进行注册、直接登录{$dp_c_site_url}或通过其他网站进入{$dp_c_site_url}使用{$dp_c_site_name}平台服务的用户。&nbsp;<br /><strong>二、协议的效力</strong><br />1、在您按照注册页面提示填写信息、阅读并同意本协议并完成全部注册程序后或以其他{$dp_c_site_name}允许的方式实际使用{$dp_c_site_name}平台服务时，您即受本协议的约束。在注册时，您应当按照法律法规要求，或注册页面的提示，准确填写并及时更新您提供的电子邮件地址、联系电话、联系地址、邮政编码等联系方式，以便{$dp_c_site_name}或其他会员与您进行有效联系。如您的资料发生变更，您应及时更新您的资料，以使之真实、及时，完整和准确。如有合理理由怀疑您提供的资料错误、不实、过时或不完整的，{$dp_c_site_name}有权向您发出询问及/或要求改正的通知，并有权直接做出删除相应资料的处理，直至中止、终止对您提供部分或全部服务。由此导致您在使用{$dp_c_site_name}平台服务过程中产生任何损失或增加费用的，应由您完全独自承担。<br />2、 对于您提供的资料及数据信息，您授予{$dp_c_site_name}独家的、全球通用的、永久的、免费的许可使用权利。您同意，{$dp_c_site_name}有权(全部或部分地) 使用、复制、更正、发布、翻译、分发、执行和展示您的资料数据（包括但不限于注册资料、行为数据及全部展示于{$dp_c_site_name}平台的各类信息）或制作其派生作品，并以现在已知或日后开发的任何形式、媒体或技术，将上述信息纳入其它作品内。<br />3、 您应当在使用{$dp_c_site_name}平台服务之前认真阅读全部协议内容。如您对协议有任何疑问的，应向{$dp_c_site_name}咨询。但无论您事实上是否在使用{$dp_c_site_name}平台服务之前认真阅读了本协议内容，只要您使用{$dp_c_site_name}平台服务，则本协议即对您产生约束，届时您不应以未阅读本协议的内容或者未获得{$dp_c_site_name}对您问询的解答等理由，主张本协议无效，或要求撤销本协议。<br />4、 本协议内容包括协议正文及所有{$dp_c_site_name}已经发布的或将来可能发布的各类规则。所有规则为本协议不可分割的组成部分，与协议正文具有同等法律效力。除另行明确声明外，任何{$dp_c_site_name}及其关联公司提供的服务（以下称为{$dp_c_site_name}平台服务）均受本协议约束。您承诺接受并遵守本协议的约定。如果您不同意本协议的约定，您应立即停止注册程序或停止使用{$dp_c_site_name}平台服务。<br />5、 {$dp_c_site_name}有权根据国家法律法规的更新、产品和服务规则的调整需要不时地制订、修改本协议及/或各类规则，并以网站公示的方式进行公示。如您继续使用{$dp_c_site_name}平台服务的，即表示您接受经修订的协议和规则。<br /><strong>三、注册</strong><br />1、您确认，在您完成注册程序或以其他{$dp_c_site_name}允许的方式实际使用{$dp_c_site_name}平台服务时，您应当是具备相应民事行为能力的自然人、法人或其他组织。若您不具备前述主体资格，则您及您的监护人应承担因此而导致的一切后果，且{$dp_c_site_name}有权注销您的账户，并向您及您的监护人索偿。<br />2、 {$dp_c_site_name}非常重视对青少年个人信息搜集和使用的安全性的保护。{$dp_c_site_name}建议，任何未满18周岁的未成年人参加网上活动应事先取得其监护人（以下简称&quot;监护人&quot;）的同意并遵守《青少年网络文明公约》。<br />3、 在您签署本协议，完成注册程序时，{$dp_c_site_name}会向您提供唯一编号的{$dp_c_site_name}账户。您应对您的账户和密码的安全，以及对通过您的账户和密码实施的行为负责。除非有法律规定或行政司法机关的指令，且征得{$dp_c_site_name}的同意，否则，账户和密码不得以任何方式转让、赠与或继承（与账户相关的财产权益除外）。如果发现任何人不当使用您的账户或有任何其他可能危及您的账户安全的情形时，您应当立即以有效方式通知{$dp_c_site_name}，要求{$dp_c_site_name}暂停相关服务。您理解{$dp_c_site_name}对您的请求采取行动需要合理时间，{$dp_c_site_name}对在采取行动前已经产生的后果（包括但不限于您的任何损失）不承担任何责任。<br /><strong>四、{$dp_c_site_name}平台服务使用规范</strong><br />1.通过{$dp_c_site_name}平台，您可以按照{$dp_c_site_name}的规则发布各种生活信息。但所发布之信息不得含有如下内容：&nbsp;<br />1)煽动抗拒、破坏宪法和法律、行政法规实施的；&nbsp;<br />2)煽动颠覆国家政权，推翻社会主义制度的；&nbsp;<br />3)煽动分裂国家、破坏国家统一的；&nbsp;<br />4)煽动民族仇恨、民族歧视，破坏民族团结的；&nbsp;<br />5)捏造或者歪曲事实，散布谣言，扰乱社会秩序的；&nbsp;<br />6)宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的；&nbsp;<br />7)公然侮辱他人或者捏造事实诽谤他人的，或者进行其他恶意攻击的；&nbsp;<br />8)损害国家机关信誉的；&nbsp;<br />9)其他违反宪法和法律法规的；&nbsp;<br />2.在接受{$dp_c_site_name}服务的过程中，您不得从事下列行为：&nbsp;<br />1）发表、传送、传播、储存侵害他人知识产权、商业秘密权等合法权利的内容&nbsp;<br />包含病毒、木马、定时炸弹等可能对{$dp_c_site_name}系统造成伤害或影响其稳定性的内容制造虚假身份以误导、欺骗他人；&nbsp;<br />2）传送或散布以其他方式实现传送含有受到知识产权法律保护的图像、相片、&nbsp;<br />软件或其他资料的文件，作为举例（但不限于此）：包括版权或商标法（或隐私权或公开权），除非用户拥有或控制着相应的权利或已得到所有必要的认可； &nbsp;<br />3）使用任何包含有通过侵犯商标、版权、专利、商业机密或任何一方的其他专&nbsp;<br />有权利的方式利用本“软件”获得的图像或相片的资料或信息； &nbsp;<br />4）进行危害计算机网络安全的行为，包括但不限于：使用未经许可的数据或进&nbsp;<br />入未经许可的服务器/帐号；未经允许进入公众计算机网络或者他人计算机系统并删除、修改、增加存储信息；未经许可，企图探查、扫描、测试本平台系统或网络的弱点或其它实施破坏网络安全的行为；企图干涉、破坏本平台系统或网站的正常运行，故意传播恶意程序或病毒以及其他破坏干扰正常网络信息服务的行为；伪造TCP/IP数据包名称或部分名称； &nbsp;<br />5）修改或伪造软件作品运行中的指令、数据、数据包，增加、删减、变动软件 的功能或运行效果，不得将用于上述用途的软件通过信息网络向公众传播或者运营； &nbsp;<br />6）在未经{$dp_c_site_name}书面明确授权前提下，出售、出租、出借、散布、转移或转授权软件和服务或相关的链接或从使用软件和服务或软件和服务的条款中获利，无论以上使用是否为直接经济或金钱收益； &nbsp;<br />7） 违背{$dp_c_site_name}页面公布之活动规则，包括但不限于发布虚假信息、作弊或通过其他手段进行虚假交易。<br />3.您了解并同意，{$dp_c_site_name}有权应政府部门（包括司法及行政部门）的要求，向其提供您在{$dp_c_site_name}平台填写的注册信息和发布纪录等必要信息。&nbsp;<br />4.在{$dp_c_site_name}平台上使用{$dp_c_site_name}服务过程中，您承诺遵守以下约定：&nbsp;<br />1)在使用{$dp_c_site_name}平台服务过程中实施的所有行为均遵守国家法律、法规等规范 &nbsp;<br />文件及{$dp_c_site_name}平台各项规则的规定和要求，不违背社会公共利益或公共道德，不损害他人的合法权益，不违反本协议及相关规则。您如果违反前述承诺，产生任何法律后果的，您应以自己的名义独立承担所有的法律责任，并确保{$dp_c_site_name}免于因此产生任何损失。<br />2)不发布国家禁止发布的信息（除非取得合法且足够的许可），不发布涉嫌侵犯他人知识产权或其它合法权益的信息，不发布违背社会公共利益或公共道德、公序良俗的信息，不发布其它涉嫌违法或违反本协议及各类规则的信息。&nbsp;<br />3)不对{$dp_c_site_name}平台上的任何数据作商业性利用，包括但不限于在未经{$dp_c_site_name}事先书面同意的情况下，以复制、传播等任何方式使用{$dp_c_site_name}平台站上展示的资料。&nbsp;<br />4)不使用任何装置、软件或例行程序干预或试图干预{$dp_c_site_name}平台的正常运作或正在{$dp_c_site_name}平台上进行的任何活动。您不得采取任何将导致不合理的庞大数据负载加诸{$dp_c_site_name}平台网络设备的行动。&nbsp;<br />5.您了解并同意：&nbsp;<br />1)您违反上述承诺时，{$dp_c_site_name}有权依据本协议的约定，做出相应处理或终止向您提供服务，且无须征得您的同意或提前通知予您。&nbsp;<br />2)根据相关法令的指定或者{$dp_c_site_name}服务规则的判断，您的行为涉嫌违反法律法规的规定或违反本协议和/或规则的条款的，{$dp_c_site_name}有权采取相应措施，包括但不限于直接屏蔽、删除侵权信息、降低您的信用值或直接停止提供服务。&nbsp;<br />3)对于您在{$dp_c_site_name}平台上实施的行为，包括您未在{$dp_c_site_name}平台上实施但已经对{$dp_c_site_name}平台及其用户产生影响的行为，{$dp_c_site_name}有权单方认定您行为的性质及是否构成对本协议和/或规则的违反，并据此采取相应的处理措施。您应自行保存与您行为有关的全部证据，并应对无法提供充要证据而承担的不利后果。&nbsp;<br />4)对于您涉嫌违反承诺的行为对任意第三方造成损害的，您均应当以自己的名义独立承担所有的法律责任，并应确保{$dp_c_site_name}免于承担因此产生的损失或增加的费用。&nbsp;<br />5)如您涉嫌违反有关法律或者本协议之规定，使{$dp_c_site_name}遭受任何损失，或受到任何第三方的索赔，或受到任何行政管理部门的处罚，您应当赔偿{$dp_c_site_name}因此造成的损失及（或）发生的费用，包括合理的律师费用。<br /><strong>五、责任范围和责任限制</strong><br />1.{$dp_c_site_name}负责向您提供{$dp_c_site_name}平台服务。但{$dp_c_site_name}对{$dp_c_site_name}平台服务不作任何明示或暗示的保证，包括但不限于{$dp_c_site_name}平台服务的适用性、没有错误或疏漏、持续性、准确性、可靠性、适用于某一特定用途。同时，{$dp_c_site_name}也不对{$dp_c_site_name}平台服务所涉及的技术及信息的有效性、准确性、正确性、可靠性、稳定性、完整性和及时性作出任何承诺和保证。&nbsp;<br />2.{$dp_c_site_name}平台上的信息系用户自行发布，由于海量信息的存在，且{$dp_c_site_name}平台无法杜绝可能存在风险和瑕疵。您应谨慎判断确定相关信息的真实性、合法性和有效性，并注意保留相应的证据以利于维权，如可能，尽量采用网站建议的交易方式进行。&nbsp;<br />3、您同意在发现本网站任何内容不符合法律规定，或不符合本用户协议规定的，您有义务及时通知{$dp_c_site_name}。如果您发现您的个人信息被盗用，或者您的版权或者其他权利被侵害，请将此情况告知{$dp_c_site_name}并同时提供如下信息和材料：&nbsp;<br />1)侵犯您权利的信息的网址，编号或其他可以找到该信息的细节；&nbsp;<br />2)您是所述的版权或者其他权利的合法拥有者的权利证明；&nbsp;<br />3)您的联系方式，包括联系人姓名，地址，电话号码和电子邮件；&nbsp;<br />4)您的身份证复印件、营业执照等其他相关资料。&nbsp;<br />经审查得到证实的，我们将及时删除相关信息。我们仅接受邮寄、电子邮件或传真方式的书面侵权通知。情况紧急的，您可以通过客服电话先行告知，我们会视情况采取相应措施。 &nbsp;&nbsp;<br />4.您了解并同意，{$dp_c_site_name}不对因下述任一情况而导致您的任何损害赔偿承担责任，包括但不限于利润、商誉、使用、数据等方面的损失或其它无形损失的损害赔偿 ：<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1) 使用或未能使用{$dp_c_site_name}平台服务。<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2) 第三方未经批准的使用您的账户或更改您的数据。<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3) 通过{$dp_c_site_name}平台服务购买或获取任何商品、样品、数据、信息等行为或替代行为产生的费用及损失 &nbsp; &nbsp; &nbsp;<br />4) 您对{$dp_c_site_name}平台服务的误解。<br />5) 任何非因{$dp_c_site_name}的原因而引起的与{$dp_c_site_name}平台服务有关的其它损失。&nbsp;<br />5.{$dp_c_site_name}对下列不可抗力行为免责：信息网络正常的设备维护，信息网络连接故障，电脑、通讯或其他系统的故障，电力故障，罢工，劳动争议，暴乱，起义，骚乱，生产力或生产资料不足，火灾，洪水，风暴，爆炸，战争，政府行为，司法行政机关的命令或第三方的不作为而造成的不能服务或延迟服务。&nbsp;<br />6.您应当严格遵守本协议及{$dp_c_site_name}发布的其他协议、活动规则，因您违反协议或规则的行为给第三方、或{$dp_c_site_name}造成损失的，您应当承担全部责任。<br /><strong>六、协议终止</strong><br />1.您同意，{$dp_c_site_name}基于平台服务的安全性，有权中止向您提供部分或全部{$dp_c_site_name}平台服务，暂时冻结您的账户，待安全问题解决后及时恢复，并对中止、冻结及恢复的事实及时通知。如果网站的安全问题是由于您的违法行为引起，{$dp_c_site_name}有终止向您提供部分或全部{$dp_c_site_name}平台服务，永久冻结（注销）您的帐户，并有权向您对损失进行索赔。 &nbsp;<br />2.您有权向{$dp_c_site_name}要求注销您的账户，经{$dp_c_site_name}审核同意的，{$dp_c_site_name}注销您的账户，届时，您与{$dp_c_site_name}基于本协议的合同关系即终止。您的账户被注销后，{$dp_c_site_name}没有义务为您保留或向您披露您账户中的任何信息，也没有义务向您或第三方转发任何您未曾阅读或发送过的信息。&nbsp;<br />3.您同意，您与{$dp_c_site_name}的协议关系终止后，{$dp_c_site_name}仍享有下列权利：&nbsp;<br />1) 继续保存您未及时删除的注册信息及您使用{$dp_c_site_name}平台服务期间发布的所有信息至法律规定的记录保存期满。 &nbsp;<br />2）您在使用{$dp_c_site_name}平台服务期间存在违法行为或违反本协议和/或规则的行为的，{$dp_c_site_name}仍可依据本协议向您主张权利。&nbsp;<br /><strong>七、隐私权政策</strong><br />1.{$dp_c_site_name}将在{$dp_c_site_name}平台公布并不时修订隐私权政策，隐私权政策构成本协议的有效组成部分。&nbsp;<br />2.你知悉并认可：{$dp_c_site_name}可能会与第三方合作向用户提供相关的网络服务，在此情况下，如该第三方同意承担与本网站同等的保护用户隐私的责任，则{$dp_c_site_name}有权将用户的注册资料等提供给该第三方。另外，在不透露单个用户隐私资料的前提下，{$dp_c_site_name}有权对整个用户数据库进行分析并对用户数据库进行商业上的利用。&nbsp;<br />3.为保护您的个人信息的安全。我们使用各种安全技术和程序来保护您的个人信息不被未经授权的访问、使用或泄漏。对此您表示理解和认同。&nbsp;<br />4.{$dp_c_site_name}使用 Cookie 来帮助您实现您的联机体验的个性化。Cookie 是由网页服务器存放在您的硬盘中的文本文件。Cookie 不能用来运行程序或将病毒递送到您的计算机中。指定给您的 Cookie 是唯一的，它只能由将 Cookie 发布给您的域中的 Web 服务器读取，Cookie 会帮助{$dp_c_site_name}在您后续访问时调用您的特定信息。这样可以简化记录您的个人信息，当您下次使用{$dp_c_site_name}服务时，系统会自动调出您以前发布或浏览的信息，使您的使用变得更加便捷和高效。&nbsp;<br /><strong>八、法律适用、管辖与其他</strong><br />1.本协议之效力、解释、变更、执行与争议解决均适用中华人民共和国法律，如无相关法律规定的，则应参照通用国际商业惯例和（或）行业惯例。&nbsp;<br />2.因本协议产生之争议，应依照中华人民共和国法律予以处理，并以北京市朝阳区人民法院为第一审管辖法院，按照中华人民共和国法律，因级别管辖的规定，北京市朝阳区人民法院无权管辖的，以其上级法院作为第一审管辖法院。</p>')
insert into T_SinglePage([id],Title,IsSys)values(2,'关于我们',1)
insert into T_SinglePage([id],Title,IsSys)values(3,'联系我们',1)
insert into T_SinglePage([id],Title,IsSys)values(4,'广告服务',1)
insert into T_SinglePage([id],Title,IsSys)values(5,'免责声明',1)
insert into T_SinglePage([id],Title,IsSys)values(6,'招聘信息',1)
insert into T_SinglePage([id],Title,IsSys)values(7,'服务条款',1)
insert into T_SinglePage([id],Title,IsSys,[content])values(8,'登记新楼盘',0,'<p><span style="font-size:16px;">新楼盘的登记暂时不提供自助添加，请把资料提交给我们统一添加，联系方式：</span></p><p>QQ:345345435</p>')

set identity_insert [T_SinglePage] off
/******  Table T_SinglePage End ******/


/******  Table T_Area Begin ******/
delete from T_Area
insert into T_Area(id,[name],code,parentid,orderindex,[status])values(1,'朝阳区','001',0,100,2)
insert into T_Area(id,[name],code,parentid,orderindex,[status])values(2,'海淀区','002',0,100,2)
insert into T_Area(id,[name],code,parentid,orderindex,[status])values(3,'丰台区','003',0,100,2)
/******  Table T_Area End ******/


/******  Table T_Application Begin ******/
delete from T_Application
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(1,'新闻资讯','Article',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(2,'黄页','YellowPage',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(3,'分类信息','Info',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(4,'楼盘','House',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(5,'促销','Sales',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(6,'商家','Company',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(7,'论坛','Company',0,0,2)
insert into T_Application(id,[name],code,Total,NotReviewed,[status])values(101,'用户','User',0,0,2)
/******  Table T_Application End ******/

/******  Table T_Dict_Class Begin ******/
delete from T_Dict_Class
insert into T_Dict_Class(Id,[name])values(1,'楼盘类型')
/******  Table T_Dict_Class End ******/


/******  Table T_Dict Begin ******/
delete from T_Dict
insert into T_Dict(ClassId,ItemId,ItemName,OrderIndex)values(1,1,'普通住宅',100)
insert into T_Dict(ClassId,ItemId,ItemName,OrderIndex)values(1,2,'公寓',100)
insert into T_Dict(ClassId,ItemId,ItemName,OrderIndex)values(1,3,'别墅',100)
insert into T_Dict(ClassId,ItemId,ItemName,OrderIndex)values(1,4,'商住两用',100)
/******  Table T_Dict End ******/


/******  Table T_Email_Template Begin ******/
delete from T_Email_Template
insert into T_Email_Template([name],title,body,issys,ishtml,[status])values('注册欢迎邮件','{loginname}欢迎您注册','欢迎您注册{sitename},点击以下链接激活您的帐号<br/><a href="{verifyemailurl}" target="_blank">{verifyemailurl}</a>',1,1,2)
insert into T_Email_Template([name],title,body,issys,ishtml,[status])values('找回密码邮件','找回密码','请通过以下链接重置密码：<br/><a href="{resetpasswordurl}" target="_blank">{resetpasswordurl}</a>',1,1,2)
/******  Table T_Email_Template End ******/


/******  Table T_Navigation Begin ******/
delete from T_Navigation
SET IDENTITY_INSERT T_Navigation ON 
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(1,'首页',3,'{$dp_c_index}','',1,0,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(2,'新闻资讯',3,'{$dp_c_article_index}','',1,0,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(3,'房产频道',3,'{$dp_c_house_index}','',1,0,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(4,'分类信息',3,'{$dp_c_info_index}','',1,0,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(5,'本地商家',3,'{$dp_c_company_index}','',1,0,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(6,'黄页',3,'{$dp_c_yellowpage_index}','',1,0,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(8,'论坛',3,'{$dp_c_bbs_index}','',1,0,2,100)


insert into T_Navigation([Id],[name],NavType,Url,Color,Isbold,IsSystemNav,[Group],[Status],OrderIndex)values(100,'新闻',2,'{$dp_c_article_index}','',1,0,1,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(101,'本地',2,'/Article/List-1.html','red',0,1,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(102,'房产',2,'/Article/List-7.html','',0,1,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(103,'国内',2,'/Article/List-2.html','',0,1,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(104,'国际',2,'/Article/List-3.html','',0,1,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(105,'娱乐',2,'/Article/List-5.html','',0,1,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(106,'体育',2,'/Article/List-6.html','',0,1,2,100)

insert into T_Navigation([Id],[name],NavType,Url,Color,Isbold,IsSystemNav,[Group],[Status],OrderIndex)values(107,'房产',2,'{$dp_c_house_index}','',1,0,2,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(108,'新楼盘',2,'/House/NewHouse-List.html','red',0,2,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(109,'二手房',2,'/Info/House-List-100.html','',0,2,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(110,'出租',2,'/Info/House-List-101.html','',0,2,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(111,'商铺',2,'/Info/House-List-102.html','',0,2,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(112,'装修',2,'/Article/List-100.html','',0,2,2,100)

insert into T_Navigation([Id],[name],NavType,Url,Color,Isbold,IsSystemNav,[Group],[Status],OrderIndex)values(113,'信息',2,'{$dp_c_info_index}','',1,0,3,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(114,'招聘',2,'/Info/Job-List-2.html','',0,3,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(115,'二手',2,'/Info/SecondHand-List-3.html','',0,3,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(116,'生活',2,'/Info/Info-List-4.html','',0,3,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(117,'商务',2,'/Info/Info-List-5.html','',0,3,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(118,'车辆',2,'/Info/Info-List-6.html','',0,3,2,100)


insert into T_Navigation([Id],[name],NavType,Url,Color,Isbold,IsSystemNav,[Group],[Status],OrderIndex)values(119,'商家',2,'{$dp_c_company_index}','',1,0,4,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,Isbold,IsSystemNav,[Group],[Status],OrderIndex)values(120,'黄页',2,'{$dp_c_yellowpage_index}','',1,0,4,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(121,'促销',2,'{$dp_c_sale_list}','',0,4,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(122,'发布信息',2,'{$dp_c_pub_info}','',0,4,2,100)
insert into T_Navigation([Id],[name],NavType,Url,Color,IsSystemNav,[Group],[Status],OrderIndex)values(123,'商家入驻',2,'{$dp_c_pub_company}','',0,4,2,100)

SET IDENTITY_INSERT T_Navigation OFF
/******  Table [T_Navigation] End ******/



/****** Object:  Table [T_Html_Route] Begin ******/
delete from [T_Html_Route]
SET IDENTITY_INSERT [T_Html_Route] ON 
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1,'首页','^/index.html$','/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(2,'分类信息显示页(普通信息）','^/info/info-(\d{1,10}).html$','/html/info/detail/$idgroup$info-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(3,'分类信息显示页(房产）','^/info/House-(\d{1,10}).html$','/html/info/detail/$idgroup$house-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(4,'分类信息显示页(工作）','^/info/Job-(\d{1,10}).html$','/html/info/detail/$idgroup$job-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(5,'分类信息显示页(二手）','^/info/Secondhand-(\d{1,10}).html$','/html/info/detail/$idgroup$secondhand-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(6,'分类信息首页','^/info/index.html$','/html/info/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(7,'分类信息列表页(普通信息）','^/info/info-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/html/info/list/info-list-{1}-{2}-{3}-{4}-{5}-p{6}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(8,'分类信息列表页(房产）','^/info/House-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/html/info/list/house-list-{1}-{2}-{3}-{4}-{5}-p{6}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(9,'分类信息列表页(工作）','^/info/Job-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/html/info/list/job-list-{1}-{2}-{3}-{4}-{5}-p{6}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(10,'分类信息列表页(二手）','^/info/Secondhand-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/html/info/list/second-list-{1}-{2}-{3}-{4}-{5}-p{6}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(11,'黄页显示页','^/yellowpage/yellowpage-(\d{1,10}).html$','/html/yellowpage/detail/$idgroup$yellowpage-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(12,'黄页首页','^/yellowpage/index.html$','/html/yellowpage/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(13,'楼盘显示页','^/house/newhouse-(\d{1,10}).html$','/html/house/detail/$idgroup$newhouse-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(14,'房产首页','^/house/index.html$','/html/house/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(15,'楼盘显示页-详情','^/house/newhouse-detail-(\d{1,10}).html$','/html/house/detail/$idgroup$newhouse-detail-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(16,'楼盘显示页-动态','^/house/newhouse-news-(\d{1,10})(?:-p)?(\d{0,10}).html$','/html/house/detail/news/$idgroup$newhouse-news-{1}-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(17,'楼盘显示页-相册','^/house/newhouse-photos-(\d{1,10})(?:-p)?(\d{0,10}).html$','/html/house/detail/photo/$idgroup$newhouse-photos-{1}-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(18,'楼盘显示页-相册-具体图片','^/house/newhouse-photo-(\d{1,10}).html$','/html/house/detail/photo/$idgroup$newhouse-photo-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(19,'楼盘显示页-动态-详细页','^/house/newhouse-news-detail-(\d{1,10}).html$','/html/house/detail/news/$idgroup$newhouse-news-detail-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(20,'楼盘列表页','^/house/newhouse-list-?(\d{0,10})-?(\d{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/html/house/list/newhouse-list{1}-{2}-{3}-p{4}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(21,'文章显示页','^/Article/Article-(\d{1,10}).html$','/html/article/detail/$idgroup$article-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(22,'资讯首页','^/article/index.html$','/html/article/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(23,'资讯列表页','^/article/list-(\d{1,10})(?:-p)?(\d{0,10}).html$','/html/article/list/list-{1}-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(24,'黄页列表页','^/yellowpage/list-?(\d{1,10})-?(\d{0,10})(?:-p)?(\d{0,10}).html$','/html/yellowpage/list/list-{1}-{2}-p{3}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(25,'促销列表页','^/sales/list-?(\d{0,10})(?:-p)?(\d{0,10}).html$','/html/sales/list/list-{1}-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(26,'促销显示页','^/Sales/Sales-(\d{1,10}).html$','/html/Sales/detail/$idgroup$Sales-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(28,'关于我们','^/about/about.html$','/html/about/about.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(29,'单页','^/page/page-(\d{1,10}).html$','/html/page/page-{1}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(30,'联系我们','^/about/contact.html$','/html/about/contact.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(31,'广告服务','^/about/ad.html$','/html/about/ad.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(32,'招聘','^/about/job.html$','/html/about/job.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(33,'服务条款','^/about/clause.html$','/html/about/clause.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(34,'免责声明','^/about/duty.html$','/html/about/duty.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(35,'所有便民电话','^/tel.html$','/html/tel.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(36,'商家首页','^/company/index.html$','/html/company/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(37,'商家-具体商家首页','^/company/(\w{1,30})/index.html$','/html/company/{1}/index.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(38,'商家-具体商家介绍页','^/company/(\w{1,30})/depict.html$','/html/company/{1}/depict.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(39,'商家-具体商家产品页','^/company/(\w{1,30})/product(?:-p)?(\d{0,10}).html$','/html/company/{1}/product-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(40,'商家-具体商家图册页','^/company/(\w{1,30})/photo(?:-p)?(\d{0,10}).html$','/html/company/{1}/photo-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(41,'商家-具体商家图册显示页','^/company/(\w{1,30})/photo-detail-(\d{1,10}).html$','/html/company/{1}/photo-detail-{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(42,'商家-具体商家促销页','^/company/(\w{1,30})/sales(?:-p)?(\d{0,10}).html$','/html/company/{1}/sales-p{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(43,'商家-具体商家产品显示页','^/company/(\w{1,30})/product-detail-(\d{0,10}).html$','/html/company/{1}/product-detail-{2}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(44,'商家列表页','^/company/list-?(\d{1,10})-?(\d{0,10})(?:-p)?(\d{0,10}).html$','/html/company/list/list-{1}-{2}-p{3}.html',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(45,'论坛-首页','^/bbs/index(?:-p)?(\d{0,10}).html$','/bbs/index.aspx?p={1}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(46,'论坛-帖子显示页','^/bbs/topic-(\d{1,10})(?:-p)?(\d{0,10}).html$','/bbs/topic.aspx?id={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(46,'论坛-版块','^/bbs/board-(\d{1,10})(?:-p)?(\d{0,10}).html$','/bbs/board.aspx?id={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(47,'论坛-版块2','^/bbs/sboard-(\d{1,10}).html$','/bbs/sboard.aspx?id={1}',2)

INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1000,'手机版-首页','^/m/index.html$','/m/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1011,'手机版-资讯首页','^/m/article/index.html$','/m/article/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1012,'手机版-资讯列表页','^/m/article/list(?:-)?(\d{0,10})(?:-p)?(\d{0,10}).html$','/m/article/index.aspx?classId={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1013,'手机版-资讯显示页','^/m/Article/Article-(\d{1,10}).html$','/m/article/detail.aspx?id={1}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1021,'手机版-信息首页','^/m/info/index.html$','/m/info/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1022,'手机版-信息列表页','^/m/info/list(?:-)?(\d{0,10})(?:-p)?(\d{0,10}).html$','/m/info/index.aspx?classId={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1023,'手机版-信息显示页','^/m/info/info-(\d{1,10}).html$','/m/info/detail.aspx?id={1}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1031,'手机版-楼盘首页','^/m/house/index.html$','/m/house/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1032,'手机版-楼盘列表页','^/m/house/list(?:-)?(\d{0,10})(?:-p)?(\d{0,10}).html$','/m/house/index.aspx?status={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1033,'手机版-楼盘显示页','^/m/house/house-(\d{1,10}).html$','/m/house/detail.aspx?id={1}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1034,'手机版-楼盘新闻显示页','^/m/house/news-(\d{1,10})-(\d{1,10}).html$','/m/house/news_detail.aspx?houseid={1}&id={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1035,'手机版-楼盘相册列表页','^/m/house/photos-(\d{1,10})(?:-p)?(\d{0,10}).html$','/m/house/photo.aspx?id={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1041,'手机版-黄页首页','^/m/yellowpage/index.html$','/m/yellowpage/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1042,'手机版-黄页列表页','^/m/yellowpage/list(?:-)?(\d{0,10})(?:-p)?(\d{0,10}).html$','/m/yellowpage/index.aspx?classid={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1043,'手机版-黄页显示页','^/m/yellowpage/yellowpage-(\d{1,10}).html$','/m/yellowpage/detail.aspx?id={1}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1051,'手机版-商家首页','^/m/company/index.html$','/m/company/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1052,'手机版-商家列表页','^/m/company/list(?:-)?(\d{0,10})(?:-p)?(\d{0,10}).html$','/m/company/index.aspx?classid={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1053,'手机版-商家显示页','^/m/company/(\w{1,30})/index.html$','/m/company/detail.aspx?id={1}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1054,'手机版-具体商家产品页','^/m/company/(\w{1,30})/products(?:-p)?(\d{0,10}).html$','/m/company/products.aspx?companyId={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1055,'手机版-具体商家相册页','^/m/company/(\w{1,30})/photos(?:-p)?(\d{0,10}).html$','/m/company/photos.aspx?companyId={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1061,'手机版-论坛首页','^/m/bbs/index.html$','/m/bbs/index.aspx',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1062,'手机版-论坛列表页','^/m/bbs/list(?:-p)?(\d{0,10}).html$','/m/bbs/index.aspx?p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(1063,'手机版-论坛显示页','^/m/bbs/topic-(\d{1,10})(?:-p)?(\d{0,10}).html$','/m/bbs/topic.aspx?id={1}&p={2}',2)
INSERT INTO[T_Html_Route]([Id],[Name],[From],[To],[Status])VALUES(48,'楼盘地图','^/map/newhouse.html$','/html/map/newhouse.html',2)


SET IDENTITY_INSERT [T_Html_Route] OFF

/****** Object:  Table [T_Html_Route] End   ******/

/****** Object:  Table [T_Html_Master] Begin ******/
delete from [T_Html_Master]
SET IDENTITY_INSERT [T_Html_Master] ON 
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(1,'^/index.html$','/index.html',1800,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(2,'^/html/info/detail/$idgroup$info-(\d{1,10}).html$','/info/InfoDetail.html',86400,2,'InfoDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(3,'^/html/info/detail/$idgroup$house-(\d{1,10}).html$','/info/HouseDetail.html',86400,2,'InfoDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(4,'^/html/info/detail/$idgroup$job-(\d{1,10}).html$','/info/JobDetail.html',86400,2,'InfoDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(5,'^/html/info/detail/$idgroup$secondhand-(\d{1,10}).html$','/info/SecondHandDetail.html',86400,2,'InfoDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(6,'^/html/info/index.html$','/info/index.html',1800,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(7,'^/html/info/list/info-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/info/InfoList.html',120,2,'InfoList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(8,'^/html/info/list/house-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/info/HouseList.html',120,2,'InfoList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(9,'^/html/info/list/job-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/info/JobList.html',120,2,'InfoList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(10,'^/html/info/list/second-list-(\d{1,10})-?(\d{0,10})-?([\d,]{0,10})-?([\d,]{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/info/SecondHandList.html',120,2,'InfoList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(11,'^/html/YellowPage/detail/$idgroup$YellowPage-(\d{1,10}).html$','/YellowPage/Detail.html',86400,2,'YellowPageDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(12,'^/html/YellowPage/index.html$','/YellowPage/index.html',1800,2,'YellowPageIndex')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(13,'^/html/House/detail/$idgroup$newhouse-(\d{1,10}).html$','/House/HouseDetail.html',86400,2,'HouseDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(14,'^/html/House/index.html$','/House/index.html',1800,2,'')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(15,'^/html/House/detail/$idgroup$newhouse-detail-(\d{1,10}).html$','/House/HouseDetailDetail.html',86400,2,'HouseDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(16,'^/html/House/detail/news/$idgroup$newhouse-News-(\d{1,10})(?:-p)(\d{0,10}).html$','/House/HouseDetailNews.html',86400,2,'HouseDetailNewsList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(17,'^/html/House/detail/photo/$idgroup$newhouse-Photos-(\d{1,10})(?:-p)?(\d{0,10}).html$','/House/HouseDetailPhotos.html',86400,2,'HouseDetailPhotosList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(18,'^/html/House/detail/photo/$idgroup$newhouse-Photo-(\d{1,10}).html$','/House/HouseDetailPhoto.html',86400,2,'HouseDetailPhoto')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(19,'^/html/House/detail/news/$idgroup$newhouse-news-detail-(\d{1,10}).html$','/House/HouseNewsDetail.html',86400,2,'HouseNewsDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(20,'^/html/House/list/newHouse-list-?(\d{0,10})-?(\d{0,10})-?([\d,]{0,10})(?:-p)?(\d{0,10}).html$','/House/List.html',120,2,'HouseList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(21,'^/html/Article/detail/$idgroup$Article-(\d{1,10}).html$','/Article/Detail.html',86400,2,'ArticleDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(22,'^/html/Article/index.html$','/Article/Index.html',1800,2,'')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(23,'^/html/article/list/list-(\d{1,10})(?:-p)?(\d{0,10}).html$','/Article/List.html',120,2,'ArticleList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(24,'^/html/YellowPage/list/List-?(\d{0,10})-?(\d{0,10})(?:-p)?(\d{0,10}).html$','/YellowPage/List.html',120,2,'YellowPageList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(25,'^/html/Sales/list/List-?(\d{0,10})(?:-p)?(\d{0,10}).html$','/Sales/List.html',120,2,'SalesList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(26,'^/html/Sales/detail/$idgroup$Sales-(\d{1,10}).html$','/Sales/Detail.html',86400,2,'SalesDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(28,'^/html/about/about.html$','/about/about.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(29,'^/html/page/page-(\d{1,10}).html$','/singlepage.html',1800,2,'SinglePage')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(30,'^/html/about/contact.html$','/about/contact.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(31,'^/html/about/ad.html$','/about/ad.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(32,'^/html/about/job.html$','/about/job.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(33,'^/html/about/clause.html$','/about/clause.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(34,'^/html/about/duty.html$','/about/duty.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(35,'^/html/tel.html$','/tel.html',43200,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(36,'^/html/company/index.html$','/company/index.html',1800,2,NULL)
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(37,'^/html/company/(\w{1,30})/index.html$','/company/company/{p1}/index.html',1800,2,'CompanyDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(38,'^/html/company/(\w{1,30})/depict.html$','/company/company/{p1}/depict.html',1800,2,'CompanyDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(39,'^/html/company/(\w{1,30})/product(?:-p)(\d{0,10}).html$','/company/company/{p1}/Product.html',43200,2,'CompanyDetailProductList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(40,'^/html/company/(\w{1,30})/photo(?:-p)(\d{0,10}).html$','/company/company/{p1}/photo.html',43200,2,'CompanyDetailPhotoList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(41,'^/html/company/(\w{1,30})/photo-detail-(\d{0,10}).html$','/company/company/{p1}/photodetail.html',43200,2,'CompanyDetailPhotoDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(42,'^/html/company/(\w{1,30})/sales(?:-p)(\d{0,10}).html$','/company/company/{p1}/sales.html',43200,2,'CompanyDetailSalesList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(43,'^/html/company/(\w{1,30})/product-detail-(\d{0,10}).html$','/company/company/{p1}/productdetail.html',43200,2,'CompanyDetailProductDetail')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(44,'^/html/company/list/List-?(\d{0,10})-?(\d{0,10})(?:-p)?(\d{0,10}).html$','/company/List.html',120,2,'CompanyList')
INSERT INTO[T_Html_Master]([Id],[Rule],[MasterFile],[CreateInterval],[Status],[Method])VALUES(45,'^/html/map/newhouse.html$','/map/newhouse.html',43200,2,NULL)

SET IDENTITY_INSERT [T_Html_Master] OFF

/****** Object:  Table [T_Html_Master] End   ******/

/****** Table [T_Template_Tag] ******/
delete from [T_Template_Tag]
SET IDENTITY_INSERT [T_Template_Tag] ON 
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(4,2,'栏目导航','{$dp_ct_channelnav}','/Nav/TopChannelNav.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(5,1,'头1','{$dp_ct_header}','/Common/Header.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(6,2,'顶部导航','{$dp_ct_topnav}','/Nav/TopNav.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(7,2,'文章简单列表','{$dp_ct_article_simplelist}','/Article/SimpleList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(8,1,'用户登录模块，只有登录链接','{$dp_ct_user_simplelogin}','/User/SimpleLogin.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(9,2,'文章幻灯片','{$dp_ct_article_slide}','/Article/slide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(10,2,'推荐文章幻灯片','{$dp_ct_recommend_article_slide}','/Recommend/ArticleSlide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(11,2,'信息（房产）列表','{$dp_ct_info_houselist}','/Info/HouseList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(12,2,'信息（普通）列表','{$dp_ct_info_infolist}','/Info/InfoList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(13,2,'推荐黄页','{$dp_ct_recommend_yellowpage_list}','/Recommend/YellowpageList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(14,2,'黄页简单列表','{$dp_ct_yellowpage_simplelist}','/Yellowpage/SimpleList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(15,2,'首页便民电话','{$dp_ct_tel_toindex}','/Other/TelToIndex.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(16,1,'页脚','{$dp_ct_footer}','/Common/footer.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(17,2,'icp和统计代码','{$dp_ct_icp}','/Other/Icp.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(18,2,'版权信息','{$dp_ct_copyright}','/Other/Copyright.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(19,2,'友情链接至首页','{$dp_ct_link_index}','/Other/LinkIndex.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(20,2,'广告','{$dp_ct_ad}','/Other/Ad.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(21,2,'信息分类','{$dp_ct_info_class}','/Info/Class.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(22,2,'信息列表页（房产）列表','{$dp_ct_info_houselistpage}','/Info/HouseListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(23,2,'信息筛选器-区域','{$dp_ct_info_filter_area}','/Info/FilterArea.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(24,2,'信息筛选器-分类','{$dp_ct_info_filter_class}','/Info/FilterClass.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(25,2,'分页控件','{$dp_ct_pagetool}','/Other/PageTool.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(26,2,'信息筛选器-户型','{$dp_ct_info_filter_bedroom}','/Info/FilterBedroom.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(27,2,'信息路径导航','{$dp_ct_info_crumbs}','/Info/Crumbs.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(28,2,'信息列表页（招聘）列表','{$dp_ct_info_joblistpage}','/Info/JobListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(29,2,'信息列表页（二手）列表','{$dp_ct_info_secondhandlistpage}','/Info/SecondHandListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(30,2,'信息列表页（普通信息）列表','{$dp_ct_info_infolistpage}','/Info/InfoListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(31,2,'黄页详情-地图标注','{$dp_ct_yellowpage_detail_map}','/YellowPage/DetailMap.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(32,2,'黄页详情-图片幻灯片','{$dp_ct_yellowpage_detail_imgslide}','/YellowPage/ImgSlide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(33,2,'促销信息简单列表','{$dp_ct_sales_simplelist}','/Sales/SimpleList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(34,2,'推荐促销','{$dp_ct_recommend_sales_list}','/Recommend/SalesList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(35,2,'黄页分类','{$dp_ct_yellowpage_class}','/YellowPage/Class.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(36,2,'推荐楼盘','{$dp_ct_recommend_house_list}','/Recommend/HouseList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(37,2,'楼盘详情-图片幻灯片','{$dp_ct_house_detail_slide}','/House/DetailSlide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(38,2,'楼盘详情-动态列表','{$dp_ct_house_detail_newslist}','/House/DetailNewsList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(39,2,'楼盘详情-地图标注','{$dp_ct_house_detail_map}','/House/DetailMap.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(40,2,'楼盘详情-图片列表','{$dp_ct_house_detail_imglist}','/House/DetailImgList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(41,2,'推荐楼盘-简单','{$dp_ct_recommend_house_simplelist}','/Recommend/HouseSimpleList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(42,2,'楼盘列表','{$dp_ct_house_list}','/House/List.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(43,1,'楼盘详情-头','{$dp_ct_house_detail_header}','/House/DetailHeader.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(44,2,'楼盘详情-动态列表','{$dp_ct_house_detail_newslistpage}','/House/DetailNewsListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(45,2,'楼盘详情-图片列表','{$dp_ct_house_detail_photoslistpage}','/House/DetailPhotosListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(46,2,'推荐文章','{$dp_ct_recommend_article_list}','/Recommend/ArticleList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(47,2,'楼盘筛选器-区域','{$dp_ct_house_filter_area}','/House/FilterArea.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(48,2,'楼盘筛选器-价格','{$dp_ct_house_filter_price}','/House/FilterPrice.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(49,2,'楼盘筛选器-销售状态','{$dp_ct_house_filter_salestatus}','/House/FilterSaleStatus.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(50,2,'楼盘列表页','{$dp_ct_house_listpage}','/House/ListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(51,2,'文章列表块','{$dp_ct_article_list}','/Article/List.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(52,2,'资讯列表页','{$dp_ct_article_listpage}','/Article/ListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(53,2,'黄页筛选器-区域','{$dp_ct_yellowpage_filter_area}','/YellowPage/FilterArea.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(54,2,'黄页筛选器-分类','{$dp_ct_yellowpage_filter_class}','/YellowPage/FilterClass.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(55,2,'黄页列表页','{$dp_ct_yellowpage_listpage}','/YellowPage/ListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(56,2,'促销列表页','{$dp_ct_sales_listpage}','/Sales/ListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(57,2,'促销分类','{$dp_ct_sales_class}','/Sales/Class.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(58,2,'黄页详情-促销','{$dp_ct_yellowpage_detail_sales}','/YellowPage/Sales.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(59,2,'地址获取','{$dp_ct_url}','/Other/Url.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(60,2,'楼盘新闻列表','{$dp_ct_house_newslist}','/House/NewsList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(61,2,'推荐分类信息','{$dp_ct_recommend_info_list}','/Recommend/InfoList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(62,2,'推荐自定义幻灯片','{$dp_ct_recommend_customslide}','/Recommend/CustomSlide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(63,2,'单页正文','{$dp_ct_singlepage}','/Other/SinglePage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(64,2,'推荐自定义列表','{$dp_ct_recommend_customlist}','/Recommend/CustomList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(65,2,'单页链接','{$dp_ct_singlepage_url}','/Other/SinglePageUrl.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(66,2,'文章详细页-幻灯片','{$dp_ct_article_detail_slide}','/Article/Detailslide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(67,2,'所有便民电话','{$dp_ct_tel_index}','/Other/TelIndex.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(68,1,'头2','{$dp_ct_header2}','/Common/Header2.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(69,2,'具体商家产品列表页','{$dp_ct_company_detail_productlistpage}','/Company/DetailProductListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(70,2,'具体商家图册列表页','{$dp_ct_company_detail_photolistpage}','/Company/DetailPhotoListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(71,2,'具体商家地图','{$dp_ct_company_detail_map}','/Company/DetailMap.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(72,2,'具体商家产品列表块','{$dp_ct_company_detail_productlist}','/Company/DetailProductList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(73,2,'具体商家图册列表块','{$dp_ct_company_detail_photolist}','/Company/DetailPhotoList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(74,2,'具体商家促销列表页','{$dp_ct_company_detail_saleslistpage}','/Company/DetailSalesListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(75,2,'具体商家促销列表块','{$dp_ct_company_detail_saleslist}','/Company/DetailSalesList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(76,1,'具体商家-顶部菜单','{$dp_ct_company_detail_topnav1}','/company/company/TopNav1.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(77,1,'具体商家-顶部菜单','{$dp_ct_company_detail_topnav2}','/company/company/TopNav2.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(78,2,'具体商家-产品图片幻灯片','{$dp_ct_company_detail_product_imgslide}','/Company/DetailProductImgSlide.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(79,2,'商家分类','{$dp_ct_company_class}','/company/Class.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(80,2,'推荐商家','{$dp_ct_recommend_company_list}','/Recommend/companyList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(81,2,'商家简单列表','{$dp_ct_company_simplelist}','/company/SimpleList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(82,2,'商家筛选器-区域','{$dp_ct_company_filter_area}','/company/FilterArea.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(83,2,'商家筛选器-分类','{$dp_ct_company_filter_class}','/company/FilterClass.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(84,2,'商家列表页','{$dp_ct_company_listpage}','/company/ListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(85,2,'推荐商家产品','{$dp_ct_recommend_company_product_list}','/Recommend/CompanyProductList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(86,2,'评论器','{$dp_ct_commentor}','/Other/Commentor.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(87,2,'评论列表','{$dp_ct_comment_listpage}','/Other/CommentListPage.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(88,2,'论坛帖子列表','{$dp_ct_bbs_topiclist}','/BBS/TopicList.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(89,2,'版权信息','{$dp_ct_copyright2}','/Other/Copyright2.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(90,1,'头3','{$dp_ct_header3}','/Common/Header3.html',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(91,2,'顶部导航2','{$dp_ct_topnav2}','/Nav/TopNav2.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(92,2,'首页-天气预报','{$dp_ct_weather}','/Other/Weather.ascx',2)
INSERT INTO[T_Template_Tag]([Id],[TagType],[Name],[Tag],[File],[Status])VALUES(93,2,'首页-侧边栏','{$dp_ct_index_toolbar}','/Other/IndexToolbar.ascx',2)


SET IDENTITY_INSERT [T_Template_Tag] OFF

/****** Table [T_Template_Tag] End   ******/


/******  Table [T_EditOnline_File] Begin ******/
set identity_insert T_EditOnline_File on
delete From T_EditOnline_File
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1,1,'首页','/index.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(2,1,'新闻资讯首页','/article/index.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(3,1,'房产首页','/house/index.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(4,1,'分类信息首页','/info/index.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(5,1,'黄页首页','/yellowpage/index.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(6,1,'商家首页','/company/index.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(50,1,'页头','/common/header.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(51,1,'简单页头','/common/header_simple.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(52,1,'页脚','/common/footer.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(53,1,'单页','/singlepage.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(100,1,'新闻频道-列表页','/article/list.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(101,1,'新闻频道-显示页','/article/detail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(150,1,'房产频道-列表页','/house/list.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(151,1,'房产频道-显示页','/house/housedetail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(152,1,'房产频道-显示页-详情','/house/housedetaildetail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(153,1,'房产频道-显示页-动态列表','/house/housedetailnews.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(154,1,'房产频道-显示页-图片列表页','/house/housedetailphotos.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(155,1,'房产频道-显示页-图片显示页','/house/housedetailphoto.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(156,1,'房产频道-显示页-头','/house/DetailHeader.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(200,1,'分类信息频道-其它列表页','/info/infolist.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(201,1,'分类信息频道-其它显示页','/info/infodetail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(202,1,'分类信息频道-房产列表页','/info/houselist.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(203,1,'分类信息频道-房产显示页','/info/housedetail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(204,1,'分类信息频道-工作列表页','/info/joblist.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(205,1,'分类信息频道-工作显示页','/info/jobdetail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(206,1,'分类信息频道-二手列表页','/info/secondhandlist.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(207,1,'分类信息频道-二手显示页','/info/secondhanddetail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(250,1,'黄页频道-列表页','/yellowpage/list.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(251,1,'黄页频道-显示页','/yellowpage/detail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(300,1,'促销-列表页','/sales/list.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(301,1,'促销-显示页','/sales/detail.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(350,1,'关于我们-关于我们','/about/about.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(351,1,'关于我们-广告服务','/about/ad.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(352,1,'关于我们-联系我们','/about/contact.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(353,1,'关于我们-免责声明','/about/duty.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(354,1,'关于我们-招聘人才','/about/job.html')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(355,1,'关于我们-免责申明','/about/clause.html')

insert into T_EditOnline_File([id],filetype,[Name],[file])values(1000,2,'全局基础样式','/css/base.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1001,2,'首页样式','/css/index.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1050,2,'新闻频道-首页样式','/css/article/index.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1051,2,'新闻频道-列表样式','/css/article/list.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1052,2,'新闻频道-显示样式','/css/article/detail.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1053,2,'新闻频道-发布样式','/css/article/pub.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1100,2,'房产频道-首页样式','/css/house/index.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1101,2,'房产频道-列表样式','/css/house/list.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1102,2,'房产频道-显示样式','/css/house/detail.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1103,2,'房产频道-发布样式','/css/house/pub.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1150,2,'分类信息频道-首页样式','/css/info/index.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1151,2,'分类信息频道-列表样式','/css/info/list.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1152,2,'分类信息频道-显示样式','/css/info/detail.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1153,2,'分类信息频道-发布样式','/css/info/pub.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1200,2,'黄页频道-首页样式','/css/yellowpage/index.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1201,2,'黄页频道-列表样式','/css/yellowpage/list.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1202,2,'黄页频道-显示样式','/css/yellowpage/detail.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1203,2,'黄页频道-发布样式','/css/yellowpage/pub.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1250,2,'用户中心-共用样式','/css/my/my.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1251,2,'用户中心-修改头像样式','/css/my/face.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(1301,2,'商家频道-首页样式','/css/company/face.css')

insert into T_EditOnline_File([id],filetype,[Name],[file])values(5000,2,'登录、注册页样式','/css/login.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(5001,2,'账号相关页（找回密码等）样式','/css/account.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(5002,2,'提示信息页样式','/css/confirm.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(5003,2,'关于我们页样式','/css/about.css')
insert into T_EditOnline_File([id],filetype,[Name],[file])values(5004,2,'发布页通用样式','/css/pub.css')
set identity_insert [T_EditOnline_File] off
/******  Table [T_EditOnline_File] End ******/

