SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

DROP TABLE IF EXISTS `s_admin`;
CREATE TABLE IF NOT EXISTS `s_admin` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_AdminUserName` varchar(64) NOT NULL,
  `S_AdminPassWord` varchar(64) NOT NULL,
  `S_AdminRealName` varchar(255) DEFAULT NULL,
  `S_AdminTel` varchar(64) DEFAULT NULL,
  `S_LoginIP` varchar(128) DEFAULT NULL,
  `S_PreIP` varchar(128) DEFAULT NULL,
  `S_LoginNum` int(11) DEFAULT '0',
  `S_LastLogin` datetime DEFAULT NULL,
  `S_IsLock` int(11) NOT NULL DEFAULT '0',
  `S_Permission` varchar(128) NOT NULL,
  `S_AdminInfo` text,
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;


DROP TABLE IF EXISTS `s_adsense`;
CREATE TABLE IF NOT EXISTS `s_adsense` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(64) NOT NULL,
  `S_GroupID` int(11) NOT NULL default '0',
  `S_TheAdrHtml` text NOT NULL,
  `S_AddTime` date NOT NULL,
  `S_IsUse` int(11) NOT NULL default '0',
  `S_TheAdrJs` text NOT NULL,
  `S_IsFix` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_adsgroup`;
CREATE TABLE IF NOT EXISTS `s_adsgroup` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(128) NOT NULL,
  `S_Remark` text,
  `S_IsUse` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_area`;
CREATE TABLE IF NOT EXISTS `s_area` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_AreaName` varchar(64) NOT NULL,
  `S_Language` varchar(64) NOT NULL,
  `S_TheOrder` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_article`;
CREATE TABLE IF NOT EXISTS `s_article` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_Keywords` varchar(255) default NULL,
  `S_Color` varchar(8) default NULL,
  `S_Pic` varchar(255) default NULL,
  `S_ClassID` int(11) NOT NULL default '0',
  `S_Topic` int(11) NOT NULL default '0',
  `S_Author` varchar(255) default NULL,
  `S_Source` varchar(255) NOT NULL,
  `S_Remark` varchar(255) default NULL,
  `S_Content` text NOT NULL,
  `S_PageNum` int(11) NOT NULL default '1',
  `S_Hits` int(11) default '1',
  `S_HitsDay` int(11) default '1',
  `S_HitsMon` int(11) default '1',
  `S_HitsWeek` int(11) default '1',
  `S_Reco` int(11) NOT NULL default '0',
  `S_IsHide` int(11) NOT NULL default '0',
  `S_AddTime` datetime default NULL,
  `S_Apex` int(11) NOT NULL default '0',
  `S_Tread` int(11) NOT NULL default '0',
  `S_PurView` varchar(100) default NULL,
  `S_GotoUrl` varchar(255) default NULL,
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_class`;
CREATE TABLE IF NOT EXISTS `s_class` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_AliasName` varchar(64) NOT NULL,
  `S_Template` varchar(64) NOT NULL,
  `S_FatherID` int(11) NOT NULL default '0',
  `S_TieID` varchar(255) default NULL,
  `S_SystemID` int(11) NOT NULL default '1',
  `S_TheOrder` int(11) NOT NULL default '0',
  `S_IsHide` int(11) NOT NULL default '0',
  `collectbind` VARCHAR( 255 ) NOT NULL default '',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_gbook`;
CREATE TABLE IF NOT EXISTS `s_gbook` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(64) NOT NULL,
  `S_Content` text NOT NULL,
  `S_IP` varchar(255) DEFAULT NULL,
  `S_Reply` int(11) NOT NULL DEFAULT '2',
  `S_ReContent` text,
  `S_AddTime` datetime NOT NULL,
  `S_ReTime` datetime DEFAULT NULL,
  `S_Shield` int(11) DEFAULT '0',
  `S_VID` int(11) NOT NULL DEFAULT '0',
  `S_IsVip` int(11) DEFAULT '0',
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_label`;
CREATE TABLE IF NOT EXISTS `s_label` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_SelfLable` text NOT NULL,
  `S_Remark` varchar(255) default NULL,
  `S_AddTime` date default NULL,
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;




DROP TABLE IF EXISTS `s_link`;
CREATE TABLE IF NOT EXISTS `s_link` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_Url` varchar(255) NOT NULL,
  `S_Pic` varchar(255) default NULL,
  `S_ClassID` int(11) NOT NULL,
  `S_InPut` varchar(255) default NULL,
  `S_IsVerify` int(11) NOT NULL default '0',
  `S_IsIndex` int(11) NOT NULL default '0',
  `S_TheOrder` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_pathip`;
CREATE TABLE IF NOT EXISTS `s_pathip` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) default NULL,
  `S_AddPath` varchar(255) default NULL,
  `S_TheOrder` int(11) NOT NULL default '0',
  `S_SystemID` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_review`;
