drop database ntsky;
create database ntsky;
use ntsky;
create table NEWSAdmin(userName varchar(20) NOT NULL,
passWd varchar(20) NOT NULL,
purview int not null,
lastLogin datetime,
lastLoginIp varchar(20),
primary key(username),
);
create table NEWSClass(classId int NOT NULL,
content varchar(20) NOT NULL,
primary key(classid),
);
create table NEWSKind(kindId int NOT NULL auto_increment,
content varchar(255) NOT NULL,
classId int NOT NULL,
primary key(kindId),
);
create table NEWS(newsId int NOT NULL auto_increment,
classId int NOT NULL,
kindId int NOT NULL,
myOther int NOT NULL,
headTitle varchar(255) NOT NULL,
content text NOT NULL,
connect varchar(255),
author varchar(20) NOT NULL,
editor varchar(20),
newsFrom varchar(40),
top int,
newsTime varchar(20),
hits int default 0,
state int default 0,
tag int NOT NULL,
primary key(newsId),
);
create table NEWSReply(replyId int not null auto_increment,
newsId int not null,
user varchar(20),
content varchar(100),
replyTime varchar(20),
primary key(replyId),
);
create table NEWSUsr(userName varchar(20) NOT NULL,
passWd varchar(20) NOT NULL,
sex int,
question varchar(255),
answer varchar(255),
emailAddr varchar(50),
qq varchar(10),
http varchar(30),
purview int default 1,
regTime varchar(20),
primary key(userName),
);
create table NEWSPopedom(gradeId int not null,
grade varchar(20),
primary key(gradeId),
);
CREATE TABLE NOTEAdmin (adminName char(20) NOT NULL,
adminPasswd char(20) NOT NULL,
PRIMARY KEY(adminName)
);
create table NOTEGuest(noteId int NOT NULL auto_increment,
userName char(20) NOT NULL,
sex int NOT NUll,
email char(50),
qq char(9),
url char(50),
headTitle text NOT NULL,
content text NOT NULL,
image text,
noteTime varchar(20),
primary key(noteId)
);
CREATE TABLE NOTEReply (replyId int not null auto_increment,
noteId int(11) NOT NULL,
content text,
replyTime varchar(20),
primary key(replyId)
);
INSERT INTO NEWSAdmin(userName,passWd,purview) VALUES('ntsky123','ntsky123',0);
insert into NOTEAdmin(adminName,adminPasswd) values('ntsky123','ntsky123');
create table NEWSCommon(counter int not null,
ip varchar(20) not null
);
insert into NEWSCommon(counter,ip) values(1,'127.0.0.1');
insert into NEWSClass(classId,content) values(1,'linux入门');
insert into NEWSClass(classId,content) values(2,'服务器配置');
insert into NEWSClass(classId,content) values(3,'应用开发');
insert into NEWSClass(classId,content) values(4,'数据库应用');
INSERT INTO NEWSClass(classId,content) VALUES(5,'系统安全');
insert into NEWSKind(kindId,content,classId) values(1,'linux教程',1);
insert into NEWSKind(kindId,content,classId) values(2,'学习笔记',1);
insert into NEWSKind(kindId,content,classId) values(3,'windows',2);
insert into NEWSKind(kindId,content,classId) values(4,'linux',2);
insert into NEWSKind(kindId,content,classId) values(5,'unix',2);
insert into NEWSKind(kindId,content,classId) values(6,'jsp&servlet',3);
insert into NEWSKind(kindId,content,classId) values(7,'java',3);
insert into NEWSKind(kindId,content,classId) values(8,'xml',3);
insert into NEWSKind(kindId,content,classId) values(9,'delphi',3);
insert into NEWSKind(kindId,content,classId) values(10,'.net',3);
insert into NEWSKind(kindId,content,classId) values(11,'oracle',4);
insert into NEWSKind(kindId,content,classId) values(12,'mysql',4);
insert into NEWSKind(kindId,content,classId) values(13,'mssql',4);
insert into NEWSKind(kindId,content,classId) values(14,'安全防护',5);
insert into NEWSKind(kindId,content,classId) values(15,'漏洞攻击',5);
insert into NEWSPopedom(gradeId,grade) values(3,'金牌会员');
insert into NEWSPopedom(gradeId,grade) values(2,'银牌会员');
insert into NEWSPopedom(gradeId,grade) values(1,'普通会员');
没有合适的资源?快使用搜索试试~ 我知道了~
jsp编写的新闻发布系统
共284个文件
gif:117个
jsp:77个
class:40个
需积分: 9 4 下载量 69 浏览量
2009-12-18
16:16:12
上传
评论
收藏 1.03MB RAR 举报
温馨提示
本人写的新闻发布系统,希望对大家有帮助,要是不理解的可以与本人联系QQ244903118
资源推荐
资源详情
资源评论
收起资源包目录
jsp编写的新闻发布系统 (284个子文件)
copyleft.jsp.bak 1KB
usernews.js.bak 503B
show.js.bak 231B
18.bmp 2KB
16.bmp 2KB
13.bmp 2KB
11.bmp 2KB
12.bmp 2KB
15.bmp 2KB
14.bmp 2KB
17.bmp 2KB
News.class 14KB
NewsShow.class 11KB
LinkNews.class 10KB
Usr.class 9KB
MD5.class 8KB
UserManage.class 8KB
SearchNews.class 7KB
Column.class 7KB
DBConnectionManager.class 6KB
Personal.class 6KB
Guest.class 5KB
Kind.class 5KB
UserNews.class 5KB
DBConnectionManager$DBConnectionPool.class 5KB
Manager.class 4KB
ISLogin.class 4KB
SQLDBOperator.class 4KB
Reply.class 4KB
abc.class 4KB
Debug.class 4KB
NEWSTable.class 3KB
Counter.class 3KB
Pagination.class 3KB
EnvironmentConfig.class 3KB
NEWSUsr.class 2KB
NOTEGuest.class 2KB
DOServlet.class 2KB
CodeFilter.class 2KB
Test.class 2KB
NEWSAdmin.class 1KB
NEWSReply.class 1KB
SessionManager.class 1KB
NOTEReply.class 1KB
DateUtil.class 1KB
NEWSKind.class 957B
NOTEAdmin.class 782B
NEWSClass.class 767B
NEWSPopedom.class 764B
DBOperator.class 545B
ISiteEnvironment.class 227B
text.css 2KB
text.css 938B
admin.css 524B
Thumbs.db 138KB
Thumbs.db 19KB
NTsky新闻发布系统.doc 333KB
linux.gif 9KB
20.gif 7KB
index.gif 7KB
04.gif 6KB
18.gif 6KB
03.gif 6KB
01.gif 6KB
02.gif 6KB
17.gif 6KB
06.gif 6KB
14.gif 6KB
09.gif 5KB
12.gif 5KB
16.gif 5KB
11.gif 5KB
07.gif 5KB
15.gif 5KB
21.gif 5KB
05.gif 5KB
13.gif 5KB
19.gif 5KB
08.gif 5KB
10.gif 5KB
right_background.gif 5KB
cjlj.gif 4KB
lltj.gif 4KB
big_load.gif 3KB
go.gif 3KB
zngg.gif 3KB
yourstate.gif 3KB
google.gif 3KB
title1.gif 3KB
czl.gif 3KB
linux_hot.gif 2KB
big_search.gif 2KB
title7.gif 2KB
title4.gif 2KB
title2.gif 2KB
top_middle.gif 2KB
morer.gif 2KB
top_left.gif 2KB
search.gif 1KB
more.gif 1KB
共 284 条
- 1
- 2
- 3
资源评论
liugaobao
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功