CREATE TABLE `book` (
  `l_id` int(11) NOT NULL auto_increment,
  `l_title` varchar(255) collate gb2312_bin NOT NULL,
  `l_lynr` text collate gb2312_bin NOT NULL,
  `l_time` char(25) collate gb2312_bin NOT NULL,
  `l_ip` varchar(255) collate gb2312_bin NOT NULL,
  `l_ckroot` char(1) collate gb2312_bin NOT NULL,
  `l_name` varchar(255) collate gb2312_bin NOT NULL,
  `l_mail` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`l_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `cp_class` (
  `cp_c_id` int(11) NOT NULL auto_increment,
  `cp_c_name` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`cp_c_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `cp_cp` (
  `cp_id` int(11) NOT NULL auto_increment,
  `cp_c_id` char(5) collate gb2312_bin NOT NULL,
  `cp_kz` char(1) collate gb2312_bin NOT NULL,
  `cp_name` varchar(255) collate gb2312_bin NOT NULL,
  `cp_xh` varchar(255) collate gb2312_bin NOT NULL,
  `cp_sm` varchar(255) collate gb2312_bin NOT NULL,
  `cp_img` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`cp_id`),
  KEY `cp_c_id` (`cp_c_id`),
  KEY `cp_kz` (`cp_kz`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `danye` (
  `d_id` int(11) NOT NULL auto_increment,
  `d_jingli` varchar(255) collate gb2312_bin NOT NULL,
  `d_wenhua` varchar(255) collate gb2312_bin NOT NULL,
  `d_mubiao` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`d_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `hbook` (
  `hf_id` int(11) NOT NULL auto_increment,
  `l_id` char(5) collate gb2312_bin NOT NULL,
  `hf_nr` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`hf_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=2 ;

CREATE TABLE `job` (
  `j_id` int(11) NOT NULL auto_increment,
  `j_title` varchar(255) NOT NULL,
  `j_xueli` varchar(255) NOT NULL,
  `j_didian` varchar(255) NOT NULL,
  `j_gztime` varchar(255) NOT NULL,
  `j_jobren` varchar(255) NOT NULL,
  `j_waiyu` varchar(255) NOT NULL,
  `j_lianxi` varchar(255) NOT NULL,
  `j_miaosu` text NOT NULL,
  PRIMARY KEY  (`j_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 AUTO_INCREMENT=1 ;

CREATE TABLE `nav` (
  `nav_id` int(11) NOT NULL auto_increment,
  `nav_kz` char(1) collate gb2312_bin NOT NULL,
  `nav_name` char(20) collate gb2312_bin NOT NULL,
  `nav_url` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`nav_id`),
  KEY `nav_kz` (`nav_kz`)
) ENGINE=MyISAM  DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=10 ;

INSERT INTO `nav` (`nav_id`, `nav_kz`, `nav_name`, `nav_url`) VALUES 
(1,1,网站首页,index.php),
(2,1,企业新闻,news.php),
(3,1,企业简介,qyjj.php),
(4,1,企业荣誉,qyry.php),
(5,1,企业风采,qyfc.php),
(6,1,产品展示,chanpin.php),
(7,1,企业招聘,job.php),
(8,1,在线留言,book.php);

CREATE TABLE `new_class` (
  `n_c_id` int(11) NOT NULL auto_increment,
  `n_c_name` char(20) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`n_c_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `new_news` (
  `n_n_id` int(11) NOT NULL auto_increment,
  `n_n_cid` char(5) collate gb2312_bin NOT NULL,
  `n_n_title` varchar(225) collate gb2312_bin NOT NULL,
  `n_n_time` char(22) collate gb2312_bin NOT NULL,
  `n_n_newly` varchar(255) collate gb2312_bin NOT NULL,
  `n_n_news` text collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`n_n_id`),
  KEY `n_n_cid` (`n_n_cid`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `qyfc` (
  `fc_id` int(11) NOT NULL auto_increment,
  `fc_img` varchar(255) collate gb2312_bin NOT NULL,
  `fc_title` varchar(255) collate gb2312_bin NOT NULL,
  `fc_sm` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`fc_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `qyjj` (
  `jj_id` int(11) NOT NULL auto_increment,
  `jj_img` varchar(255) collate gb2312_bin NOT NULL,
  `jj_nr` text collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`jj_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `qyry` (
  `ry_id` int(11) NOT NULL auto_increment,
  `ry_img` varchar(255) collate gb2312_bin NOT NULL,
  `ry_title` varchar(255) collate gb2312_bin NOT NULL,
  `ry_js` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`ry_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `root` (
  `root_id` int(11) NOT NULL auto_increment,
  `root_name` varchar(255) collate gb2312_bin NOT NULL,
  `root_pass` char(40) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`root_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=3 ;

CREATE TABLE `smarty` (
  `s_id` int(11) NOT NULL auto_increment,
  `s_kz` char(1) collate gb2312_bin NOT NULL,
  `s_name` varchar(255) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`s_id`),
  KEY `s_kz` (`s_kz`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;

CREATE TABLE `web` (
  `w_id` int(11) NOT NULL auto_increment,
  `w_tel` char(15) collate gb2312_bin NOT NULL,
  `w_cstel` char(15) collate gb2312_bin NOT NULL,
  `w_title` varchar(255) collate gb2312_bin NOT NULL,
  `w_keywords` varchar(255) collate gb2312_bin NOT NULL,
  `w_description` varchar(255) collate gb2312_bin NOT NULL,
  `w_cop` varchar(255) collate gb2312_bin NOT NULL,
  `w_qq` char(15) collate gb2312_bin NOT NULL,
  `w_mail` varchar(255) collate gb2312_bin NOT NULL,
  `w_icp` varchar(255) collate gb2312_bin NOT NULL,
  `w_icpurl` varchar(255) collate gb2312_bin NOT NULL,
  `w_news` char(5) collate gb2312_bin NOT NULL,
  `w_chanpin` char(5) collate gb2312_bin NOT NULL,
  `w_lyb` char(5) collate gb2312_bin NOT NULL,
  `w_fc` char(5) collate gb2312_bin NOT NULL,
  `w_job` char(5) collate gb2312_bin NOT NULL,
  `w_yb` char(6) collate gb2312_bin NOT NULL,
  `w_dz` varchar(255) collate gb2312_bin NOT NULL,
  `w_ry` char(5) collate gb2312_bin NOT NULL,
  PRIMARY KEY  (`w_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_bin AUTO_INCREMENT=1 ;