CREATE TABLE IF NOT EXISTS `s_review` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_Content` text NOT NULL,
  `S_AddTime` datetime default NULL,
  `S_UserIP` varchar(255) default NULL,
  `S_DateID` int(11) NOT NULL default '0',
  `S_SystemID` int(11) NOT NULL default '0',
  `S_Check` int(11) NOT NULL default '0',
  `S_Score` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_skins`;
CREATE TABLE IF NOT EXISTS `s_skins` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_TempPath` text NOT NULL,
  `S_TheOrder` int(11) NOT NULL default '0',
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_topic`;
CREATE TABLE IF NOT EXISTS `s_topic` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_Keywords` varchar(255) default NULL,
  `S_Color` varchar(8) default NULL,
  `S_AliasName` varchar(255) NOT NULL,
  `S_Pic` varchar(255) default NULL,
  `S_Template` varchar(128) NOT NULL,
  `S_Remark` varchar(255) default NULL,
  `S_Content` text,
  `S_Reco` int(11) NOT NULL default '0',
  `S_IsHide` int(11) NOT NULL default '0',
  `S_SystemID` int(11) NOT NULL default '1',
  `S_Hits` int(11) NOT NULL default '1',
  `S_Apex` int(11) NOT NULL default '0',
  `S_Tread` int(11) NOT NULL default '0',
  `S_AddTime` date default NULL,
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;



DROP TABLE IF EXISTS `s_video`;
CREATE TABLE IF NOT EXISTS `s_video` (
  `S_ID` int(11) NOT NULL auto_increment,
  `S_Name` varchar(255) NOT NULL,
  `S_Keywords` varchar(255) default NULL,
  `S_Color` varchar(8) default NULL,
  `S_Pic` varchar(255) default NULL,
  `S_ClassID` int(11) NOT NULL default '0',
  `S_Topic` int(11) NOT NULL default '0',
  `S_Direct` varchar(255) default NULL,
  `S_Author` varchar(255) default NULL,
  `S_Source` varchar(255) NOT NULL,
  `S_VData` longtext NOT NULL,
  `S_AddPath` varchar(255) default NULL,
  `S_Remark` varchar(255) default NULL,
  `S_Content` text NOT NULL,
  `S_Hits` int(11) default '1',
  `S_HitsDay` int(11) default '1',
  `S_HitsMon` int(11) default '1',
  `S_HitsWeek` int(11) default '1',
  `S_Reco` int(11) NOT NULL default '0',
  `S_Year` varchar(64) default NULL,
  `S_Language` varchar(128) default NULL,
  `S_Area` varchar(128) default NULL,
  `S_Error` int(11) NOT NULL default '0',
  `S_IsEnd` int(11) NOT NULL default '0',
  `S_IsHide` int(11) NOT NULL default '0',
  `S_AddTime` datetime default NULL,
  `S_Apex` int(11) NOT NULL default '0',
  `S_Tread` int(11) NOT NULL default '0',
  `S_PurView` varchar(100) default NULL,
  PRIMARY KEY  (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_card`;
CREATE TABLE IF NOT EXISTS `s_card` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_CardNum` varchar(50) DEFAULT NULL,
  `S_CardPWD` varchar(50) DEFAULT NULL,
  `S_CardGroup` int(11) DEFAULT '0',
  `S_CardState` int(11) DEFAULT '0',
  `S_CardUsed` int(11) DEFAULT '0',
  `S_CardVip` varchar(50) DEFAULT NULL,
  `S_CardWorth` int(11) DEFAULT '0',
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_bookmarks`;
CREATE TABLE IF NOT EXISTS `s_bookmarks` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Title` varchar(255) DEFAULT NULL,
  `S_Content` text,
  `S_Info` text,
  `S_Vip` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_stationmes`;
