第13章 设计实例——网上论坛系统.ppt
上传人:qw****27 上传时间:2024-09-12 格式:PPT 页数:73 大小:475KB 金币:15 举报 版权申诉
预览加载中,请您耐心等待几秒...

第13章 设计实例——网上论坛系统.ppt

第13章设计实例——网上论坛系统.ppt

预览

免费试读已结束,剩余 63 页请下载文档后查看

15 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

第13章设计实例——网上论坛系统本章学习目标13.1论坛概述图13-1软件项目开发的六个阶段13.1.1需求分析和说明列名列名列名13.1.2软件设计和功能模块划分图13-2网上论坛系统功能模块划分13.2用户注册、登录、注销和个人资料管理功能模块13.2.1模块功能描述13.2.2用户注册13.2.3用户登录13.2.4用户注销13.2.5修改个人资料13.3话题管理功能模块13.3.1模块功能描述13.3.2发表新话题13.3.3修改话题13.3.4删除话题13.4回复管理功能模块13.4.1模块功能描述13.4.2回复话题13.4.3修改回复话题13.4.4删除回复话题13.5论坛栏目信息模块13.5.1模块功能描述13.5.2论坛栏目浏览图13-10论坛主页面main_bbs.asp图13-11栏目主页面main_column.asp13.5.3话题内容浏览13.6论坛话题搜索功能模块13.6.1模块功能描述13.6.2功能实现search_art.asp页的程序源代码如下:<!--#IncludeFile="function/conn_db.fun"--><%OnErrorResumeNextIfSession("user_name")=""ThenResponse.Redirect"default.htm"EndIf'获取搜索主题的作者信息。如果没有指定作者信息,则默认为当前登录用户。author=Request("author")Ifauthor=""Thenauthor=Session("user_name")EndIf'获取搜索主题的时间范围信息,并将其转换为时间范围的下限。date_bound=Request("date_bound")SelectCasedate_boundCase"1_day"date_bound=dateserial(year(date()),month(date()),day(date())-1)Case"3_day"date_bound=dateserial(year(date()),month(date()),day(date())-3)Case"10_day"date_bound=dateserial(year(date()),month(date()),day(date())-10)Case"1_month"date_bound=dateserial(year(date()),month(date())-1,day(date()))Case"3_month"date_bound=dateserial(year(date()),month(date())-3,day(date()))Case"1_year"date_bound=dateserial(year(date())-1,month(date()),day(date()))CaseElsedate_bound=dateserial(year(date())-1,month(date()),day(date()))EndSelectdate_bound=Datevalue(date_bound)'获取搜索主题的栏目ID信息。如果没有指定栏目ID,则默认为所有栏目column_id=Request("column_id")Ifcolumn_id=""Thencolumn_id="all_column"EndIf'读取指定作者、指定时间范围以及指定栏目的主题信息,以发表时间降序排列Ifcolumn_id="all_column"Thensql_search_art="Select*Fromart_infoWhereauthor='"&author&"'Andapp_time>='"&date_bound&"'orderbyapp_timedesc"Elsesql_search_art="Select*Fromart_infoWhereauthor='"&author&"'Andapp_time>='"&date_bound&"'Andcolumn_id="&column_id&"orderbyapp_timedesc"EndIfSetrs_search_art=conn_db(sql_search_art,1)%><HTML><HEAD><TITLE>..::冷雨论坛::..</TITLE><METAHTTP-EQUIV="Content-Type"CONTENT="text/html;CHARSET=gb2312"><LINKrel="stylesheet"href="css/global.css"type="text/css"></HE