/*
Navicat MySQL Data Transfer
Source Host : localhost:3306
Source Database : bbs
Target Host : localhost:3306
Target Database : bbs
Date: 2013-02-02 10:05:36
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(4) NOT NULL AUTO_INCREMENT,
`account` char(10) NOT NULL,
`password` char(20) NOT NULL,
`qx` int(4) NOT NULL,
`nickName` char(10) DEFAULT NULL,
`name` varchar(10) DEFAULT NULL,
`photoPath` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=gbk;
-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES ('1', 'zzf', '123', '0', '爱拼才会赢', 'zzf', null);
-- ----------------------------
-- Table structure for board
-- ----------------------------
DROP TABLE IF EXISTS `board`;
CREATE TABLE `board` (
`id` int(4) NOT NULL AUTO_INCREMENT,
`name` char(20) NOT NULL,
`description` varchar(50) DEFAULT NULL,
`parentId` int(4) DEFAULT NULL,
`aid` int(4) NOT NULL,
`boardImg` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aid` (`aid`),
KEY `parentId` (`parentId`),
CONSTRAINT `board_ibfk_1` FOREIGN KEY (`aid`) REFERENCES `admin` (`id`),
CONSTRAINT `board_ibfk_2` FOREIGN KEY (`parentId`) REFERENCES `board` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=gbk;
-- ----------------------------
-- Records of board
-- ----------------------------
INSERT INTO `board` VALUES ('1', 'Java Web框架技术', '字符集', null, '1', null);
INSERT INTO `board` VALUES ('4', 'Java程序设计和JSP程序设计', '技术交流', null, '1', null);
INSERT INTO `board` VALUES ('5', 'Java程序设计', 'Java技术交流', '4', '1', null);
INSERT INTO `board` VALUES ('6', 'Struts2', 'Struts2交流', '1', '1', '1353990594078.gif');
INSERT INTO `board` VALUES ('7', 'JSP程序设计', 'JSP技术交流', '4', '1', null);
INSERT INTO `board` VALUES ('8', 'Spring', 'Spring技术贴', '1', '1', '1353549470703.GIF');
INSERT INTO `board` VALUES ('9', 'Hibernate', '数据库中间件', '1', '1', '1353549482640.GIF');
INSERT INTO `board` VALUES ('10', '生活杂谈', null, null, '1', null);
INSERT INTO `board` VALUES ('11', '音乐空间', null, null, '1', null);
INSERT INTO `board` VALUES ('12', '校园生活', null, null, '1', null);
INSERT INTO `board` VALUES ('13', 'EJB与数据结构', null, null, '1', null);
INSERT INTO `board` VALUES ('14', '校园一角', null, '12', '1', null);
INSERT INTO `board` VALUES ('15', '聊天交友', null, '10', '1', null);
INSERT INTO `board` VALUES ('16', '心情咖啡', null, '10', '1', null);
INSERT INTO `board` VALUES ('17', '动漫剧场', null, '10', '1', null);
INSERT INTO `board` VALUES ('18', '华语', null, '11', '1', null);
INSERT INTO `board` VALUES ('19', '欧美', null, '11', '1', null);
INSERT INTO `board` VALUES ('20', '粤语', null, '11', '1', null);
INSERT INTO `board` VALUES ('21', '法语', null, '11', '1', null);
INSERT INTO `board` VALUES ('22', '日语', null, '11', '1', null);
INSERT INTO `board` VALUES ('23', '韩语', null, '11', '1', null);
INSERT INTO `board` VALUES ('24', 'TOMCAT', 'TOMCAT', null, '1', null);
INSERT INTO `board` VALUES ('25', 'MICRO', 'AAA', null, '1', null);
INSERT INTO `board` VALUES ('26', 'Apache', 'Apache', '24', '1', null);
INSERT INTO `board` VALUES ('27', 'EJB技术', '', '13', '1', null);
INSERT INTO `board` VALUES ('28', '微软粉丝', '微软实力派', '25', '1', null);
INSERT INTO `board` VALUES ('29', 'Jacarat', 'Jacarat 是 Apache旗下一个开源项目', '26', '1', null);
INSERT INTO `board` VALUES ('30', '数据结构', '', '13', '1', null);
INSERT INTO `board` VALUES ('31', 'JacaratDemo', 'asdasdsa', '24', '1', null);
-- ----------------------------
-- Table structure for post
-- ----------------------------
DROP TABLE IF EXISTS `post`;
CREATE TABLE `post` (
`id` int(4) NOT NULL AUTO_INCREMENT,
`name` char(40) NOT NULL,
`content` longtext,
`publishTime` datetime DEFAULT NULL,
`sid` int(4) DEFAULT NULL,
`bid` int(4) NOT NULL,
`aid` int(4) DEFAULT NULL,
`count` int(11) unsigned zerofill DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `sid` (`sid`),
KEY `bid` (`bid`),
KEY `aid` (`aid`),
CONSTRAINT `post_ibfk_1` FOREIGN KEY (`sid`) REFERENCES `student` (`id`),
CONSTRAINT `post_ibfk_2` FOREIGN KEY (`bid`) REFERENCES `board` (`id`),
CONSTRAINT `post_ibfk_3` FOREIGN KEY (`aid`) REFERENCES `admin` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=gbk;
-- ----------------------------
-- Records of post
-- ----------------------------
INSERT INTO `post` VALUES ('1', '周六补课压力很大啊啊啊~~~', '<p>\r\n 周六补课压力很大啊啊啊~~~</p>\r\n<p>\r\n 周六补课压力很大啊啊啊~~~</p>\r\n<p>\r\n 周六补课压力很大啊啊啊~~~</p>\r\n<p>\r\n 周六补课压力很大啊啊啊~~~</p>\r\n<p>\r\n 周六补课压力很大啊啊啊~~~</p>\r\n', '2012-11-12 15:40:52', '1', '9', null, '00000000049');
INSERT INTO `post` VALUES ('2', '国足遭伊拉克绝杀', '<p>\r\n 国足啊!</p>\r\n<p>\r\n 国足啊!国足啊!国足啊!</p>\r\n<p>\r\n </p>\r\n<p>\r\n 国足啊!</p>\r\n<p>\r\n 国足啊!</p>\r\n<p>\r\n 国足啊!</p>\r\n<p>\r\n 国足啊!</p>\r\n<p>\r\n 国足啊!国足啊!国足啊!国足啊!国足啊!<img alt=\"crying\" height=\"20\" src=\"http://localhost:8084/bbs/ckeditor_3.6.2/ckeditor/plugins/smiley/images/cry_smile.gif\" title=\"crying\" width=\"20\" /></p>\r\n', '2012-11-12 15:45:58', '1', '4', null, '00000000008');
INSERT INTO `post` VALUES ('3', '(android 实战总结)android对html支持接口总结', '<p>\r\n <a href=\"http://www.cnblogs.com/macroxu-1982/archive/2011/11/12/2246283.html\" id=\"ctl10_TitleUrl\">(android 实战总结)android对html支持接口总结</a></p>\r\n<div id=\"cnblogs_post_body\">\r\n <p>\r\n 前沿:</p>\r\n <p>\r\n 项目中往往需要显示一段文本,如果对文本需要特定的效果,就要写自定义的span,这样的工作量会变得很大,目前android支持html格式的文本,下面就是我对android支持html的程度和使用方式的总结。</p>\r\n <p>\r\n <strong>Android</strong><strong>支持</strong><strong>html </strong><strong>的两个接口</strong></p>\r\n <p align=\"left\">\r\n <strong>1 <a href=\"eclipse-javadoc:%E2%98%82=Test/C:%5C/android%5C/android-sdk_r13-windows%5C/android-sdk-windows%5C/platforms%5C/android-8%5C/android.jar%3Candroid.text%28Html.class%E2%98%83Html%7EfromHtml%7ELjava.lang.String;%E2%98%82Spanned\">Spanned</a> android.text.<a href=\"eclipse-javadoc:%E2%98%82=Test/C:%5C/android%5C/android-sdk_r13-windows%5C/android-sdk-windows%5C/platforms%5C/android-8%5C/android.jar%3Candroid.text%28Html.class%E2%98%83Html\">Html</a>.fromHtml(<a href=\"eclipse-javadoc:%E2%98%82=Test/C:%5C/android%5C/android-sdk_r13-windows%5C/android-sdk-windows%5C/platforms%5C/android-8%5C/android.jar%3Candroid.text%28Html.class%E2%98%83Html%7EfromHtml%7ELjava.lang.String;%E2%98%82String\">String</a> source)</strong></p>\r\n <p>\r\n 输入的参数为(html格式的文本)</p>\r\n <p>\r\n </p>\r\n <p>\r\n 目前android不支持全部的html的标签,目前只支持与文本显示和段落等标签,对于图片和其他的多媒体,还有一些自定义标签不能识别</p>\r\n <h5>\r\n Source: 需处理的html文本</h5>\r\n <p>\r\n imageGetter :对图片处理(处理html中的图片标签)</p>\r\n <p>\r\n tagHandler :对标签进行处理(相当于自定义的标签处理,在这里面可以处理自定义的标签)</p>\r\n <p>\r\n 在第二个接口中,在实际应用中,需要处理html中的img为网络图片,同时也需要处理一些自定义的标签 如【视频】,下面我就说明这两块的概