CREATE TABLE IF NOT EXISTS `s_stationmes` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Title` varchar(255) DEFAULT NULL,
  `S_Content` text,
  `S_Name` text,
  `S_Type` text,
  `S_CreateTime` datetime DEFAULT NULL,
  `S_Class` int(11) DEFAULT '0',
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;


DROP TABLE IF EXISTS `s_users`;
CREATE TABLE IF NOT EXISTS `s_users` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(50) DEFAULT NULL,
  `S_PassWord` varchar(50) DEFAULT NULL,
  `S_Question` varchar(50) DEFAULT NULL,
  `S_Answer` varchar(50) DEFAULT NULL,
  `S_Group` int(11) DEFAULT '0',
  `S_Type` int(11) DEFAULT '0',
  `S_LogIP` varchar(50) DEFAULT NULL,
  `S_LogNum` int(11) DEFAULT '0',
  `S_LogTime` datetime DEFAULT NULL,
  `S_CreateTime` date DEFAULT NULL,
  `S_State` int(11) DEFAULT '0',
  `S_QQ` varchar(50) DEFAULT NULL,
  `S_Email` varchar(50) DEFAULT NULL,
  `S_RealName` varchar(50) DEFAULT NULL,
  `S_UseType` int(11) DEFAULT '0',
  `S_Tel` varchar(50) DEFAULT NULL,
  `S_Coin` int(11) DEFAULT '0',
  `S_UseDate` datetime DEFAULT NULL,
  `S_StartIP` varchar(50) DEFAULT NULL,
  `S_LastIP` varchar(50) DEFAULT NULL,
  `S_WatchRec` text,
  `S_ChangeTime` date DEFAULT NULL,
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_usersgroup`;
CREATE TABLE IF NOT EXISTS `s_usersgroup` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(200) DEFAULT NULL,
  `S_Group` int(11) DEFAULT '0',
  `S_Info` varchar(255) DEFAULT NULL,
  `S_DisCount` int(11) DEFAULT '0',
  `S_PurView` varchar(255) DEFAULT NULL,
  `S_PurViewT` varchar(255) DEFAULT NULL,
  `S_PurViewA` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `tempvideo`;
