Q 1、如何改造自己的网站,BT已经很火 A:编search的代码,在三个BT上找 编sort的代码,在三个BT上sort 编代码,=》5Q上去。
2、 A:问题定义web 计算机学院网站的功能如下: 普通浏览者可在web内阅读全部可见的文章,文章按时间顺序从现在开始到从前,文章分三类。 文章的发布者可查看选定发布人发布的对其可见的文章、三类;可发布文章,设置该文的可见性、附件;可编辑;可删除文或附件,
或二者。 super admin可做更多的灵活工作:如:⑴设定网站的风格⑵设定header的内容⑶更改footer的局部的属性⑷关于user的各种操作 (可选:⑴灵活的控制文章的分类,这就是论坛了^^⑵灵活的控制首页导航栏的内容=>需要分类列表和导航列表 ⑶⑷) 词汇表: 足够达成共识,所以将数据库表结构写如下: ######################### news:{新闻表} nid int(10) not null ; 新闻的序列号码 titel varchar(80) not null ;新闻的题目 | keyword varchar(30) null ;关键字 |-->for search content text not null ;文章的正文内容 issueDate date not null ;发布的日期 lastEditDate date null ; 修改文章的最后日期 issueIp varchar(15) not null ; 发布文章的ip authorType varchar(16) not null;作者的类别 ----->author table authorName varchar(16) not null ;作者的名字 ---->author table boolSee char(1) not null default 1;文章的可见性,默认可见 conType varchar(20) not null ; 新闻的类别 ---->newsType table viewTimes int (10) not null default 0 ; 文章浏览 的次数 attachment varchar(50) null default NULL ; 附件的位置 ######################### newsType:{新闻的类别列表} ntid int (10) not null ; 新闻类别的编号 typeName varchar(20) not null ; 类别的名称 ######################### navigation:{导航列表} navid int (10) not null ; navigation list id navName varchar (50) not null ; nav name navShow char(1) not null default 1 ; whether show this nav default yes=1 navURL varchar (50) not null ; nav url ######################### user table{用户的数据库表} uid int(10) ;user id uname varchar(16) ; user's name upwd varchar(16) ; user's password abletoannounce int (1) default 0 ;false not allow his to annouce question varchar(20); user's question --> get password answer varchar(20) ; user's answer regip varchar (15) ; reg ip as you saw logintimes int (5); how many times this user logged in lastintime date ; the time user last logged in announceno int (10) ; how many announces have been posted popuppost int(1) default 0 ; if pop up your post automaticly ######################## post table {posts 数据库表结构} pid int(10) ; pcontent text ; postto varchar (20) ; to some user postfrom varchar(20) ; from whom pdate date ; when the post posted @&%*@&what sentence new int(1) default 1 ; if the post is new ,1 new ######################## 用例: 1、注册:任何用户在首页上做注册,填写内容后完成注册(验证码,转到张老师验证) 2、验证注册:由root做的使注册用户的发文、选定文章功能生效;设置其允许发文的板块 3、访问:用户在首页的文章的列表:customer所有可见的文;poster所选的可见的文 4、更多:用户点击更多后,此类文所有内容分页显示 5、细节查看: 6、发文:poster发布后,填写、设置后确认(关键字的过滤) 7、编辑 8、delete

|