CREATE TABLE IF NOT EXISTS `tempvideo` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(255) NOT NULL,
  `S_Keywords` varchar(255) DEFAULT NULL,
  `S_Color` varchar(8) DEFAULT NULL,
  `S_Pic` varchar(255) DEFAULT NULL,
  `S_ClassID` int(11) NOT NULL DEFAULT '0',
  `S_Topic` int(11) NOT NULL DEFAULT '0',
  `S_Direct` varchar(255) DEFAULT NULL,
  `S_Author` varchar(255) DEFAULT NULL,
  `S_Source` varchar(255) NOT NULL,
  `S_VData` longtext NOT NULL,
  `S_AddPath` varchar(255) DEFAULT NULL,
  `S_Remark` varchar(255) DEFAULT NULL,
  `S_Content` text NOT NULL,
  `S_Hits` int(11) DEFAULT '1',
  `S_Reco` int(11) NOT NULL DEFAULT '0',
  `S_Year` varchar(64) DEFAULT NULL,
  `S_Language` varchar(128) DEFAULT NULL,
  `S_Area` varchar(128) DEFAULT NULL,
  `S_Error` int(11) NOT NULL DEFAULT '0',
  `S_IsEnd` int(11) NOT NULL DEFAULT '0',
  `S_IsHide` int(11) NOT NULL DEFAULT '0',
  `S_AddTime` datetime DEFAULT NULL,
  `S_Apex` int(11) NOT NULL DEFAULT '0',
  `S_Tread` int(11) NOT NULL DEFAULT '0',
  `S_PurView` varchar(100) DEFAULT NULL,
  `S_Status` int(11) DEFAULT '0',
  `S_Url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `tempart`;
CREATE TABLE IF NOT EXISTS `tempart` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(255) CHARACTER SET gbk NOT NULL,
  `S_Pic` text CHARACTER SET gbk,
  `S_ClassID` int(11) NOT NULL DEFAULT '0',
  `S_Topic` int(11) NOT NULL DEFAULT '0',
  `S_Author` varchar(255) CHARACTER SET gbk NOT NULL DEFAULT 'δ֪',
  `S_Source` varchar(255) CHARACTER SET gbk NOT NULL DEFAULT 'δ֪',
  `S_Remark` varchar(255) CHARACTER SET gbk NOT NULL DEFAULT 'δ֪',
  `S_Content` text CHARACTER SET gbk,
  `S_AddTime` datetime DEFAULT NULL,
  `S_Cid` int(11) DEFAULT NULL,
  `S_Url` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_Status` int(11) DEFAULT '0',
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_acustom`;
CREATE TABLE IF NOT EXISTS `s_acustom` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(100) CHARACTER SET gbk DEFAULT NULL,
  `S_Url` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_Code` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_SourceMode` int(11) NOT NULL DEFAULT '0',
  `S_SourceName` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_SourceGo` text CHARACTER SET gbk,
  `S_SourceEnd` text CHARACTER SET gbk,
  `S_Page` int(11) DEFAULT NULL,
  `S_AutoPageMode` int(11) NOT NULL DEFAULT '0',
  `S_UrlStr` text CHARACTER SET gbk,
  `S_PageGo` int(11) DEFAULT '1',
  `S_PageEnd` int(11) DEFAULT '1',
  `S_Order` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_AutoSave` int(11) DEFAULT '0',
  `S_SavePic` int(11) DEFAULT '0',
  `S_Safe` text CHARACTER SET gbk,
  `S_ListGo` text CHARACTER SET gbk,
  `S_ListEnd` text CHARACTER SET gbk,
  `S_LinkGo` text CHARACTER SET gbk,
  `S_LinkEnd` text CHARACTER SET gbk,
  `S_ArtNameGo` text CHARACTER SET gbk,
  `S_ArtNameEnd` text CHARACTER SET gbk,
  `S_RemarkGo` text CHARACTER SET gbk,
  `S_RemarkEnd` text CHARACTER SET gbk,
  `S_AuthorMode` int(11) NOT NULL DEFAULT '0',
  `S_AuthorName` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_AuthorGo` text CHARACTER SET gbk,
  `S_AuthorEnd` text CHARACTER SET gbk,
  `S_PicGo` text CHARACTER SET gbk,
  `S_PageMode` int(11) NOT NULL DEFAULT '0',
  `S_PageUrlGo` text CHARACTER SET gbk,
  `S_PageUrlEnd` text CHARACTER SET gbk,
  `S_PageListGo` text CHARACTER SET gbk,
  `S_PageListEnd` text CHARACTER SET gbk,
  `S_PicEnd` text CHARACTER SET gbk,
  `S_ClassMode` int(11) DEFAULT NULL,
  `S_ClassID` int(11) DEFAULT NULL,
  `S_ClassGo` text CHARACTER SET gbk,
  `S_ClassEnd` text CHARACTER SET gbk,
  `S_ContentGo` text CHARACTER SET gbk,
  `S_ContentEnd` text CHARACTER SET gbk,
  `S_AddTime` datetime DEFAULT NULL,
  `S_Replace` text CHARACTER SET gbk,
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_custom`;
CREATE TABLE IF NOT EXISTS `s_custom` (
  `S_ID` int(11) NOT NULL AUTO_INCREMENT,
  `S_Name` varchar(100) CHARACTER SET gbk DEFAULT NULL,
  `S_Url` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_Code` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_Source` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_Page` int(11) DEFAULT NULL,
  `S_UrlStr` text CHARACTER SET gbk,
  `S_PageGo` int(11) DEFAULT '1',
  `S_PageEnd` int(11) DEFAULT '1',
  `S_Order` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_AutoSave` int(11) DEFAULT '0',
  `S_SavePic` int(11) DEFAULT '0',
  `S_Safe` text CHARACTER SET gbk,
  `S_ListGo` text CHARACTER SET gbk,
  `S_ListEnd` text CHARACTER SET gbk,
  `S_LinkGo` text CHARACTER SET gbk,
  `S_LinkEnd` text CHARACTER SET gbk,
  `S_VideoNameGo` text CHARACTER SET gbk,
  `S_VideoNameEnd` text CHARACTER SET gbk,
  `S_RemarkGo` text CHARACTER SET gbk,
  `S_RemarkEnd` text CHARACTER SET gbk,
  `S_DirectGo` text CHARACTER SET gbk,
  `S_DirectEnd` text CHARACTER SET gbk,
  `S_YearGo` text CHARACTER SET gbk,
  `S_YearEnd` text CHARACTER SET gbk,
  `S_AuthorGo` text CHARACTER SET gbk,
  `S_AuthorEnd` text CHARACTER SET gbk,
  `S_AreaMode` int(11) DEFAULT NULL,
  `S_AreaName` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_AreaGo` text CHARACTER SET gbk,
  `S_AreaEnd` text CHARACTER SET gbk,
  `S_PicGo` text CHARACTER SET gbk,
  `S_PicEnd` text CHARACTER SET gbk,
  `S_LanguageMode` int(11) DEFAULT NULL,
  `S_LanguageName` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  `S_LanguageGo` text CHARACTER SET gbk,
  `S_LanguageEnd` text CHARACTER SET gbk,
  `S_ClassMode` int(11) DEFAULT NULL,
  `S_ClassID` int(11) DEFAULT NULL,
  `S_ClassGo` text CHARACTER SET gbk,
  `S_ClassEnd` text CHARACTER SET gbk,
  `S_ContentGo` text CHARACTER SET gbk,
  `S_ContentEnd` text CHARACTER SET gbk,
  `S_PlayUrlGo` text CHARACTER SET gbk,
  `S_PlayUrlEnd` text CHARACTER SET gbk,
  `S_AddGo` text CHARACTER SET gbk,
  `S_AddEnd` text CHARACTER SET gbk,
  `S_AddMode` int(11) DEFAULT NULL,
  `S_AddOldStr` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_AddNewStr` varchar(255) CHARACTER SET gbk DEFAULT NULL,
  `S_AddTime` datetime DEFAULT NULL,
  `S_Replace` text CHARACTER SET gbk,
  `S_PlayUrlMode` int(11) DEFAULT NULL,
  `S_AddPath` varchar(50) CHARACTER SET gbk DEFAULT NULL,
  PRIMARY KEY (`S_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;

DROP TABLE IF EXISTS `s_vodrule`;
CREATE TABLE IF NOT EXISTS `s_vodrule` (
  `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(40) NOT NULL  DEFAULT '' COMMENT '采集规则名称',
  `targeturl` varchar(255) NOT NULL  DEFAULT '' COMMENT '目标站网址',
  `charset` tinyint(1) NOT NULL  DEFAULT '1' COMMENT 'charset类型',
  `player` varchar(10) NOT NULL  DEFAULT '' COMMENT '播放器',
  `collecturl` text NOT NULL DEFAULT '',
  `collecttype` tinyint(1) NOT NULL DEFAULT '2',
  `type` tinyint(1) NOT NULL COMMENT '采集功能选项',
  `pictype` tinyint(1) NOT NULL DEFAULT '0' COMMENT '过滤选项',
  `list` text NOT NULL DEFAULT '',
  `listhref` text NOT NULL DEFAULT '',
  `title` text NOT NULL DEFAULT '',
  `state` text NOT NULL DEFAULT '',
  `class` text NOT NULL DEFAULT '',
  `direct` text NOT NULL DEFAULT '',
  `author` text NOT NULL DEFAULT '',
  `area` text NOT NULL DEFAULT '',
  `language` text NOT NULL DEFAULT '',
  `year` text NOT NULL DEFAULT '',
  `pic` text NOT NULL DEFAULT '',
  `content` text NOT NULL DEFAULT '',
  `playmode` tinyint(1) NOT NULL DEFAULT '1',
  `playrange` text NOT NULL DEFAULT '',
  `webplayurl` text NOT NULL DEFAULT '',
  `urlmode` tinyint(1) NOT NULL DEFAULT '0',
  `playurl` text NOT NULL DEFAULT '',
  `urlreplace` text NOT NULL DEFAULT '',
  `contentreplace` text NOT NULL DEFAULT '',
  `finish` tinyint(3) NOT NULL DEFAULT '0' COMMENT '完成度',
  `collecttime` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=1 ;